3 ms·
More memory will help, but just as important is adjusting the garbage collection algorithm and disabling the unnecessarily paranoid class verification that java
by pohl 16y ago
More memory will help, but just as important is adjusting the garbage collection algorithm and disabling the unnecessarily paranoid class verification that java does:
http://davidsalter.co.uk/blog/?p=332 http://davidsalter.co.uk/blog/?p=332
Here's mine:
-XX:PermSize=256m
-XX:MaxPermSize=256m
-XX:+UseConcMarkSweepGC
-XX:CMSIncrementalMode
-XX:CompileThreshold=100
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-Xverify:none
-Xms1650m
-Xmx1650m
Edit: Yeah, 1650m is way more memory than I really need. I'm just fortunate enough to have 8G in this machine so I had plenty to spare.
Edit again: I use emacs in Terminal to edit /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.inito add these parameters