Monday, December 12, 2011

How to find a process listening on Particular Port ?

HI All

We must have encountered issues related to port conflicts.When you are trying to start a jvm you see the port which jvm uses has been occupied by some other process. So to Identify th process who has occupied this port here are some basic commands:

AIX
1)lsof
lsof -i|grep port number

2)netstat -Aan|grep port number
rmsock tcpcb (this must be run as root)






3)on Windows

netstat -nao |grep port number