Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java process demoted to single CPU

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java process demoted to single CPU

    please help on this issue.

    I take care of a production enterprise application , it is a java process quite complex that is a middleware application.
    The process runs 24 hours a day. Usage cpu is 60% mean value all day.
    The process have some burst of cpu usage at 100% usage in the afternoon.
    The process runs in a WMWARE virtual Server:
    the server is configured 2 CPU, 4GB ram;
    the server is installed as a Linux Kernel 2.6.18-274.12.1.el5.
    Java version installed is 1.6.0_16;
    In a unpredictable moment, mean 2 times a week, the processes is misteriously demoted to Single CPU,
    it takes maximum 50% CPU and application becomes is unavailable because not capable to serve all requests.
    Does anybody knows if there is an "auto demoting to single cpu" mechanism in Java ?
    Or in Linux?
    Or in Wmware?

    thanks in advance
    Alberto


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java process demoted to single CPU

    I'd guess (and only a guess) its VMWare problem. I say this based upon experience running the JVM in VMWare in which unexpected issues arise with memory management and garbage collection, which in turn relates to CPU usage. For instance if your code hits the memory ceiling and must garbage collect before it can allocate anything else (you might wish to modify the GC configuration to see if this alleviates anything).

Similar Threads

  1. java Api to fetch the CPU Details
    By ashish12169 in forum Java SE APIs
    Replies: 1
    Last Post: January 11th, 2024, 01:13 AM
  2. Problem with java program and CPU usage
    By Bahramudin in forum Java Theory & Questions
    Replies: 3
    Last Post: July 25th, 2012, 09:26 AM
  3. The problem with Java and CPU usage, need HELP
    By Bahramudin in forum Member Introductions
    Replies: 1
    Last Post: July 25th, 2012, 09:23 AM
  4. Replies: 3
    Last Post: April 11th, 2011, 09:51 PM
  5. How to get a System's total CPU usage percentage using a java program
    By userj2ee in forum Java Theory & Questions
    Replies: 2
    Last Post: January 7th, 2011, 01:28 AM

Tags for this Thread