Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of monitoring remote hosts by VisualVM

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what is the method of monitoring remote hosts by VisualVM". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what is the method of VisualVM monitoring remote hosts"?

VisualVM plus jstatd remotely monitors the remote host through JMI.

VisualVM is used to monitor the parameters of the underlying JVM of JAVA applications, including CPU, memory, threads, garbage collection wait status.

After starting VisualVM, you can view the local JAVA application directly, but if you want to see the JVM status of the JAVA application on the remote server, you need to configure it. The configuration method is as follows:

Log in to the remote server, change to the cd $JAVA_HOME/bin or $JAVA_HOME/jre/bin directory, create the jstatd security management file jstatd.all.policy, and then add the following:

1,touch jstatd.all.policy

2,vi jstatd.all.policy

Add the following text:

Grant codebase "file:/usr/local/java6/jdk1.6.0_45/lib/tools.jar" {

Permission java.security.AllPermission

}

three,

Jstatd-J-Djava.security.policy=jstatd.all.policy-p 1000-J-Djava.rmi.server.hostname=10.0.1.68 &

Description:

Jstatd-J-Djava.security.policy=all.policy starts monitoring according to security policy (if the hosts file is not configured properly, it may be abnormal to start alone)

-p 1099 launch port 1099 to monitor VisualVM (the default is port 1099, and the client will connect automatically. If it is changed to another port, it needs to be set on VisualVm)

-J-Djava.rmi.server.hostname=192.168.100.52 native IP (if the hosts file is not configured properly, you can manually specify the native IP for VisualVM configuration monitoring)

& running in the background

Connection successful:

At this point, I believe you have a deeper understanding of "what is the method of VisualVM monitoring remote hosts". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report