CompilerThread0: OutOfMemoryError Chunk::new Out of swap space?

Nitin Verma nitin.matrix at gmail.com
Wed Dec 31 02:15:10 PST 2008


Hi Ivan,

$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode)

$ uname -a
Linux <hostname> 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006
i686 i686 i386 GNU/Linux

JBoss is running with following options:
java -Xms1740m -Xmx1740m -server -XX:+UseParallelGC
-XX:MaxPermSize=256m -Djava.awt.headless=true
-Djava.library.path=/home/y/lib -Djava.net.preferIPv4Stack=true
-Djava.endorsed.dirs=/home/y/libexec/jboss/lib/endorsed -classpath
/home/y/libexec/jboss/bin/run.jar:/home/y/libexec/java/lib/tools.jar
org.jboss.Main -c pm

This is happening randomly on different cluster nodes.

Regards,

Nitin

On Sat, Dec 27, 2008 at 5:34 AM, Ivan Krylov <Ivan.Krylov at sun.com> wrote:
> Hi Nitin,
>
> This problem was never observed on any jdk versions later then 1.4.2.
> Reading the related bugs note I see a suggestion to use a VM option
> -XX:ThreadStackSize
> instead of Xss. Note sure why this makes a difference.
>
> What is the OS version that you are using?
> Depending on the OS and configuration there are different limitations on the
> maximum address space.
> Roughly speaking if you subtract some 200M from that maximum and divide it
> by stack size - that is how many threads you may create.
>
> Hope this helps,
>
> Ivan
>
>
> Nitin Verma wrote:
>>
>> Hi All,
>>
>> Is HotSpot bug solved in 1.7?
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4916142
>> If not is there a workaround else than reducing -Xss?
>>
>> Regards,
>>
>> Nitin Verma
>
>



More information about the hotspot-runtime-dev mailing list