You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2011/10/06 22:14:41 UTC

svn commit: r1179816 - /james/app/trunk/pom.xml

Author: norman
Date: Thu Oct  6 20:14:40 2011
New Revision: 1179816

URL: http://svn.apache.org/viewvc?rev=1179816&view=rev
Log:
Generate heap dump when OOM. See JAMES-1258

Modified:
    james/app/trunk/pom.xml

Modified: james/app/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/app/trunk/pom.xml?rev=1179816&r1=1179815&r2=1179816&view=diff
==============================================================================
--- james/app/trunk/pom.xml (original)
+++ james/app/trunk/pom.xml Thu Oct  6 20:14:40 2011
@@ -54,6 +54,8 @@
     <jmx.system-property2>-Dcom.sun.management.jmxremote.authenticate=false</jmx.system-property2>
     <jmx.system-properties>${jmx.system-property1} ${jmx.system-property2}</jmx.system-properties>
     
+    <jvm.system-property1>-XX:+HeapDumpOnOutOfMemoryError</jvm.system-property1>
+    
     <!-- Use filesystem to copy message by default -->
     <james.system-property1>-Djames.message.usememorycopy=false</james.system-property1>
     <james.system-properties>${james.system-property1}</james.system-properties>
@@ -82,7 +84,7 @@
           <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
           <environmentSetupFileName>setenv</environmentSetupFileName>
           <!--   set some sane defaults for memory -->
-          <extraJvmArguments>-Xms128m -Xmx512m -Djava.system.class.loader=org.apache.james.container.spring.context.JamesClassLoader ${jmx.system-properties} ${javamail.system-properties} ${james.system-properties}</extraJvmArguments>
+          <extraJvmArguments>${jvm.system-property1} -Xms128m -Xmx512m -Djava.system.class.loader=org.apache.james.container.spring.context.JamesClassLoader ${jmx.system-properties} ${javamail.system-properties} ${james.system-properties}</extraJvmArguments>
           <!-- Generate bin scripts for windows and unix per default -->
           <platforms>
             <platform>windows</platform>
@@ -298,6 +300,10 @@ END Tanuki Software License ============
                       <name>wrapper.java.additional.14</name>
                       <value>${james.system-property1}</value>
                     </property>
+                    <property>
+                      <name>wrapper.java.additional.15</name>
+                      <value>${jvm.system-property1}</value>
+                    </property>
                   </configuration>
                 </generatorConfiguration>
               </generatorConfigurations>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org