Hi Tudor, it should be jvmSettings runtimeSettings addOption: '-Xmx4000m'. The options are added with exactly the same string which is used in command lines. You can check the value of an option by using java.lang.System.getProperty() if it is a "-Dname=value" option. For -X options, it is not as simple as that, see e.g. https://technology.amis.nl/2008/12/03/accessing-jvm-arguments-from-java-to-d... HTH Joachim Tudor Girba-2 wrote
Hi Joachim,
Do you happen to know how to set the Xmx for the JVM through JNIPort?
I have this one right now, but I am not sure it's correct:
jvmSettings := JVMSettings new. ... jvmSettings runtimeSettings addOption: 'Xmx4000m'. ^ JVM newWithSettings: jvmSettings
Cheers, Tudor
-- View this message in context: http://forum.world.st/how-to-increase-memory-for-the-jvm-through-jniport-tp4... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.