Tuning JVM Params for faster startups (on Linux) Wed, Oct 6. 2010
Development turn-around times for java development can be ridicously high, especially if you add things like grails to the soup.
Setting explicit JVM params such as -Xmx , Permgen size are somehow mandatory. Using 4GB RAM (for web programming, lol) is important, too.
Two other things I consider useful (for the "offiical" Sun Java SDK):
•Use the -client JVM param if you're restarting your app over and over again. This can speed up the startup times because -server is optimized for a JVM that must be running all the time and therefore does some very time consuming JIT operations.
•Tune kernel parameters. I set kernel.shmmax to the amount of available physicial memory (in bytes). I have a thorough understanding of shared memory and its usages cause I come from the C++ world, anyway I don't know all the implications /wrt Java. It made a difference
I am still not really happy with the end results - its far too slow to be funny.
Setting explicit JVM params such as -Xmx , Permgen size are somehow mandatory. Using 4GB RAM (for web programming, lol) is important, too.
Two other things I consider useful (for the "offiical" Sun Java SDK):
•Use the -client JVM param if you're restarting your app over and over again. This can speed up the startup times because -server is optimized for a JVM that must be running all the time and therefore does some very time consuming JIT operations.
•Tune kernel parameters. I set kernel.shmmax to the amount of available physicial memory (in bytes). I have a thorough understanding of shared memory and its usages cause I come from the C++ world, anyway I don't know all the implications /wrt Java. It made a difference
I am still not really happy with the end results - its far too slow to be funny.
« previous page
(Page 1 of 1, totaling 1 entries)
next page »