java - Not able to print GC details -
i trying print gc details test program in eclipse.i want set program went run>run configurations , in vm arguments gave this:
-xms1024m -xmx1024m –xx:+printgcdetails –xx:+printgctimestamps
however when , run program following error:
java.lang.noclassdeffounderror: –xx:+printgcdetails caused by: java.lang.classnotfoundexception: –xx:+printgcdetails @ java.net.urlclassloader$1.run(urlclassloader.java:200) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:188) @ java.lang.classloader.loadclass(classloader.java:307) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301) @ java.lang.classloader.loadclass(classloader.java:252) @ java.lang.classloader.loadclassinternal(classloader.java:320)
what doing wrong in passing arguments.
what should tip off error message noclassdeffounderror: –xx:+printgcdetails
- jvm isn't trying parse option class...
then, @ dashes before -xms1024m
, –xx:+printgcdetails
/ –xx:+printgctimestamps
- they're different!
replace latter ones former (ie. "real" dashes/minus-sign) , you're go.
cheers,
Comments
Post a Comment