I used to constantly get out of memory perm gen space error until about
a month back - 

Then I read in detail the various garbage collectors for JDK 1.6

*Throughput Collector
*Concurrent Low Pause Collector
*Incremental Low Pause Collector

I decided to use the concurrent collector as described in my settings
below. Please make sure that yoy do not mix and match various garbage
collector settings. JVM may not behave as expected.


-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:NewSize=1G
-XX:MaxPermSize=512M
-XX:CMSInitiatingOccupancyFraction=80
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=your path to the dump file
-XX:ReservedCodeCacheSize=256m 


This got rid of all my perm gen space out of memory error. Hope it
helps.


Thanks,
__________________________________
Anurag                  301-296-3838
*** Please note my email address has changed. Please update it to
amehro...@telebright.com


The information contained in this message may be privileged and
confidential and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to the
message and deleting it from your computer.


-----Original Message-----
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] 
Sent: Tuesday, September 14, 2010 10:50 AM
To: Tomcat Users List
Subject: Re: Class unloading in tomcat - PermGen Space

On Tue, Sep 14, 2010 at 4:36 PM, shivanic <shivani.chan...@gmail.com>
wrote:

>
> 3. Is there any way to setup unloading of JSP's in the 5.X versions - 
> either by using the custom classloader or any other way?.
>
> Thanks.
> Shivani
>
>

I've heard of people unloading classes via a custom garbage collector.
I don't have much details other than that you can try searching for it.
I don't know how much millage it provides either.

Also you do know you can increase permGen size. I don't know if that's
an option for you or not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to