You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by celtic man <dh...@hotmail.com> on 2011/11/03 16:25:58 UTC

Tomcat OOM errors..

I see these errors(tomcat 6) :

Exception in thread "http-bio-8080-exec-21"
java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner
$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space

And checked the the JAVA parameters : CATALINA_OPTS=-Xmx4000M

Do i need to change that to
=-Xms2048M -Xmx2048M -XX:Permsize=512m -
XX:MaxPermsize=512m  ??


Anticipating a favorable reply.
-- 
View this message in context: http://old.nabble.com/Tomcat-OOM-errors..-tp32773665p32773665.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Tomcat OOM errors..

Posted by Dale Ogilvie <Da...@trimble.com>.
Permgen memory leaks can cause those permgen OOM.

One common cause is webapps not cleaning up after themselves on context
shutdown. This leaks every loaded class from the webapp into the permgen
whenever the application is unloaded.

Knowing this one can workaround these leaks by being careful with
application redeploys, or restarting tomcat occasionally, if you can't
locate and fix the leaks in the webapp.

-----Original Message-----
From: celtic man [mailto:dheerajmannem@hotmail.com] 
Sent: Friday, 4 November 2011 4:26 a.m.
To: users@tomcat.apache.org
Subject: Tomcat OOM errors..


I see these errors(tomcat 6) :

Exception in thread "http-bio-8080-exec-21"
java.lang.OutOfMemoryError: PermGen space Exception in thread
"com.mchange.v2.async.ThreadPoolAsynchronousRunner
$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space

And checked the the JAVA parameters : CATALINA_OPTS=-Xmx4000M

Do i need to change that to
=-Xms2048M -Xmx2048M -XX:Permsize=512m - XX:MaxPermsize=512m  ??


Anticipating a favorable reply.
--
View this message in context:
http://old.nabble.com/Tomcat-OOM-errors..-tp32773665p32773665.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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


Re: Tomcat OOM errors..

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/11/3 Francis GALIEGUE <fg...@one2team.com>:
> On Thu, Nov 3, 2011 at 16:25, celtic man <dh...@hotmail.com> wrote:
>>
>> I see these errors(tomcat 6) :
>>
>> Exception in thread "http-bio-8080-exec-21"
>> java.lang.OutOfMemoryError: PermGen space
>> Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner
>> $PoolThread-#0" java.lang.OutOfMemoryError: PermGen space
>>
>> And checked the the JAVA parameters : CATALINA_OPTS=-Xmx4000M
>>
>> Do i need to change that to
>> =-Xms2048M -Xmx2048M -XX:Permsize=512m -
>> XX:MaxPermsize=512m  ??
>>
>
> -Xmx only affects the heap, and here you have an OOM at the permgen
> level, so yes you need to use -XX:MaxPermSize.

Also consider fixing whatever leaks your PermGen memory
Some information is here:
http://wiki.apache.org/tomcat/MemoryLeakProtection

Best regards,
Konstantin Kolinko

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


Re: Tomcat OOM errors..

Posted by Francis GALIEGUE <fg...@one2team.com>.
On Thu, Nov 3, 2011 at 16:25, celtic man <dh...@hotmail.com> wrote:
>
> I see these errors(tomcat 6) :
>
> Exception in thread "http-bio-8080-exec-21"
> java.lang.OutOfMemoryError: PermGen space
> Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner
> $PoolThread-#0" java.lang.OutOfMemoryError: PermGen space
>
> And checked the the JAVA parameters : CATALINA_OPTS=-Xmx4000M
>
> Do i need to change that to
> =-Xms2048M -Xmx2048M -XX:Permsize=512m -
> XX:MaxPermsize=512m  ??
>

-Xmx only affects the heap, and here you have an OOM at the permgen
level, so yes you need to use -XX:MaxPermSize.

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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