[Swift-commit] cog r3633

swift at ci.uchicago.edu swift at ci.uchicago.edu
Sat Mar 9 20:40:08 CST 2013


------------------------------------------------------------------------
r3633 | hategan | 2013-03-09 20:35:42 -0600 (Sat, 09 Mar 2013) | 1 line

give the jvm 512M instead of 256M on 64 bit systems
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/impl/execution/coaster/bootstrap/Bootstrap.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/impl/execution/coaster/bootstrap/Bootstrap.java	(revision 3632)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/impl/execution/coaster/bootstrap/Bootstrap.java	(working copy)
@@ -185,7 +185,14 @@
         args.add("2");
         args.add(java);
         addDebuggingOptions(args);
-        args.add("-Xmx256M");
+        String arch = System.getProperty("os.arch");
+        if (arch != null && arch.indexOf("64") != -1) {
+            // give the JVM more memory on 64 bit systems
+            args.add("-Xmx512M");
+        }
+        else {
+            args.add("-Xmx256M");
+        }
         args.add("-Dtcp.channel.log.io.performance=true");
         //pass user home override to service
         args.add("-Duser.home=" + System.getProperty("user.home"));



More information about the Swift-commit mailing list