I'm trying to change the garbage collector on the server's JVM to combat a java.lang.OutOfMemoryError: GC overhead limit exceeded
exception, as per some of the other questions I've found on here. Although I've ran into some confusion about the usage of these command line options. This is what I'm doing:
java -XX:+UseConcMarkSweepGC
However I'm getting the usage
message, and no indication it has changed at all.
This is the output I'm seeing:
Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: ........
Is this the correct use of the command line arguments? Am I making a stupid mistake? (it happens a lot)