Wednesday, June 8, 2011

[Micro Blog] How to see which process is using a specific port in Linux

I had a big issue in recent past while dealing with JBoss. I could not run it and it gave the exception port 8083 is already opened. So I needed to know the procedure to identify the process which was holding that port.

After googling a while i found this useful command,

lsof -w -n -i tcp:8083

It gave me the required process id which i denote pid, in my case it was 8380.
After that I used the following command to kill the process actually,


kill 8380


That is how I solved my problem. :)


No comments: