1 Reply Latest reply on Mar 6, 2004 4:35 AM by juha

    HotSpot Virtual Machine Error -- Log says perm memory is 98%

    vijpan

      We have a web app -- running on the following config:

      RedHat Linux Advanced Sever 3.0
      Jboss 3.2.3
      Intel Pentium IV - 1 CPU
      2 GB RAM
      Hibernate for Data Access, Persistence
      JAVA_OPTS = -Xms800m -Xmx800m -XX:MaxPermSize=400m

      While trying to start up the Jboss for the above app 90% of time it will give the following error and crash------

      --------------Error-----------------
      #
      # HotSpot Virtual Machine Error, Internal Error
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Server VM (1.4.2_03-b02 mixed mode)
      #
      # Error ID: 53484152454432554E54494D450E435050014F
      #
      # Problematic Thread: prio=1 tid=0x081d6370 nid=0xecd runnable
      #

      Heap at VM Abort:
      Heap
      def new generation total 81920K, used 13512K [0x6f2d0000, 0x74bb0000, 0x74bb0000)
      eden space 72832K, 18% used [0x6f2d0000, 0x70002048, 0x739f0000)
      from space 9088K, 0% used [0x742d0000, 0x742d0000, 0x74bb0000)
      to space 9088K, 0% used [0x739f0000, 0x739f0000, 0x742d0000)
      tenured generation total 728192K, used 20550K [0x74bb0000, 0xa12d0000, 0xa12d0000)
      the space 728192K, 2% used [0x74bb0000, 0x75fc1848, 0x75fc1a00, 0xa12d0000)
      compacting perm gen total 20736K, used 20501K [0xa12d0000, 0xa2710000, 0xba2d0000)
      the space 20736K, 98% used [0xa12d0000, 0xa26d5410, 0xa26d5600, 0xa2710000)
      ./run.sh: line 201: 3789 Aborted $JAVA $JAVA_OPTS -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"
      -----------------------------------------------------------------
      The above error also points out that it has used 98% of the perm gen of total around 20MB, but i am providing more than that memory by making use of the -XX:MaxPermSize=400m. I have tried various other value for this JVM option along with -Xms and -Xmx but of no avail.

      Could you guys shed a light that where i am going wrong?

      Thanks a lot!