- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Java "JVM Thread" is consuming CPU
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 01:52 PM
02-26-2003 01:52 PM
The JDK is 1.3.1.08 and OS version is 11
After analyzing with glance and comparing the thread Ids with full thread dump I found that
1. The thread consuming most of the CPU (60%) is "JVM Thread" (as stated in full thread dump) , so we can't use java profiler, because it's internal JVM code, not our... in fact the profiler is showing that "our" (i.e. the application threads were mostly in wait )
2. The consumption is on "User" time, so we can't use tusc
3. According to OS admin, the OS has all the requiered patches (I know, I have to confirm that persanally)
Application details : uses about 100 threads , -Xms256M -Xmx1024M (consumes ~256 M actually) <50 sockets, idle when tested ... ~0 other I/O
Any idea ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 02:12 PM
02-26-2003 02:12 PM
SolutionJava is current, and you say all the patches are in.
I'm curious and can place a tool in your hands to collect more data. Script attached.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 02:13 PM
02-26-2003 02:13 PM
Re: Java "JVM Thread" is consuming CPU
http://www.hp.com/products1/unix/java/java2/hpjtune/index.html
A performance measurement tool. You may have already tried this.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 01:58 AM
02-27-2003 01:58 AM
Re: Java "JVM Thread" is consuming CPU
(run application with -verbose:gc and check frequency/duration of GC's)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2003 09:04 AM
02-28-2003 09:04 AM
Re: Java "JVM Thread" is consuming CPU
We found :
1. Effectively, not all patches were applied .
The customer uses a "conservative" policy on patch application.
2. A very old version of one of the components, that called gc frequently.
(All the tests were realized with the latest version , thats why we couldnt reproduce the problem)
After we replaced that version of component by the latest one (that is not calling gc), the CPU usage decreased to 1-3% (without applying the OS patches)
Thanks to all !!!
P.S. The last question I have now is : "Why the frequent gc() is increasing CPU usage of JVM Thread , not the thread that is calling gc"...
but, anyway, this question is more theoric, everything is working fine now. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:12 AM
04-11-2003 01:12 AM
Re: Java "JVM Thread" is consuming CPU
The memory freed or moved by the gc can belong to many other threads, not only to the requestor, so the work is done by JVM itself.
(Not really an immediate answer, I know :))