2 Replies Latest reply on Jan 7, 2013 7:28 AM by Radoslav Husar

    out of memory - JBoss 4.01 AS with JDK 1.5.

    ram k Newbie

      Hi All

       

      In the project which i work on we receive the out of memory error . I acquired the heap dump by adding the JVM params. I analyzed the heap dump with memory analyzer and i see huge amount of heap is retained by class org.apache.tomcat.util.threads.ThreadWithAttributes. I can see all my entity objects are added to the ArrayList within that class and its never getting released. We are basically exposing our buisness as web services. Its using XFire and Can someone explain how to proceed on these issues. What will be the next step in the analysis? Any ideas will be really appreciated.

       

      JVM params  specified in run.bat

       

      set JAVA_OPTS=%JAVA_OPTS% -Xms9728m -Xmx9728m -server -Xss192k -XX:MaxPermSize=128m -XX:+HeapDumpOnCtrlBreak -XX:+HeapDumpOnOutOfMemoryError

       

      Please let me know if any details are to be provided.

        • 1. Re: out of memory - JBoss 4.01 AS with JDK 1.5.
          Wolf-Dieter Fink Master

          You should analyze the ArrayList, if the ThreadWithAttributes are growing you may have a session or objects that holds references of it and it's get never released by GC.

           

          If you can reproduce it in a smaler dev-environment you can use a profiler (i.e. eclipse, netbeans or iProfiler) there are several useful view to follow the references.

          Also I would not bar a bug in the old AS4.0, but this can be checked if the problem happens after app changes.

          • 2. Re: out of memory - JBoss 4.01 AS with JDK 1.5.
            Radoslav Husar Master

            Other people who seem to have run into an issue that gave out same signs as your issue, mostly find out that it is their internal application issue where their code causes Tomcat/JBoss Web threads to keep data in that thread, meaning it is not a Tomcat issue.

             

            I would look into your application and look at what could it be.