| |||
Resolving the problem | |||
Here is a method that can be used to determine what process is using a particular port: 1. Run netstat to get the address of the port you need to check: eg. [root:/:] netstat -Aan | grep 8880 701995f0 tcp4 0 0 *.8880 *.* LISTEN 2. Now use the address seen in the first column as the first parameter to the rmsock command. The second parameter is "tcpcb" eg. [root:/:] rmsock 701995f0 tcpcb The socket 0x70199400 is being held by process 26792 (java). Please note.... rmsock is used to remove sockets that do not have file descriptors. However, rmsock doesn't remove a socket that still has a valid file descriptor but, instead, returns the identity of the process owner. 3. Finally, use "ps -ef" to identify the actual process. eg. [root:/:] ps -ef | grep 26792 root 26792 1 0 Sep 13 pts/4 1341:37 /space/ms52/WAS/java/bin/java -Xbootclasspath/p:/space/ms52/WAS/java/jre/lib/ext/ibmorb.jar:/space/ms52/WAS/java/jre/lib/ext/ibmext.jar -Dwas.status.socket=32957 -classpath /space/ms52/WAS/properties:/space/ms52/WAS/properties:/space/ms52/WAS/lib/bootstrap.jar:/space/ms52/WAS/lib/j2ee.jar:/space/ms52/WAS/lib/lmproxy.jar -Xmx256m -Dws.ext.dirs=/space/ms52/WAS/java/lib:/space/ms52/WAS/classes:/space/ms52/WAS/classes:/space/ms52/WAS/lib:/space/ms52/WAS/lib/ext:/space/ms52/WAS/web/help:/space/ms52/WAS/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime -Dserver.root=/space/ms52/WAS -Ddb2j.system.home=/space/ms52/WAS/properties -Duser.install.root=/space/ms52/WAS-Dcom.ibm.itp.location=/space/ms52/WAS/bin -Dwas.install.root=/space/ms52/WAS -Djlog.propertyFileDir=/space/ms52/config-Dcom.ibm.tivoli.transperf.logging.baseDir=/usr/ibm/tivoli/common-Djava.security.auth.login.config=/space/ms52/WAS/properties/wsjaas.conf -Djava.security.policy=/space/ms52/WAS/properties/server.policy com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsServer/space/ms52/WAS/config orion orion server1 http://www-01.ibm.com/support/docview.wss?rs=656&context=SSGR2C&dc=DB560&dc=DB520&uid=swg21211151&loc=en_US&cs=utf-8&lang=en |
Checking port usage on AIX
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment