servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1356122 - /servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
Date Mon, 02 Jul 2012 08:58:38 GMT
Author: jbonofre
Date: Mon Jul  2 08:58:37 2012
New Revision: 1356122

URL: http://svn.apache.org/viewvc?rev=1356122&view=rev
Log:
[SM-2131] Add MaxPermSize support by default

Modified:
    servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix

Modified: servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix?rev=1356122&r1=1356121&r2=1356122&view=diff
==============================================================================
--- servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
(original)
+++ servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
Mon Jul  2 08:58:37 2012
@@ -34,6 +34,11 @@ if [ "x$JAVA_MAX_MEM" = "x" ]; then
     export JAVA_MAX_MEM
 fi
 
+if [ "x$JAVA_PERMGEN_MAX_MEM" = "x" ]; then
+    JAVA_PERMGEN_MAX_MEM=256m
+    export JAVA_PERMGEN_MAX_MEM
+fi
+
 
 warn() {
     echo "${PROGNAME}: $*"
@@ -93,7 +98,6 @@ unlimitFD() {
                 # use the system max
                 MAX_FD="$MAX_FD_LIMIT"
             fi
-            
             ulimit -n $MAX_FD
             # echo "ulimit -n" `ulimit -n`
             if [ $? -ne 0 ]; then
@@ -191,7 +195,7 @@ setupDebugOptions() {
 }
 
 setupDefaults() {
-    DEFAULT_JAVA_OPTS="-Xms$JAVA_MIN_MEM -Xmx$JAVA_MAX_MEM -Dderby.system.home=$SERVICEMIX_HOME/data/derby
-Dderby.storage.fileSyncTransactionLog=true -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
-Dcom.sun.management.jmxremote"
+    DEFAULT_JAVA_OPTS="-XX:MaxPermSize=$JAVA_PERMGEN_MAX_MEM -Xms$JAVA_MIN_MEM -Xmx$JAVA_MAX_MEM
-Dderby.system.home=$SERVICEMIX_HOME/data/derby -Dderby.storage.fileSyncTransactionLog=true
-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Dcom.sun.management.jmxremote"
 
     #Set the JVM_VENDOR specific JVM flags
     if [ "$JVM_VENDOR" = "SUN" ]; then



Mime
View raw message