5 Replies Latest reply on Aug 25, 2006 5:01 PM by rknechtel

    JBOSS is crashing..

      I have deployed EJB's of my application in JBoss 3.0.8 server. The application is running pretty good. Java.exe usually runs occupying around 200MB of memory. Once in a while, it shoots to 1GB within minutes and the CPU Usage of the server goes to almost 100%. I used Java Service Wrapper to run JBoss as a service. When JBoss shoots to 100%, wrapper usually throws an error "JVM could not get CPU Time for 25 seconds".

      After few seconds, server runs out of memory and throws OutOfMemoryException. I enabled the log in DEBUG mode and checked the log when the error happens. There are no suspecting memory leaks in the application. So, it has to be outside of Source Code.

      Any help is really apprecited.
      Michael.

        • 1. Re: JBOSS is crashing..

          Oops. I forgot to add the following comment to the above message.

          As JBoss is occupying a lot of CPU and memory, it would be easy to debug if I know what it is doing at that point.

          I saw in JMX-console that i can list the threaddump. But. i could not make any meaning out of it.

          How do i find out the current thread that is running at that point?. And how do i read the threaddump from jmx-console.

          Any help is really appreciated.

          Thanks,
          Michael.

          • 2. Re: JBOSS is crashing..

            Any help on the above topic is really appreciated.

            • 3. Re: JBOSS is crashing..
              gcoleman
              • 4. Re: JBOSS is crashing..

                Thank you for your reply. I am able to get the threadDump. I just do not know how to use it. How do i use it?. How do I find out what the current thread is? Or how do i find out what thread is using the CPU at that time?.

                Any help is really appreciated.
                Michael Smart

                • 5. Re: JBOSS is crashing..
                  rknechtel

                  I am having a similar issue with JBoss running out of memory. I do repeated deployments/re-deployments of an two ear files (in developent) and after about 6 -10 times I get this error:

                  2006-08-18 15:14:31,730 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/opt/jbossall/jboss-4.0.4.GA/server/app01/tmp/deploy/tmp59584our.ear-contents/our-ejb.jar
                  java.lang.OutOfMemoryError: PermGen space
                  2006-08-18 15:14:35,202 ERROR [STDERR] Exception in thread "ScannerThread"
                  2006-08-18 15:14:35,203 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space

                  And JBoss gets really hung and I have to do a kill -9 on it. I'm running JBoss 4.04GA with the latest EJB3.0 and Seam jars and I'm running under SuSE 10.
                  I have added the following JVM args to teh default ones:
                  JAVA_OPTS="$JAVA_OPTS -XX:NewSize=128m -XX:MaxNewSize=384m -Xmx512m -Xms512m -XX:+DisableExplicitGC"

                  Any help would be apprieciated.

                  Thanks,