1 Reply Latest reply on Jul 15, 2004 5:06 PM by cchris

    Jboss memeory leak?  .EJBs OutOfMemoryError

    arvindbc

      I have about 40 EJBs deployed on JBOSS , and has moderate traffic.After 2-3 days it gives me OutOfMemoryError.Is there a memory leak in JBOSS.

      Is there any setting that can be configured to overcome this?

      Thanks,

      Arvind

        • 1. Re: Jboss memeory leak?  .EJBs OutOfMemoryError
          cchris

          It's possible to modify your JVM parameters in run.bat (under windows).
          Uncomment the following line :
          JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m.
          Xms and Xmx are standard java paameters.
          You'll have to stop and restart JBoss of course.

          Xmsn
          Specify the initial size, in bytes, of the memory allocation pool. This value must be
          a multiple of 1024 greater than 1MB.
          Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
          The default value is 2MB.
          Examples : -128m
          Xmxn
          Specify the maximum size, in bytes, of the memory allocation pool. This value must be a
          multiple of 1024 greater than 2MB.
          Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
          The default value is 64MB.
          Examples : -Xmx512m

          -Xms128m -Xmx512m are correct most of the time but you should determine the most appropriate values for your own environment.

          I hope this helped

          Chris