Thursday, August 13, 2009

How to find the process using a specific port

1) use the following command on the linux shell:

netstat -lntp grep port_number

its output will be like:

tcp 0 0 :::8080 :::* LISTEN 4950/java

note the process id number given in bold and execute the following command

ps -ef | grep process_id

the output will be similar to

aacguser 4950 1 0 06:32 ? 00:00:09 /u01/jdk/jdk1.6.0_14/bin/java -Djava.util.logging.config.file=/u01/tomcat/apache-tomcat-5.5.27/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.security.auth.login.config=/u01/tomcat/apache-tomcat-5.5.27/webapps/ags/WEB-INF/jaas.config -Xss512k -Xms256M -Xmx2048M -XX:

This is the process that is using the port

1 comment:

tikitodo said...

despite the presence of other data recovery methods, I recommend another service of access corrupt repair