• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CPU utilisation

 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I've a web application running on WLS 8.1 on Sun OS 5.8. Recently noticed that our CPU usage is hitting 20% at the same day time interval. Are there any tools that we can use to identify which codes is causing the increase in CPU usages?

Many thanks for the help
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, the first thing to do is finding out which *process* is responsible for the load. Perhaps there is some virus scanner running on it, or something?
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We saw the PID hogging the resources, but they don't translate into anything sensible to us. Is there anything similar to HPROF that is stable enough for JVM 1.4.1? For some reasons, I'm stuck with it, at least for now.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the process hogging CPU is a Java process, You can try Auptyma's JAM. Download a trial version from www.auptyma.com, install the console on a Windows box, deploy the war file to the Weblogic console and you should be able to determine which methods are using most CPU. One thing you might notice is that you application does not slow down like it does with hprof.
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Virag, would give it a try.

We found this piece of information while encountering high CPU usage again. Does anyone happens to know what it means? Could it be a known bug in the JVM 1.4.1?


stat64("/usr/java141_05/jre/lib/zi/Singapore", 0xCC57DAC0) Err#2 ENOENT
open("/usr/java141_05/jre/lib/zi/Singapore", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
close(222) = 0
stat64("/usr/java141_05/jre/lib/zi/Singapore", 0xCC57DAC0) Err#2 ENOENT
open("/usr/java141_05/jre/lib/zi/Singapore", O_RDONLY|O_LARGEFILE) Err#2 ENOENT

 
slicker
Posts: 1108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Chengwei,

check out this known bug in 1.4.1.

I ran into this myself and had CONSIDERABLE improvement when we went to 1.4.2
 
Virag Saksena
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chengwei,
It looks like you posted some truss output over there. Which is looking for and trying to open /usr/java141_05/jre/lib/zi/Singapore which does not exist.

#1. Is this happening repeatedly, or does it go away ? Because I suspect once it finds that this file is not found, it will try /usr/java141_05/jre/lib/zi/Asia/Singapore and will find the file it is looking for.

#2. If this keeps on happening, you could try creating a symbolic link with
ln -s /usr/java/141_05/jre/lib/zi/Asia/Singapore /usr/java/141_05/jre/lib/zi/Singapore

#3. Where did you get the output from ? This is normally a truss output, and running truss on production will increase the CPU usage

#4. You might be getting this error due to a locale/language setting ?
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by John Dunn:
Hey Chengwei,

check out this known bug in 1.4.1.

I ran into this myself and had CONSIDERABLE improvement when we went to 1.4.2



I'm actually safe from this known bug since it was fixed in 1.4.1_05. Thanks for pointing it out.
[ December 05, 2006: Message edited by: Chengwei Lee ]
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


#1. Is this happening repeatedly, or does it go away ? Because I suspect once it finds that this file is not found, it will try /usr/java141_05/jre/lib/zi/Asia/Singapore and will find the file it is looking for.


Saw this once from our system administrator. Not sure if its recurring since we don't do truss output often.


#4. You might be getting this error due to a locale/language setting?


I'm on Solaris, did saw some settings from my console logs that I've this set. How do I correct it?

Many thanks for helping.
[ December 05, 2006: Message edited by: Chengwei Lee ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic