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 8 of 8

Thread: Effect of Perm gen memory on CPU Utilization

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Effect of Perm gen memory on CPU Utilization

    Hello All,

    I am Abhishek, working on a game project. Whenever we are starting our game application in production, it works perfectly around 3 days after 3 days, CPU utilization is increasing upto around 95% to 99% and application stops to respond. Before 6 days, I started application again and we doubled our Perm Gen memory size. The same problem happened but it happened after 6 days.

    Now, i am not able to relate CUP utilization to Perm Gen memory. Is Perm Gen memory effect CPU utilization?

    Thanks,
    Abhishek


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Why dont you use a profiler? Thats what they have been made for.

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Dear @Cornix, Thanks for your reply...
    I used Visual VM profiler and got to know that free space in Perm Gen memory is reducing slowly slowly and CPU utilization is increasing corresponding to this reduction in Perm gen memeory.
    Thats why, i looking relation between Perm Gen memory and CPU utilization.
    Thanks

  4. #4
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Does your application actually need all that memory or might it be that you have a memory leak somewhere?

  5. #5
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Dear @Cornix, I dont think memory leak is a reason because my jvm never crashed. in memory leak condition, after a interval jvm should crashed due to insufficient memory and garbage collector is also running.

  6. #6
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Thread moved. Please don't post requests for help in Member Introductions.

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    I don't believe your assertion that a JVM crash must always accompany a memory leak is correct. When doubling the size of PermGen memory doubles the time the program is stable, and a profiler shows you that "free space in Perm Gen memory is reducing slowly slowly," I'd say you have a PermGen memory leak.

    Understanding the possible reasons for the results you've experienced requires an intimate understanding of your program's design, use of 3rd party libraries and their possible contribution, etc., an intimacy I would only expect your design/programming team to have. There are good "PermGen memory leak" articles on the 'net that discuss possible causes and remedies that you should refer to.

    Good luck, and I hope you'll share your findings with us when you've determined root cause and a solution.

  7. #7
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Dear @Gregrannon, i have one doubt that if PermGen memory is full, will it increase CUP Utilization or not?

  8. #8
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Effect of Perm gen memory on CPU Utilization

    Typically, a decrease in critical computer resources causes CPU utilization to increase until instability and then failure occur, but I can't say specifically that a decrease in PermGen memory is causing the behavior you've observed when running your program on your test platform(s). Did the profiling you've done indicate any other possible causes for the increased CPU utilization?

    And why does it matter? If you know you have a PermGen memory leak and that the leak will eventually cause your program to fail, why not find the leak and fix it?

Similar Threads

  1. getting system info (cpu, memory, disks etc)
    By Msyhles in forum Java Networking
    Replies: 1
    Last Post: November 18th, 2013, 09:48 AM
  2. How do I put action with my auto-gen UI?
    By thisbeme in forum What's Wrong With My Code?
    Replies: 16
    Last Post: February 1st, 2012, 12:33 PM
  3. Does garbage collection occurs in PERM Area of Java Heap ?
    By javabuddy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 22nd, 2011, 12:27 AM
  4. perm gen space
    By gargdevender in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 20th, 2010, 02:55 AM
  5. How can I reduce network utilization?
    By Drakenmul in forum Java Networking
    Replies: 0
    Last Post: June 15th, 2010, 05:58 AM