Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: resolve java.lang.OutOfMemoryError: PermGen space failure
PostPosted: Sat Jul 14, 2012 12:45 am 
Newbie

Joined: Thu Mar 29, 2012 8:16 am
Posts: 5
The default size of PermGen space is 64MB in most of the JVMs. Increase the PermGen size into 256mb using the JVM option -XX:MaxPermSize=128m [export JVM_ARGS="-Xmx1024m -XX:MaxPermSize=256m"].
The another way to rectify this problem is to get the PermGen space to be garbage collected. Use -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled option to enable the PermGen space to be garbage collected. Though this option will be the better one, make sure that your application needs PermGen space which is lower than 64MB, if not resize the memory using the first option.
If anybody has other advices or suggestions, mention it here please.....

_________________
Visruth CV


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.