Useful Java VM switches

These switches apply to Java 5 and up.

Switch Description
-Dsun.java2d.d3d=false Disables direct3d in case you have a problem in full screen mode, this solves also the bug 4417798
-Xms: ex. -Xms64m Default Java heap size
-Xmx: ex. -Xmx1024m Maximum Java heap size
-XX:+PrintGCdetails Prints the basic GC information
-XX:+PrintGCdetails Prints the detail GC information
-client Uses the client JVM
-server Uses the server JVM

Leave a Reply