Operating System - HP-UX
1835380 Members
3062 Online
110078 Solutions
New Discussion

Re: java process taking much resources....

 
MAD_2
Super Advisor

java process taking much resources....

I am not sure why this process is taking so much processing time nor do I know who started it, but can anyone provide some hints on what else to look for?

+++++++++++++++++++++++++++++++++++++++++++++

Load averages: 0.38, 0.61, 1.00
170 processes: 155 sleeping, 15 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.25 2.4% 0.0% 1.2% 96.4% 0.0% 0.0% 0.0% 0.0%
1 0.27 2.4% 0.0% 0.4% 97.2% 0.0% 0.0% 0.0% 0.0%
2 0.63 0.0% 0.0% 1.6% 98.4% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.38 1.6% 0.0% 1.0% 97.4% 0.0% 0.0% 0.0% 0.0%

Memory: 305040K (55048K) real, 235416K (53996K) virtual, 5920464K free Page# 1/
17

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
2 ? 1541 root 152 20 18556K 46900K run 58:37 74.29 74.16 java
1 ? 24547 daemon 156 20 33984K 2884K sleep 0:01 5.99 4.58 oracleRC

+++++++++++++++++++++++++++++++++++++++++++++

# ps -ef | grep 1541
root 1541 1 0 14:51:09 ? 58:37 /opt/java1.3/jre/bin/../bin/PA_RISC2.0/native_threads/java -
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with
9 REPLIES 9
Chris Watkins_1
Respected Contributor

Re: java process taking much resources....

# ps -ex |grep 1541
That may give you more details.
Does the machine run a webserver?
Not without 2 backups and an Ignite image!
MAD_2
Super Advisor

Re: java process taking much resources....

results from the "ps -ef|grep 1541" were at the bottom of my message. This machine does not have a webserver.
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with
doug mielke
Respected Contributor

Re: java process taking much resources....

This load does not look excessively high to me, it's priority has only been raised to near 150 of a possible 255. It doesn't seem to have dominated the system much.

a sar -M 5 5 can give instant description of each processor load, and show idle and i/o time. This output wouldn't be enough for me to do more than keep an eye on it.
MarkSyder
Honored Contributor

Re: java process taking much resources....

Do you access either Netscape or Mozilla on this server/ws? Java is to allow access to certain web features.

What is the uptime on your server? The processor load does not look excessive, so it may be that the process has been building up to its 58 minutes over a period of weeks. It may be worth doing two readings at, say, five minute invervals to see if the time has increased significantly.

Is Big Brother running on this server/ws? That is web based and runs checks every five minutes, which can easily build up over time.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Mark Greene_1
Honored Contributor

Re: java process taking much resources....

What version of Oracle are you running? The java process may have been started as part of the Oracle config.

mark
the future will be a lot like now, only later
Chris Watkins_1
Respected Contributor

Re: java process taking much resources....

I saw the ps -ef.
I was asking for a ps -e"x".
Sometimes you can get a better idea of what the process is that way.
Not without 2 backups and an Ignite image!
MAD_2
Super Advisor

Re: java process taking much resources....

Oops! My bad Chris. I'll look into every posting to my question to see if I can see more details and will provide results in a little while.
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with
Steven E. Protter
Exalted Contributor

Re: java process taking much resources....

Recommendations:

http://www.hp.com/go/java

Get all required/recommended java patches installed. Build a patch depot, several of them requier boots.

Always have a current quarterly release installed as well.

I'm attaching a performance measurement script that might point out other areas on your system that need attention.

When one program eats a lot of resources its either infrastructure or the program itself. My steps will help with both.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Chris Hulihan
Advisor

Re: java process taking much resources....

Definitely could be a patch problem. Everything in the download section makes clear that you need at least PHCO_29959 (for 11.0) or PHCO_29960 (for 11.i). this was for a problem and I believe the symptoms are similar to your issue...