<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
jboss 4.0.5 - OutOfMemory in 2 hours
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/anitaalbert">Anita Albert</a> in <i>Performance Tuning</i> - <a href="http://community.jboss.org/message/579550#579550">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p>  I am a newbie to performance tuning. So sorry if these questions/descriptions sound dumb. We have an application running on jboss 4.0.5. Our application seems to crash with an Out of memory error within 2 hours. We recently did some major code revamping and a simultaneous upgrade from jdk1.5.0_11 to jdk1.6.0_23 and now we're not sure why it's crashing These are the jvm parameters - </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>-Dsun.lang.ClassLoader.allowArraySyntax=true -Doracle.jdbc.V8Compatible=true -Xrs -Dprogram.name=run.bat -Xms1280m -Xmx1280m -Xrs -XX:MaxPermSize=192m -XX:+DisableExplicitGC -verbose:gc -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationConcurrentTime -Xloggc:D:\jboss\bin\\..\server\default\log\gc.log -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=D:\jboss\bin\\..\lib\endorsed . Here's the extract of the log when it crashed - </p><p>#<br/># A fatal error has been detected by the Java Runtime Environment:<br/>#<br/># java.lang.OutOfMemoryError: requested 894664 bytes for Chunk::new. Out of swap space?<br/>#<br/>#  Internal Error (allocation.cpp:272), pid=2000, tid=7980<br/>#  Error: Chunk::new<br/>#<br/># JRE version: 6.0_23-b05<br/># Java VM: Java HotSpot(TM) Server VM (19.0-b09 mixed mode windows-x86 )<br/># If you would like to submit a bug report, please visit:<br/>#   <a class="jive-link-external-small" href="http://java.sun.com/webapps/bugreport/crash.jsp">http://java.sun.com/webapps/bugreport/crash.jsp</a><br/>#</p><p>---------------  T H R E A D  ---------------</p><p>Current thread (0x5fd17000):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=7980, stack(0x5ff30000,0x5ff80000)]</p><p>Stack: [0x5ff30000,0x5ff80000],  sp=0x5ff7e5e4,  free space=313k<br/>Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)<br/>V  [jvm.dll+0x33e8f7]<br/>V  [jvm.dll+0x1065fc]<br/>V  [jvm.dll+0x3e0fc]<br/>V  [jvm.dll+0x3e393]<br/>V  [jvm.dll+0x2c9293]<br/>V  [jvm.dll+0x13cfe8]<br/>V  [jvm.dll+0x245f55]<br/>V  [jvm.dll+0xe20ab]<br/>V  [jvm.dll+0xe4628]<br/>V  [jvm.dll+0xe4f12]<br/>V  [jvm.dll+0xa6c7a]<br/>V  [jvm.dll+0xe7009]<br/>V  [jvm.dll+0xe7bbf]<br/>V  [jvm.dll+0x31e924]<br/>V  [jvm.dll+0x2924ac]<br/>C  [msvcr71.dll+0x9565]<br/>C  [kernel32.dll+0x2482f]</p><p><br/>Current CompileTask:<br/>C2:4077  !   org.jboss.mq.il.uil2.SocketManager$ReadTask.run()V (547 bytes)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm attaching the entire log and also the garbage collection log. I am not able to interpret what is going wrong by looking at these logs. Could anyone please guide me as to how to interpret these logs or point me to what is going wrong? I would really appreciate it. Please let me know if any more description is needed. We are planning to deploy it for user testing in two days and a crash every two hours would be unacceptable.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/579550#579550">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Performance Tuning at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>