Showing posts with label port. Show all posts
Showing posts with label port. Show all posts

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

Monday, April 13, 2009

How to change Application port using autoconfig

Open the context file ($INST_TOP/apps/$CONTEXT_NAME/appl/admin/$CONTEXT_NAME.xml) and change the old port to the new port in the following seven context variables. Search for the following variables and replace the old port with the new port between their tags.

- chronosURL oa_var

- EndUserMonitoringURL

- externURL oa_var

- login_page oa_var

- httplistenparameter oa_var

- web_port oa_var

- activewebport oa_var


Now run autoconfig. You can access the Application with the new port number, next time you log in.