Settting -Xmx and -Xss through environment variable would be more convient
--------------------------------------------------------------------------
Key: JRUBY-1103
URL: http://jira.codehaus.org/browse/JRUBY-1103
Project: JRuby
Issue Type: Wish
Affects Versions: JRuby 1.0.0RC3
Environment: mac - 10.4.9
Reporter: Jeffrey Damick
Assignee: Thomas E Enebo
Similar to JRUBY-1085, it would easier to have an environment variable to set
to change the -Xmx and -Xss rather than command line.
patch to bin/jruby:
Index: jruby
===================================================================
--- jruby (revision 3830)
+++ jruby (working copy)
@@ -111,6 +111,18 @@
JAVA_MEM=-Xmx256m
JAVA_STACK=-Xss1024k
+if [ "$JRUBY_JAVA_OPTS" != "" ] ; then
+ for val in $JRUBY_JAVA_OPTS
+ do
+ if [ "${val:0:4}" = "-Xmx" ]; then
+ JAVA_MEM=$val
+ elif [ "${val:0:4}" = "-Xss" ]; then
+ JAVA_STACK=$val
+ fi
+ done
+fi
+
+
# Split out any -J argument for passing to the JVM.
# Scanning for args is aborted by '--'.
java_args=()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email