1 Reply Latest reply on Aug 11, 2010 9:30 AM by saltnlight5

    jboss automatically restart in exceptional cases?

    gungor

      I run JBoss in linux background on a machine with limited memory. How can jboss restart itself after OutOfMemory Error?

        • 1. Re: jboss automatically restart in exceptional cases?
          saltnlight5

          When JBoss, or any Java application, runs into OutOfMemory error, you should exit your app and fix the real issue that cause it to consume that much memory. Don't just simply restarting the server and hope it go away by itself!

           

          Either fix it by increase your JBoss server heap memory size to reach your need, or fix your app that runs on JBoss to use less memory.

           

          Google Java options on -Xmx usage.