Visual GC hints "not supported by this JVM" solution (Configuration jstatd)

Source: Internet
Author: User
Tags visualvm



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)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.