Launcher incorrectly handles cases when JVM heap/stack settings are provided in
command line and in JAVA_OPTS
-------------------------------------------------------------------------------------------------------------
Key: JRUBY-4607
URL: http://jira.codehaus.org/browse/JRUBY-4607
Project: JRuby
Issue Type: Bug
Components: Launcher
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
Fix For: JRuby 1.5
First, set JAVA_OPTS:
{noformat}
set JAVA_OPTS=-Xmx111m -Xss222k
{noformat}
Then execute the following:
{noformat}
jruby -Xcommand -J-Xmx888m -J-Xrss999k
D:/re/java6\bin\java
-Xmx111m <----
-Xss222k <----
-Xmx888m <----
-Xrss999k <----
-Djdk.home=D:/re/java6
-Djruby.home=D:\work\jruby-dev\nb
-Djruby.script=jruby
-Djruby.shell=cmd.exe
-Djffi.boot.library.path=D:\work\jruby-dev\nb\lib\native\i386-Windows
-Djruby.memory.max=111m <-----------
-Djruby.stack.max=222k <-----------
-Dsun.java.command=org.jruby.Main
-Djava.class.path=
org/jruby/Main
{noformat}
There are *two* problems here. First, both settings from command line and
JAVA_OPTS are present at the same time.
Second, -Djruby.memory and -Djruby.stack values are taken from JAVA_OPTS, while
they should be taken from explicitly stated values from the command line.
--
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