You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mehrotra, Anurag" <am...@telebright.com> on 2010/07/16 22:59:34 UTC

java.lang.OutOfMemoryError: PermGen space

Off lately I have been running into PermGenSpace Out of memory errors.

 

07/15/2010 20.08.12

java.lang.OutOfMemoryError: PermGen space

 

 

After reading few posts I even start the tomcat using the following
parameter:

 

-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -XX:NewSize=512m
-XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m
-XX:+DisableExplicitGC

 

I'm using the following:

 

 

Apache Tomcat/6.0.24

Apache httpd:  Apache/2.2.15 (Win32) mod_ssl/2.2.15 OpenSSL/0.9.8m
mod_jk/1.2.30

JVM - 1.6.0_18-b07 - 64 bit SUN implementation

Windows Server 2008 R2  - 64 bit

 

 

This error keeps occurring at least once every day. I don't even see
much load on the server either (about 30 simultaneous connections at any
given time). 

 

Is there anything I'm missing or have overlooked. Any help would be
appreciated.

 

 

 

 

Here is my memory utilization: 

Memory MXBean

Heap Memory Usage

init = 4294967296(4194304K) used = 736729304(719462K) committed =
4288348160(4187840K) max = 11453267968(11184832K) 

 

Memory MXBean

Heap Memory Usage

init = 4294967296(4194304K) used = 736729304(719462K) committed =
4288348160(4187840K) max = 11453267968(11184832K) 

 

Memory MXBean

Heap Memory Usage

init = 4294967296(4194304K) used = 736729304(719462K) committed =
4288348160(4187840K) max = 11453267968(11184832K) 

 

Memory MXBean

Heap Memory Usage

init = 4294967296(4194304K) used = 736729304(719462K) committed =
4288348160(4187840K) max = 11453267968(11184832K) 

 

Memory MXBean

Heap Memory Usage

init = 4294967296(4194304K) used = 736729304(719462K) committed =
4288348160(4187840K) max = 11453267968(11184832K) 

Non-Heap Memory Usage

init = 24313856(23744K) used = 95717208(93473K) committed =
97452032(95168K) max = 138412032(135168K) 

 

Memory Pool MXBeans

Code Cache

Type

Non-heap memory

Usage

init = 2555904(2496K) used = 12208704(11922K) committed =
12386304(12096K) max = 50331648(49152K)

Peak Usage

init = 2555904(2496K) used = 12211200(11925K) committed =
12386304(12096K) max = 50331648(49152K)

Collection Usage

null

 

PS Eden Space

Type

Heap memory

Usage

init = 1073807360(1048640K) used = 690843320(674651K) committed =
1418395648(1385152K) max = 4281925632(4181568K)

Peak Usage

init = 1073807360(1048640K) used = 1428750336(1395264K) committed =
1428750336(1395264K) max = 4292214784(4191616K)

Collection Usage

init = 1073807360(1048640K) used = 0(0K) committed =
1418395648(1385152K) max = 4281925632(4181568K)

 

PS Survivor Space

Type

Heap memory

Usage

init = 178913280(174720K) used = 0(0K) committed = 6619136(6464K) max =
6619136(6464K)

Peak Usage

init = 178913280(174720K) used = 27544328(26898K) committed =
178913280(174720K) max = 178913280(174720K)

Collection Usage

init = 178913280(174720K) used = 0(0K) committed = 6619136(6464K) max =
6619136(6464K)

 

PS Old Gen

Type

Heap memory

Usage

init = 2863333376(2796224K) used = 45885984(44810K) committed =
2863333376(2796224K) max = 8589934592(8388608K)

Peak Usage

init = 2863333376(2796224K) used = 59115592(57730K) committed =
2863333376(2796224K) max = 8589934592(8388608K)

Collection Usage

init = 2863333376(2796224K) used = 45885984(44810K) committed =
2863333376(2796224K) max = 8589934592(8388608K)

 

PS Perm Gen

Type

Non-heap memory

Usage

init = 21757952(21248K) used = 83508504(81551K) committed =
85065728(83072K) max = 88080384(86016K)

Peak Usage

init = 21757952(21248K) used = 83508504(81551K) committed =
85262336(83264K) max = 88080384(86016K)

Collection Usage

init = 21757952(21248K) used = 83500864(81543K) committed =
85065728(83072K) max = 88080384(86016K)

 

 

 

Thanks,

__________________________________

Anurag                                 301-296-3838

*** Please note my email address has changed. Please update it to
amehrotra@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.

 

 


RE: java.lang.OutOfMemoryError: PermGen space

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mehrotra, Anurag [mailto:amehrotra@telebright.com]
> Subject: java.lang.OutOfMemoryError: PermGen space
> 
> Off lately I have been running into PermGenSpace Out 
> of memory errors.

Are you reloading any webapps?  Have you looked inside the heap to see what classes are consuming the PermGen space?  Have you read the FAQ entry on the subject?

http://wiki.apache.org/tomcat/FAQ/Memory

> -XX:NewSize=512m -XX:MaxNewSize=512m

I'd remove the above two settings, just on general principles.  No point in tying one hand of the garbage collector behind its back.

You might want to add -XX:+HeapDumpOnOutOfMemoryError so you can look at it with jhat or similar tools.

http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/technotes/tools/share/jhat.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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