Operating System - HP-UX
1753691 Members
6182 Online
108799 Solutions
New Discussion юеВ

Re: Java consuming too much CPU resources

 
SOLVED
Go to solution
Michael Steele_2
Honored Contributor

Re: Java consuming too much CPU resources

Here's your biggest memory and cpu consumer :

Virtual Memory

vsz,sz,state,pid,ppid,comm | sort -rn | head

244740 61067 15809 15807 jpqn

pid = 15809
ppid = 15807

CPU

UNIX95=1 ps -e -o cpu,pcpu,state,pid,ppid,comm | sort -rn | head
255 71.21 R 15809 15807 jpqn

pid = 15809
ppid = 15807

Rerun and paste this command.

UNIX95=1 ps -e -o vsz,sz,state,pid,ppid,comm | sort -rn | head
Support Fatherhood - Stop Family Law
ManojK_1
Valued Contributor

Re: Java consuming too much CPU resources

Hi Michel,

In the system my main concern is cpu usage. For that i have used the following command and the output is attached with this mail.

UNIX95=1 ps -e -o pid,ppid,cpu,pcpu,vsz,sz,comm | sort -rnk4 |more

I have also run the command as you mentioned and the output is also there in the attachment.
Thanks and Regards,
Manoj K
Michael Steele_2
Honored Contributor
Solution

Re: Java consuming too much CPU resources

Hi Manoj:

You've got a memory leak problem with pid 15809.

wkt24u02#UNIX95=1 ps -e -o vsz,sz,state,pid,ppid,comm | sort -rn | head
1530884 382591 R 15809 15807 jpqn
177264 26840 R 11167 1 java
70844 12042 R 25883 1 java

If you compare the vsz consumption in the first attachement you'll a huge growth. This jave application is not releasing memory. It needs to go back to the programmers.
Support Fatherhood - Stop Family Law
ManojK_1
Valued Contributor

Re: Java consuming too much CPU resources

Thanks to all for helping me to get some idea.

I have raised this issue with our application team and they were checking it in CODE level, so i am closing this thread.

Thanks again.

Manoj K
Thanks and Regards,
Manoj K