This discussion is archived
0 Replies Latest reply: Mar 16, 2012 3:39 AM by 924381 RSS

Perm Gen Issue

924381 Newbie
Currently Being Moderated
Hi,

We have a IP Telephony server [ uses lot of reflection ] with below JVM parameters .

Eariler Parameters :

-server -Xnoclassgc -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=50 -XX:NewRatio=2 -Xms768m -Xmx768m -Xloggc:/logs/fw/gc.out

With above paramters we faced the problem of OutOfMemory Error: Perm Gen. After searching we added " -XX:MaxPermSize=256m " to it but this will not solve the issue. It will just delay and sooner or later we can again hit the same problem. So we added few more parameters as below

-XX:MaxPermSize=256m
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled

and removed only -Xnoclassgc.

But above new parameters caused high load averages on the Solaris Servers and lot of logging started happening in the gc.out that might be the cause for the same. I am not sure about this.

Please guide me in getting the right combination of parameters.

Java version :

java -version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03)
Java HotSpot(TM) Server VM (build 1.5.0_30-b03, mixed mode)

Thanks,
Rawat

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points