Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

CMSClassUnloadingEnabled vs CMSPermGenSweepingEnabled

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
What's wrong? Where are you going? Stop! Read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic