1 Reply Latest reply on Dec 15, 2010 2:18 AM by wdfink

    PermGen Error during deployment or when application is running

    amarbhat

      Hello All,

       

         Our environment has :-

          JBoss AS version 5.1.0.GA, JDK version jre1.6.0_21 and linux OS version 2.6.18-194.17.1.el5 x86_64 x86_64 x86_64 GNU/Linux.

      Our application uses Spring Integration, Hibernate, HornetQ, JAX-WS and size of the war file is approximately 18 to 19 MB.

       

         We are encountering PermGem OutOfMemory errors either during application deployment or randomly in the middle of the day when the

      application is running on the server. We read several articles on the web and have the following arguments passed during server startup:-

       

      -server -Xms2048m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -Xrs

       

        We originally had the MaxPermSize parameter set to 256m and we increased it to 512m. After this change the PermGen error has

      gone down drastically but we feel that this is not a permanent solution. Is there a permanent solution to this PermGen problem on JBoss ?.

      If yes, please let us know and if the arguments' we are currently passing need any changes or tweaking.

       

      Thanks,

      Amar