2 Replies Latest reply on Feb 25, 2005 7:22 AM by david.salter

    JVM Crash

    david.salter

      I'm getting a lot of JVM crashes on JDK 1.5.0_01 on Win XP (1Gb Memory) and JBoss 4.0.1

      Looking at the crash log (relevant buts posted below), it looks like the perm gen space is full, so I thought that I must have the wrong Xmx etc arguments when starting up JBoss. I've tried several different options however and none of them seem to stop the JVM crashing.

      Are there recommended settings or am I setting something incorrectly?

      Ta,

      Dave.

      Heap
       def new generation total 52416K, used 28710K [0x02a20000, 0x06300000, 0x06300000)
       eden space 46592K, 61% used [0x02a20000, 0x04628720, 0x057a0000)
       from space 5824K, 0% used [0x05d50000, 0x05d511b8, 0x06300000)
       to space 5824K, 0% used [0x057a0000, 0x057a0000, 0x05d50000)
       tenured generation total 466048K, used 56842K [0x06300000, 0x22a20000, 0x22a20000)
       the space 466048K, 12% used [0x06300000, 0x09a82b58, 0x09a82c00, 0x22a20000)
       compacting perm gen total 36352K, used 36150K [0x22a20000, 0x24da0000, 0x26a20000)
       the space 36352K, 99% used [0x22a20000, 0x24d6db68, 0x24d6dc00, 0x24da0000)
      No shared spaces configured.
      
      
      VM Arguments:
      jvm_args: -Dprogram.name=run.bat -Xms512m -Xmx512m -Djava.endorsed.dirs=C:\Devtools\java\jboss-4.0.1\bin\\..\lib\endorsed
      java_command: org.jboss.Main -c all
      


        • 1. Re: JVM Crash
          starksm64

          -Xmx has no affect on the permanent generation heap size. See:


          http://java.sun.com/docs/hotspot/VMOptions.html

          • 2. Re: JVM Crash
            david.salter

            Do you mean:

            -XX:MaxPermSize=64m


            I've set this higher and it makes no difference. Relevant parts of the error trace are below:

            Heap
             def new generation total 26240K, used 23310K [0x02a20000, 0x04690000, 0x04690000)
             eden space 23360K, 99% used [0x02a20000, 0x040e2a20, 0x040f0000)
             from space 2880K, 0% used [0x040f0000, 0x040f1150, 0x043c0000)
             to space 2880K, 0% used [0x043c0000, 0x043c0000, 0x04690000)
             tenured generation total 233024K, used 46801K [0x04690000, 0x12a20000, 0x12a20000)
             the space 233024K, 20% used [0x04690000, 0x07444468, 0x07444600, 0x12a20000)
             compacting perm gen total 34048K, used 33959K [0x12a20000, 0x14b60000, 0x1aa20000)
             the space 34048K, 99% used [0x12a20000, 0x14b49d28, 0x14b49e00, 0x14b60000)
            No shared spaces configured.
            
            VM Arguments:
            jvm_args: -Dprogram.name=run.bat -Xms256m -Xmx256m -XX:MaxPermSize=128m -Djava.endorsed.dirs=C:\Devtools\java\jboss-4.0.1\bin\\..\lib\endorsed
            java_command: org.jboss.Main -c all