cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Starfighter Starfighter
Starfighter
  • 6,092 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
  • 6,073 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
  • 6,074 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
Starfighter Starfighter
Starfighter
  • 6,039 Views

Hi @rajeshlukose ,

 

 thanks for share valuable information.

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