Author stuckyb
Recipients stuckyb
Date 2016-11-14.20:42:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When running jython on Xubuntu 15.10, JVM heap size arguments are ignored.  E.g., I passed -Xmx512m to the JVM in two ways: via the jython launch script as -J-Xmx512m, and by setting the value of the JAVA_MEM environment variable.  In both cases, running jython with the --print option confirmed that the JVM argument was correctly parsed and passed to the call of the JVM.  However, when executing a memory-intensive script, the Java process always used approximate 2.1 GB of RAM regardless of whether I set -Xmx much lower or much higher than 2 GB.

The problem seems to be with the call to os.execvp() in the jython launch script (line 431).  If I have jython print the java command string, then execute this command directly on the command line, the JVM memory limits behave exactly as expected.
Date User Action Args
2016-11-14 20:42:37stuckybsetmessageid: <>
2016-11-14 20:42:37stuckybsetrecipients: + stuckyb
2016-11-14 20:42:37stuckyblinkissue2532 messages
2016-11-14 20:42:37stuckybcreate