- Start
jstatd
on the remote host. You need to specify a policy file, otherwise you will get anAccessControlException: access denied
exception. Create a policy file e.g./tmp/tools.policy
containing:grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; };
Then startjstatd
using the command below:jstatd -J-Djava.security.policy=/tmp/tools.policy
- Start Visual VM. Add a Remote Host and then add a "jstatd connection" to it. Your JVM should appear in the list. You can then click on it and look at the "Visual GC" tab for garbage collection information.
Saturday, February 04, 2012
Visual GC Error: Not Supported for this JVM
The Visual GC plugin for Visual VM graphically displays garbage collection, class loader, and HotSpot compiler performance data.
If you install this plugin and, like me, get the error "Not Supported for this JVM", when you try to start Visual GC, try the following steps:
Labels:
GC,
Java,
programming
Subscribe to:
Post Comments (Atom)
Thanks.....It helped me :)
ReplyDeletevery helpful, your blog happened to help me twice since 4 months ! I will definitly bookmark it now. Thank you, Fahd
ReplyDeleteThank you. This worked like a charm.
ReplyDelete