JAVA VIRTUALVM Remote Monitoring configuration

Source: Internet
Author: User

Virtual VM is a tool introduced after JDK6 Update7, with the tendency to assemble other JDK tools, the current version of JDK7 has supported most of the monitoring functions, as if the memory stack could not be tracked in real-time to locate memory leaks like Jprofile and Youkit.

For remote application connections, Virtual VMS are available in two ways: Jmx and JSTATD, which are described below for the configuration of the two types of connections.

    • Jmx:

Locate the Jmxremote.password.template file under Jre/lib/management in the JDK directory on the remote server, and then copy it as Pwd.file point to the file jmx.pwd file  

such as: Jmx JMX

Adding JVM Parameters

Java_options= "${java_options}-dcom.sun.management.jmxremote.port=6789"

java_options= "${java_options}-dcom.sun.management.jmxremote.pwd.file= /jmx/jmx.pwd "  

Java_options= "${java_options}-dcom.sun.management.jmxremote.ssl=false"

Java_options= "${java_options}-dcom.sun.management.jmxremote.authenticate=false"

After you finally restart the remote server app, you are ready to connect using Java VIRTUALVM.

    • JSTATD:

Create a Java.policy file on the remote server, such as:

/tmp/jstatd.java.policy Grant codebase "file:${java.home}/. /lib/tools.jar "{permission java.security.AllPermission;};

To start the JSTATD process on a remote server:

This article from "Jixian" blog, reproduced please contact the author!

JAVA VIRTUALVM Remote Monitoring configuration

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.