Discussion:
[jboss-user] [Performance Tuning] - out of memory - JBoss 4.01 AS with JDK 1.5.
ram k
2012-12-31 15:29:53 UTC
Permalink
ram k [https://community.jboss.org/people/rammy1984] created the discussion

"out of memory - JBoss 4.01 AS with JDK 1.5."

To view the discussion, visit: https://community.jboss.org/message/786866#786866

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/786866#786866]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Wolf-Dieter Fink
2013-01-05 13:49:34 UTC
Permalink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: out of memory - JBoss 4.01 AS with JDK 1.5."

To view the discussion, visit: https://community.jboss.org/message/787814#787814

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787814#787814]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Radoslav Husar
2013-01-07 12:28:40 UTC
Permalink
Radoslav Husar [https://community.jboss.org/people/rhusar] created the discussion

"Re: out of memory - JBoss 4.01 AS with JDK 1.5."

To view the discussion, visit: https://community.jboss.org/message/788735#788735

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/788735#788735]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Loading...