changing the memory settings semi-dynamically vs GateKeeper and signing

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


Hi,

> 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 https://gist.github.com/1865926) and now I can prepend JVM options with e.g.

defaults write full.qualified.bundle.id JVMDefaults -array '-Xmx2048m' '-Xms128m'

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






More information about the macosx-port-dev mailing list