Operating System - HP-UX
1836785 Members
2433 Online
110109 Solutions
New Discussion

Re: Process using 100% of CPU

 
Gabriel Muñoz
Occasional Advisor

Process using 100% of CPU

We have a program in a PA8500 440MHz, writen in Java, using 100% of CPU always. Why? It's normal?
Rocketir
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: Process using 100% of CPU

Gabriel,

What OS are you running? If it's 11.x is it 32 or 64 bit?

Do you have the latest patch bundles installed?

What version of java are you using?

Does the java program do a lot of looping and calculating versus a lot of IO?

Are there any other processes running on the machine that are being affected by the java program consuming 100% of the CPU?

If you have glance/gpm installed, have you drilled into the application to determine what kind of system calls and IO it is making? If you don't have glance installed you can install a trial version (good for 30 days) from your application CD's.

live free or die
harry
Live Free or Die
Gabriel Muñoz
Occasional Advisor

Re: Process using 100% of CPU

Hi:

The version of SO is 11.11 64 bits. The version of Java is 1.3. There aren't more processes using 100% of CPU, only Java.

I'm not the programmer of application, so I don't know the application's technical characteristics. I must be install the evaluation version of Glance for knows it.

Thank you for your answer.
Rocketir
Steve Steel
Honored Contributor

Re: Process using 100% of CPU

Hi


You could look at

http://www.hp.com/products1/unix/java/

And try jmeter


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
harry d brown jr
Honored Contributor

Re: Process using 100% of CPU

Gabriel,

Get the developer involved, because they "own" their potentially bad code.

live free or die
harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: Process using 100% of CPU

hi,

track the process in glance and see what resources it is exactly using. What are the system calls it is running. What are its wait state characteristics and so on.
glance -> s -> pid will do this.

This will give some clue on the process.

HTh
raj
Take it easy.