jeesshnasree
Flight Engineer
Flight Engineer
  • 2,702 Views

how to check running socket port numbers on LINUX OS with process id

Jump to solution

Hi All,

acutally i dont have root access  and need to check the JVM socket ports with process id status .

 

I am waiting for your valuable reply .

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
rajeshlukose
Cadet
Cadet
  • 2,683 Views

If you want to check the java process running in the server. use below command

ps -ef|grep java

Above command will give the process id of the java application running on the server.

Use lsof -p processid

This will list socket/port number which the java application is listening.

 

View solution in original post

0 Kudos
2 Replies
rajeshlukose
Cadet
Cadet
  • 2,684 Views

If you want to check the java process running in the server. use below command

ps -ef|grep java

Above command will give the process id of the java application running on the server.

Use lsof -p processid

This will list socket/port number which the java application is listening.

 

0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 2,649 Views

Hi @rajeshlukose ,

 

 thanks for share valuable information.

0 Kudos
Join the discussion
You must log in to join this conversation.