Operating System - HP-UX
1835259 Members
2223 Online
110078 Solutions
New Discussion

Re: CPU hangup for Java aplication using Tomcat

 
Carlos Vanegas
Occasional Advisor

CPU hangup for Java aplication using Tomcat

Hi, I have:

java version "1.4.2.03"
HP-UX hp1 B.11.11 U 9000/800
hpuxwsTOMCAT.TOMCAT A.1.0.01.02 4.1.12 base
Two CPU 650 Mhz
4 GB RAM

My problem is when I check the process with top, I saw the CPU 100%, and the server only running Tomcat.
I'dont know if you know if I need to modify some parameters of kernel o ndd parameters??

Thanks for your help.
Carlos
7 REPLIES 7
RAC_1
Honored Contributor

Re: CPU hangup for Java aplication using Tomcat

I think you should start with patches. Do you have all the patches installed that are recommanded for Java, Tomcat.

Anil
There is no substitute to HARDWORK
Carlos Vanegas
Occasional Advisor

Re: CPU hangup for Java aplication using Tomcat

Yes, I ran collect.sh and install the patches recommended for HP and Java
RAC_1
Honored Contributor

Re: CPU hangup for Java aplication using Tomcat

What is the process name that is hogging the cpu??

Anil
There is no substitute to HARDWORK
Carlos Vanegas
Occasional Advisor

Re: CPU hangup for Java aplication using Tomcat

Only java, it's take 100% CPU
RAC_1
Honored Contributor

Re: CPU hangup for Java aplication using Tomcat

Check if you have all patches for java mentioned in the following link.

http://www.hp.com/products1/unix/java/patches/index.html

Anil
There is no substitute to HARDWORK
Mark Greene_1
Honored Contributor

Re: CPU hangup for Java aplication using Tomcat

Do a ps -ef|pg on a display set at 132 columns with autowrap enabled so you can see the entire command being executed. Also capture the pid.

Next, download and install lsof if you don't already have it:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.73/

run lsof|pg and search for the PID. It should be referencing a tcp port it's listening on or connected to via l0. Next serach the same listing for all occurances of the port number to see if you have more than one process listening or trying to connect on that port.

Finally, run netstat -a|pg and serach for the port number to see if you can determine if there's a client connection to it. You should see the dns name of the system in question, and then you'll know who to go talk to in order to find out what's being run that's eating the system.

mark
the future will be a lot like now, only later
Ronald Schwartz_1
Frequent Advisor

Re: CPU hangup for Java aplication using Tomcat

Also try HPjconfig http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html
This will do all the checking for you and give an idea of what needs to be changed.