locked
Memory usage and CPU usage increase RRS feed

  • Question

  • Hi We are using OC4J as app server. The server is using   'PS MarkSweep' garbage collection for young generation and 'PS Scavenge' collection for old generation. When we restart the server, garbage collection time was less.

    everyday, the garbage collection time, the memory usage and CPU usage were gradually increased.

    21 days later, this much time it takes to do the garbage collection

    Garbage collector:  Name = 'PS MarkSweep', Collections = 159,177, Total time spent = 1 day 5 hours 28 minutes
    Garbage collector: 

    Name = 'PS Scavenge', Collections = 2,119,883, Total time spent = 14 hours 41 minutes

    When CPU usage reaches more than 100%. System is throwing error.

    How I can fix this bug. How to free up the memory and keep the CPU usage in control.

    Thank you! Siva



    • Edited by ranjinie Monday, May 28, 2012 2:46 PM
    • Moved by Mike Danes Monday, May 28, 2012 7:35 PM Java related (From:.NET Base Class Library)
    Monday, May 28, 2012 2:44 PM

Answers

  • Nope. This is a .NET forum, a Microsoft forum. Not exactly the place to ask Java questions.
    • Proposed as answer by Ashwini47 Monday, May 28, 2012 5:44 PM
    • Marked as answer by Mr. Wharty Wednesday, May 30, 2012 1:36 AM
    Monday, May 28, 2012 4:30 PM

All replies

  • That sounds like Java to me. What has this to do with .NET?
    Monday, May 28, 2012 2:48 PM
  • Yes, it is a java app. do you have any advise for the Java apps' issues?

    thank you!

    Siva

    Monday, May 28, 2012 4:26 PM
  • Nope. This is a .NET forum, a Microsoft forum. Not exactly the place to ask Java questions.
    • Proposed as answer by Ashwini47 Monday, May 28, 2012 5:44 PM
    • Marked as answer by Mr. Wharty Wednesday, May 30, 2012 1:36 AM
    Monday, May 28, 2012 4:30 PM
  • Ok thank you!
    Monday, May 28, 2012 5:33 PM