This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Performance and the fly likes CMSClassUnloadingEnabled  vs CMSPermGenSweepingEnabled Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "CMSClassUnloadingEnabled  vs CMSPermGenSweepingEnabled " Watch "CMSClassUnloadingEnabled  vs CMSPermGenSweepingEnabled " New topic
Author

CMSClassUnloadingEnabled vs CMSPermGenSweepingEnabled

Raja Nagendra Kumar
Greenhorn

Joined: Jun 14, 2008
Posts: 27
Hi,

Are the options CMSClassUnloadingEnabled and CMSPermGenSweepingEnabled are same, when ever I use this combination options for JVM it says

Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future

However, if I remove CMSPermGenSweepingEnabled option, the PermGen outof memory is coming, with this option in place along with other such errors don't come.

In such case, why the java gives such message during the startup.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com


Raja Nagendra Kumar,
C.T.O, www.tejasoft.com
Kees Jan Koster
Ranch Hand

Joined: Mar 31, 2009
Posts: 222
Dear Raja,

You have two problems: permgen leak and a message at startup. To me, they seem unrelated.

1) about the message: follow its advise and that's that.

2) about the permgen leak: how do you monitor your permgen? How much permgen do you give your app and how much does it use? Does the permgen fill slowly over time or in jumps? Do the jumps (if they are there) co-incide with redeployment?

Java-monitor, JVM monitoring made easy (and free)
luri ron
Ranch Hand

Joined: Dec 11, 2008
Posts: 86
if you need to get more data about the default perm generation size and the GC in your app, add the gc verbose and details, this way you know what happen within your process.

-verbose:gc and -XX:+PrintGCDetails
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: CMSClassUnloadingEnabled vs CMSPermGenSweepingEnabled
 
Similar Threads
java.lang.OutOfMemoryError: PermGen space
Out of memory Error
View the objects which are getting stored in permgen and total non heap space
Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError: PermGen space
OutOfMemoryError: PermGen space