Results 1 to 3 of 3
  1. #1
    sa081402 is offline Member
    Join Date
    Dec 2012
    Rep Power

    Default PermGen usage is increasing day by day


    In my production Application Server (using Apache tomcat 6.0.28) i was facing some problems after 3/4 days interval. Users were facing extreme slowness during their operations although there were roughly 12-15 users connected with the app server. Creating a new session was also impossible.

    We used to restart the Tomcat when such problems occurred. Then I have Change the JVM options
    as follows:

    -Xms2200m *** previously was: 128m
    -XX:PermSize=512m *** previously was: 256m

    Now, I am getting positive feedback from my users and we didn't need to restart the tomcat anymore. But ! I am observing that my Perm Gen usage volume is increasing day by day while no of users and sessions are not increasing. No new deployment is done.

    When i imposed the new JVM set up it's usage was 80MB/512MB. Next day, I found it 92mb/512mb.
    After 1 week, today it is 152mb/512mb (only 6 user sessions are there).

    Is PermGen usage supposed to increase day by day like this ?
    If not, what attempts should i take to resolve this problem.

    *I am using Java Melody for monitoring.
    *My application is based on Spring 3.0 Framework.

    I shall be very much glad if any body give me some feedback regarding this.



  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: PermGen usage is increasing day by day

    Moved from Forum Lobby.

    Please go through the Forum Rules -- particularly the second paragraph. The other thread you started in 'Introductions' has been removed.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: PermGen usage is increasing day by day

    Bit of a guess, since this is something you're going to have to dig into it.
    jconsole allows you to look at the PermGen, or you could take a heap dump and use something like Eclipse MAT, or simply jmap -permgen, to see what classes are in there.

    What to look for entirely depends on your application.
    Hibernate can overgenerate classes, if you've done something odd with it.
    Spring possibly.
    Or something you've written.
    Also String interning.

    Obviously there's deploying and undeploying apps, but I'm assuming that's not the case here...
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. If A Value of a Variable is increasing...
    By Cherno in forum New To Java
    Replies: 23
    Last Post: 11-06-2011, 07:36 AM
  2. Problem with PermGen Space
    By ulix83 in forum Eclipse
    Replies: 8
    Last Post: 11-24-2010, 04:29 PM
  3. Problem with PermGen Space in Jboss
    By ulix83 in forum NetBeans
    Replies: 1
    Last Post: 11-24-2010, 10:01 AM
  4. increasing jvm heap space
    By kizyle502 in forum Advanced Java
    Replies: 1
    Last Post: 05-15-2010, 11:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts