1 Reply Latest reply on Jul 16, 2007 9:35 AM by idylle test

    OutOfMemory occurs each night

    idylle test Newbie

      Hi,

      I've got a problem with my JBoss server. Each day I start it, it goes "outofmemory" during night and so the server is down when I come back the day after. It's just a test server for now, nobody is using it during night.

      Here is my configuration :
      java -version

      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20070201 (SR4))
      IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20070201 (JIT enabled)
      J9VM - 20070131_11312_lHdSMR
      JIT - 20070109_1805ifx1_r8
      GC - 200701_09)
      JCL - 20070126


      JBoss server version :
      JBoss 4.0.5 installed with jems-installer-1.2.0.GA.jar (option ejb3-clustered)


      Server version :
      Linux version 2.6.9-55.ELsmp


      I've deployed one ear file containing a Seam 1.2.1 application.

      The core log are :
      NULL ------------------------------------------------------------------------
      0SECTION TITLE subcomponent dump routine
      NULL ===============================
      1TISIGINFO Dump Event "uncaught" (00008000) Detail "java/lang/OutOfMemoryError":"heap allocation failed" received
      1TIDATETIME Date: 2007/07/14 at 03:50:38
      1TIFILENAME Javacore filename: /opt/jboss-4.0.5.GA/bin/javacore.20070714.035023.18308.txt
      NULL ------------------------------------------------------------------------
      0SECTION GPINFO subcomponent dump routine
      NULL ================================
      2XHOSLEVEL OS Level : Linux 2.6.9-55.ELsmp
      2XHCPUS Processors -
      3XHCPUARCH Architecture : x86
      3XHNUMCPUS How Many : 4
      NULL
      1XHERROR2 Register dump section only produced for SIGSEGV, SIGILL or SIGFPE.
      NULL
      NULL ------------------------------------------------------------------------
      0SECTION ENVINFO subcomponent dump routine
      NULL =================================
      1CIJAVAVERSION J2RE 5.0 IBM J9 2.3 Linux x86-32 build j9vmxi3223-20070201
      1CIVMVERSION VM build 20070131_11312_lHdSMR
      1CIJITVERSION JIT enabled - 20070109_1805ifx1_r8
      1CIRUNNINGAS Running as a standalone JVM
      1CICMDLINE java -Dprogram.name=run.sh -Xms512m -Xmx512m -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/opt/jboss-4.0.5.GA/lib/endorsed -classpath /opt/jboss-4.0.5.GA/bin/run.jar:/lib/tools.jar org.jboss.Main
      1CIJAVAHOMEDIR Java Home Dir: /usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre
      1CIJAVADLLDIR Java DLL Dir: /usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin
      1CISYSCP Sys Classpath: /opt/jboss-4.0.5.GA/lib/endorsed/serializer.jar;/opt/jboss-4.0.5.GA/lib/endorsed/xalan.jar;/opt/jboss-4.0.5.GA/lib/endorsed/resolver.jar;/opt/jboss-4.0.5.GA/lib/endorsed/xml-apis.jar;/opt/jboss-4.0.5.GA/lib/endorsed/xercesImpl.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/vm.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/core.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/charsets.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/graphics.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/security.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmpkcs.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmorb.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmcfw.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmorbapi.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmjcefw.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmjgssprovider.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmjsseprovider2.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmjaaslm.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ibmcertpathprovider.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/server.jar;/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/xml.jar;
      1CIUSERARGS UserArgs:
      2CIUSERARG -Xjcl:jclscar_23
      2CIUSERARG -Dcom.ibm.oti.vm.bootstrap.library.path=/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin
      2CIUSERARG -Dsun.boot.library.path=/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin
      2CIUSERARG -Djava.library.path=/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin:/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin:/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin/classic:/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/bin:/usr/lib
      2CIUSERARG -Djava.home=/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre
      2CIUSERARG -Djava.ext.dirs=/usr/lib/jvm/java-1.5.0-ibm-1.5.0.4/jre/lib/ext
      2CIUSERARG -Duser.dir=/opt/jboss-4.0.5.GA/bin
      2CIUSERARG _j2se_j9=70912 0x0031E940
      2CIUSERARG vfprintf 0x0804BB40
      2CIUSERARG -Dprogram.name=run.sh
      2CIUSERARG -Xms512m
      2CIUSERARG -Xmx512m
      2CIUSERARG -XX:+CMSPermGenSweepingEnabled
      2CIUSERARG -XX:MaxPermSize=128m
      2CIUSERARG -Dsun.rmi.dgc.client.gcInterval=3600000
      2CIUSERARG -Dsun.rmi.dgc.server.gcInterval=3600000
      2CIUSERARG -Djava.endorsed.dirs=/opt/jboss-4.0.5.GA/lib/endorsed
      2CIUSERARG -Dinvokedviajava
      2CIUSERARG -Djava.class.path=/opt/jboss-4.0.5.GA/bin/run.jar:/lib/tools.jar
      2CIUSERARG vfprintf
      2CIUSERARG _port_library 0x00320C80
      2CIUSERARG -Xdump
      NULL
      1CIJVMMI JVM Monitoring Interface (JVMMI)
      NULL ------------------------
      2CIJVMMIOFF [not available]
      NULL
      NULL ------------------------------------------------------------------------
      0SECTION MEMINFO subcomponent dump routine
      NULL =================================
      1STHEAPFREE Bytes of Heap Space Free: 179a6a60
      1STHEAPALLOC Bytes of Heap Space Allocated: 20000000
      NULL
      1STSEGTYPE Internal Memory
      NULL segment start alloc end type bytes
      1STSEGMENT 0914C6EC 75540510 7554077C 75550510 01000040 10000
      1STSEGMENT 0914C008 75530508 75540504 75540508 01000040 10000
      1STSEGMENT 0914C4A0 75520500 755304F8 75530500 01000040 10000
      1STSEGMENT 0914BE64 754F04E8 754FB85C 755004E8 01000040 10000
      1STSEGMENT 0914BF60 0A050040 0A05FFE0 0A060040 01000040 10000
      1STSEGMENT 0914BC6C 0A3220D0 0A3320C4 0A3320D0 01000040 10000
      1STSEGMENT 088E2BE0 090C20A0 090D20A0 090D20A0 01000040 10000
      1STSEGMENT 088E2940 08E8A1D0 08E9A1CC 08E9A1D0 01000040 10000 etc....


        • 1. Re: OutOfMemory occurs each night
          idylle test Newbie

          I've posted my message too fast, here is the end of my question :

          I've tried to change start parameters by adding this :

          -XX:+CMSPermGenSweepingEnabled XX:MaxPermSize=128m

          but it doesn't solve anything.

          Does anybody have an idea of solution? Is it a problem with the versions I use or can it be solved by changing parameters?

          Thanks