changing the memory settings semi-dynamically vs GateKeeper and signing

Claudio Nieder private at
Mon Feb 20 15:26:02 PST 2012


> This could also be done elegantly by having the JavaAppLauncher use the NSDefaults API so the values can be changed using a simple "defaults write" at the command line, and possibly, using a modification of the Java preferences API itself (which is backed by CFPreferences).

Nice idea. I have built it in in my version of the JavaAppLauncher (see and now I can prepend JVM options with e.g.

defaults write JVMDefaults -array '-Xmx2048m' '-Xms128m'

Thanks for the suggestion,
Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743,

More information about the macosx-port-dev mailing list