Home → 2004/04/30, 16h05
UseConcMarkSweepGC or UseConMarkSweepGC
This post is just search engine meat for those who read the article on Javaworld about Garbage Collection in J2SE 1.4.1, and cannot start the JVM with the Concurrent mark and sweep switch that the article proposes to use in certain situations. The option, or switch, is written in the article as -XX:+UseConMarkSweepGC while it should be -XX:+UseConcMarkSweepGC.
No big deal but if you are getting this message when invoking the Java VM with this switch
C:\>java -XX:+UseConMarkSweepGC ...
Unrecognized VM option '+UseConMarkSweepGC'
Could not create the Java virtual machine.
, you may just have to add a "c" after "con". C'est con, but its the kind of error that can sometimes be hard to identify.