LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   High CPU (https://www.linuxquestions.org/questions/linux-server-73/high-cpu-572848/)

ariana 07-27-2007 05:52 PM

High CPU
 
Hi,
I have a java process using high CPU on RH AS 4.0. Is there a way to find out which thread causes the problem? Any commands or tool? I know I can use prstat and prstack on Solaris for such problem, but what about linux? Any help is much appreciated.


Ariana

Bruce Hill 07-28-2007 12:28 AM

Issue "top" -- hope that's what you're after. And if you need more specific usage help with top, issue "man top" for it's manual page.

wanna13e 07-28-2007 02:06 AM

Quote:

Originally Posted by ariana
Hi,
I have a java process using high CPU on RH AS 4.0. Is there a way to find out which thread causes the problem? Any commands or tool? I know I can use prstat and prstack on Solaris for such problem, but what about linux? Any help is much appreciated.


Ariana

Hi Ariana,

Can I know if there's any arguments prameter for the java? What application are you running? I use tomcat, resin and websphere here. There's minimum and maximum startup memory settings for my java application.

wanna13e 07-28-2007 02:09 AM

Quote:

Originally Posted by wanna13e
Hi Ariana,

Can I know if there's any arguments prameter for the java? What application are you running? I use tomcat, resin and websphere here. There's minimum and maximum startup memory settings for my java application.


Hi,

Just forgot some stuff. Do patch your RedHat if you have signed up for redhat supprt. I did some patch and system cpu usage did went down.


All times are GMT -5. The time now is 10:21 PM.