Visual GC Prompt "Not supported by this JVM", if you want to use this plug-in, you need to configure the JSTATD connection method, the following jstatd configuration;
1. Configure security Policy
File path $java_home/jre/lib/security/java.policy
At the bottom of the file}; Before adding
Permission java.security.AllPermission;
2. Start JSTATD
Note: It is activated on the monitored machine
CD $JAVA _home/bin
./jstatd-j-djava.security.policy=all.policy &
After startup, registration port 1099 and a random connection port are turned on, and the registration port can also be specified by the-p parameter, such as./jstatd-j-djava.security.policy=all.policy-p 10003 &
3. Setting up a firewall
In addition to adding 1099 to the firewall rule, you need to find another random port and add it to the rule.
Perform
NETSTAT-ANP | grep *jstatd
Vi/etc/sysconfig/iptables
Join before a input-j REJECT--reject-with icmp-host-prohibited
-A input-p tcp-m state--state new-m TCP--dport 1009-j ACCEPT
4. Testing
Start VISUALVM because the server nodes have been added when you configure JMX, and if configured correctly, VISUALVM automatically detects JSTATD connections and adds nodes
If there is no automatic addition, you can check if the port is connected and try to add the connection manually
Visual GC hints "not supported by this JVM" solution (Configuration jstatd)