You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pid <pi...@pidster.com> on 2010/05/26 11:48:08 UTC

Re: Tomcat died on "java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space?" message

On 26/05/2010 04:08, Leon Kolchinsky wrote:
> Hello
> 
> I've installed Tomcat 6.0.26
> and running Confluence software on it.
> I think that maximum 2 concurrent users using this application in at
> this stage (testing now).
> 
> 
> Yesterday I've got this error in catalina.out and Tomcat died (I'm
> attaching hs_err_pid5460.log file):
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new.
> Out of swap space?

What was the last task that it was doing before requesting 2Gb more memory?

What's in catalina.out, the matching host access log and any application
logs immediately before the OOM?


p

> #  Internal Error (allocation.cpp:215), pid=5460, tid=1085901120
> #  Error: Chunk::new
> #
> # JRE version: 6.0_18-b07
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0-b13 mixed mode
> linux-amd64 )
> # An error report file with more information is saved as:
> # /tmp/hs_err_pid5460.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> #
> 
> 
> Any suggestion on how to avoid those errors and Tomcat failure in the
> future?
> May be some CATALINA_OPTS tuning options?
> 
> 
> Some system details:
> -------------------------------
> # cat /srv/tomcat/bin/setenv.sh
> export JAVA_HOME=/srv/jdk
> export PATH="${PATH}:${JAVA_HOME}/bin/"
> 
> CATALINA_OPTS="-server -XX:+UseParallelGC -Xms2048m -Xmx2048m
> -XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled
> -XX:+CMSPermGenSweepingEnabled -Djava.awt.headless=true"
> export CATALINA_OPTS
> export CATALINA_PID="$CATALINA_HOME/tomcat.pid"
> 
> # java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
> 
> # free -m
>              total       used       free     shared    buffers     cached
> Mem:          3775        730       3045          0        280        304
> -/+ buffers/cache:        144       3630
> Swap:         1023          0       1023
> 
> ---------------  S Y S T E M  ---------------
> 
> OS:Scientific Linux SL release 5.5 (Boron)
> 
> uname:Linux 2.6.18-164.15.1.el5 #1 SMP Tue Mar 16 18:44:51 EDT 2010 x86_64
> libc:glibc 2.5 NPTL 2.5
> rlimit: STACK 10240k, CORE infinity, NPROC infinity, NOFILE 1024, AS
> infinity
> load average:0.88 0.29 0.10
> 
> CPU:total 1 (1 cores per cpu, 1 threads per core) family 16 model 4
> stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext,
> 3dnow, 3dnowext, lzcnt, sse4a
> 
> Memory: 4k page, physical 3866464k(13372k free), swap 1048568k(1048500k
> free)
> 
> vm_info: Java HotSpot(TM) 64-Bit Server VM (16.0-b13) for linux-amd64
> JRE (1.6.0_18-b07), built on Dec 17 2009 13:42:22 by "java_re" with gcc
> 3.2.2 (SuSE Linux)
> 
> 
> Thanks for any help,
> Leon
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org



Re: Tomcat died on "java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space?" message

Posted by Pid <pi...@pidster.com>.
On 26/05/2010 11:15, Rainer Jung wrote:
> On 26.05.2010 11:48, Pid wrote:
>> On 26/05/2010 04:08, Leon Kolchinsky wrote:
>>> Hello
>>>
>>> I've installed Tomcat 6.0.26
>>> and running Confluence software on it.
>>> I think that maximum 2 concurrent users using this application in at
>>> this stage (testing now).
>>>
>>>
>>> Yesterday I've got this error in catalina.out and Tomcat died (I'm
>>> attaching hs_err_pid5460.log file):
>>> #
>>> # A fatal error has been detected by the Java Runtime Environment:
>>> #
>>> # java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new.
>>> Out of swap space?
>>
>> What was the last task that it was doing before requesting 2Gb more
>> memory?
>>
>> What's in catalina.out, the matching host access log and any application
>> logs immediately before the OOM?
> 
> Did you notice the full hotspot error file was attached to the OP's
> mail? Active threads seemed to be the hotspot compiler, but that
> wouldn't match with the 2GB allocation.

Nope.  Didn't get the file.


p

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



Re: Tomcat died on "java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space?" message

Posted by Rainer Jung <ra...@kippdata.de>.
On 26.05.2010 11:48, Pid wrote:
> On 26/05/2010 04:08, Leon Kolchinsky wrote:
>> Hello
>>
>> I've installed Tomcat 6.0.26
>> and running Confluence software on it.
>> I think that maximum 2 concurrent users using this application in at
>> this stage (testing now).
>>
>>
>> Yesterday I've got this error in catalina.out and Tomcat died (I'm
>> attaching hs_err_pid5460.log file):
>> #
>> # A fatal error has been detected by the Java Runtime Environment:
>> #
>> # java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new.
>> Out of swap space?
>
> What was the last task that it was doing before requesting 2Gb more memory?
>
> What's in catalina.out, the matching host access log and any application
> logs immediately before the OOM?

Did you notice the full hotspot error file was attached to the OP's 
mail? Active threads seemed to be the hotspot compiler, but that 
wouldn't match with the 2GB allocation.

Regards,

Rainer

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