JBoss Developer: Message List - Out of Memory LeaksMost recent forum messageshttps://developer.jboss.org/community/seam?view=discussionsJive Engage2007-07-11T08:12:40Z2007-07-11T08:12:40ZenRe: Out of Memory LeaksAlexei Novikov/people/alexeinovdo-not-reply@jboss.com2007-07-11T08:12:40Z2007-07-11T08:12:40Z<!-- [DocumentBodyStart:a6291bcf-c3b8-4274-9986-ea9ec1a5af60] --><div class="jive-rendered-content"><p style="min-height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote">"holtak" wrote:<br/>we also had PermGen problems<br/><br/>Can confirm that JRocket helps with PermGen problems.<br/><br/>You could try SUN JVM 1.6.0 update1 - it suspiciously works here untill now but maybe the server wasn`t just stressed enough and there seams to be no significant change in the SUN changelog regarding this issue...<br/><br/></blockquote><br/><br/>We also tried JRocket and are using it now in development and testing environment. It really solves the PermGen issue because there is no separate Permanent Generation of a garbage collectable memory in JRockit JVM, but it does not solve memory leaks that exist in somewhere in container or application code. Memory still leaks, the allocated heap grows, and after all, OutOfMemory condition still occures, though the system survives many more hot deploy cycles. <br/><br/>The ultimate solution to the problem would be an application and an application container that do not leak memory. The problem is there, not in the Java VM, or the memory configuration parameters. The system is leaking - it will crash sooner or later no matter what JVM or how much memory is configured.<br/><br/></div><!-- [DocumentBodyEnd:a6291bcf-c3b8-4274-9986-ea9ec1a5af60] --><img src='/beacon?t=1521468649798' />2007-07-11T08:12:40Z10 years 8 months ago0Re: Out of Memory LeaksTom Goring/people/tom_goringdo-not-reply@jboss.com2007-04-23T10:50:04Z2007-04-23T10:50:04Z<!-- [DocumentBodyStart:68bdc531-ed5f-4914-bfd3-2ba330d862d7] --><div class="jive-rendered-content"><p>Hi,<br/><br/>We had this issue in production.<br/>For us it was a bug in hibernate and java assist when using remote interfaces to the SLSB's.<br/><br/>The fix is to replace javaassist.jar and hibernate jars in jboss.<br/><br/>We used javaassist 3.4 and hibernate 3.2.3.ga.<br/><br/>Hope this helps.<br/><br/><br/>Here is our patch script.<br/></p><!--[CodeBlockStart:4b8de000-3b9f-469b-90fc-1ff8548f8fe1][excluded]--><pre class="java" name="code">
&lt;copy file="../JNET-LIBS/jboss-patch/javassist.jar" todir="${jboss.home}/client"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate3.jar" todir="${jboss.home}/client"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-annotations.jar" todir="${jboss.home}/client"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-commons-annotations.jar" todir="${jboss.home}/client"/&gt;
&lt;copy file="../JNET-LIBS/jboss-patch/javassist.jar" todir="${jboss.home}/server/default/lib"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate3.jar" todir="${jboss.home}/server/default/lib"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-annotations.jar" todir="${jboss.home}/server/default/lib"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-commons-annotations.jar" todir="${jboss.home}/server/default/lib"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-entitymanager.jar" todir="${jboss.home}/server/default/lib"/&gt;
&lt;copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-validator.jar" todir="${jboss.home}/server/default/lib"/&gt;
</pre><!--[CodeBlockEnd:4b8de000-3b9f-469b-90fc-1ff8548f8fe1]--><div style="display:none;"></div><br/><br/></div><!-- [DocumentBodyEnd:68bdc531-ed5f-4914-bfd3-2ba330d862d7] -->2007-04-23T10:50:04Z10 years 11 months ago0Re: Out of Memory LeaksJuraj Holtak/people/holtakdo-not-reply@jboss.com2007-04-23T10:41:11Z2007-04-23T10:41:11Z<!-- [DocumentBodyStart:63407c31-42b0-4bcb-9243-893fd9f1d944] --><div class="jive-rendered-content"><p>we also had PermGen problems<br/><br/>Can confirm that JRocket helps with PermGen problems.<br/><br/>You could try SUN JVM 1.6.0 update1 - it suspiciously works here untill now but maybe the server wasn`t just stressed enough and there seams to be no significant change in the SUN changelog regarding this issue...<br/><br/></p></div><!-- [DocumentBodyEnd:63407c31-42b0-4bcb-9243-893fd9f1d944] -->2007-04-23T10:41:11Z10 years 11 months ago0Re: Out of Memory LeaksYogesh/people/yj4jbossdo-not-reply@jboss.com2007-04-23T08:41:59Z2007-04-23T08:41:59Z<!-- [DocumentBodyStart:53643455-33cd-4977-b8e0-86dd5dbcc95e] --><div class="jive-rendered-content"><p>Got it</p></div><!-- [DocumentBodyEnd:53643455-33cd-4977-b8e0-86dd5dbcc95e] -->2007-04-23T08:41:59Z10 years 11 months ago0Re: Out of Memory LeaksYogesh/people/yj4jbossdo-not-reply@jboss.com2007-04-23T08:10:19Z2007-04-23T08:10:19Z<!-- [DocumentBodyStart:5ff08a3a-f03a-44e7-b69c-1370fc9931d8] --><div class="jive-rendered-content"><p>Hi ,<br/> Thnx for this tip ... Can i have a link to this jrocket ? Thnx again<br/></p></div><!-- [DocumentBodyEnd:5ff08a3a-f03a-44e7-b69c-1370fc9931d8] -->2007-04-23T08:10:19Z10 years 11 months ago0Re: Out of Memory LeaksJim Hazen/people/cptnkirkdo-not-reply@jboss.com2007-04-23T08:00:34Z2007-04-23T08:00:34Z<!-- [DocumentBodyStart:99252344-0e7e-45bf-adc1-5d808a1df3ef] --><div class="jive-rendered-content"><p>Try using JRocket. Permgen issues are tricky and are a real problem for apps like yours that load and reload a zillion classes. Someone else can probably go into the details but JBoss isn't alone, for a quick fix grab the latest R27.2 JRocket release. JRocket handles permgen differently than Sun's JVM. No settings to tweak and generally no permgen problems either. Be sure and grab the latest, I had problems with the prior version.</p></div><!-- [DocumentBodyEnd:99252344-0e7e-45bf-adc1-5d808a1df3ef] -->2007-04-23T08:00:34Z10 years 11 months ago0Out of Memory LeaksYogesh/people/yj4jbossdo-not-reply@jboss.com2007-04-23T06:08:13Z2007-04-23T06:08:13Z<!-- [DocumentBodyStart:2e460879-cade-4972-8dfe-4ddf942a1425] --><div class="jive-rendered-content"><p>Hi All,<br/> I have a web application which is in production and uses the following technologies :<br/><br/><br/>EJB 3.0<br/>Hibernate<br/>Seam<br/>JSF<br/>Facelets<br/>Ajax4JSF<br/><br/>MySQL 5.0<br/><br/><br/><br/>I am using JDK 1.5.0_09<br/><br/><br/>I have around 73 SFSB which are not using conversations and 78 SLSB and 43 Business objects.<br/><br/><br/>In production, there are four users which are connected simultaneously. The HTTP and EJB Session timeout is set to 4 hours .....<br/><br/><br/>However, the server has to be restarted at least twice a day due to OUT OF MEMORY leaks associated to Permgen space ..... I was getting this problem during development previously but increasing the permgen space to 256M solved this issue ...<br/><br/><br/>I am not sure that implementing conversations only would solve my problems .... Can anyone have other suggestions on what could be wrong. This is really posing a huge problem for me<br/><br/><br/><br/>Cheers,<br/>Jankee Yogesh<br/>Software Developer<br/>M-ITC LTD<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></p></div><!-- [DocumentBodyEnd:2e460879-cade-4972-8dfe-4ddf942a1425] -->2007-04-23T06:08:13Z10 years 11 months ago60