How To find and kill a process running on specific port.

step 1 :-

netstat -an|grep 3872

tcp 0 0 0.0.0.0:3872 0.0.0.0:* LISTEN

step 2:-

[root@****** ~]# /usr/sbin/lsof -i :3872
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 5798 oracle 58u IPv4 16697 TCP *:oem-agent (LISTEN)

step 3 :-

kill -9 5798