当前位置:网站首页>Use the jvisualvm tool ----- tocmat to start JMX monitoring
Use the jvisualvm tool ----- tocmat to start JMX monitoring
2022-07-03 06:52:00 【God】
VisualVM It's a free one , Integrated multiple JDK Visualization tools for command line tools , It can provide you with powerful analysis ability , Yes Java Application performance analysis and tuning . These functions include generating and analyzing massive data 、 Tracking memory leaks 、 Monitor the garbage collector 、 Execution memory and CPU analysis , At the same time, it also supports MBeans Browse and operate on .
here Just connect to the remote tomcat.
One 、 modify tomcat The configuration file
modify tomcat/bin/shutdown.sh
CATALINA_OPTS="$CATALINA_OPTS
-Dcom.sun.management.jmxremote
-Djava.rmi.server.hostname=49.235.135.238
-Dcom.sun.management.jmxremote.port=1888
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
ip You want to monitor tomcat Of the host server ip Address
Port number , Is the monitoring port number you want to open .
sll,false No use ssl link
authenticate,false Indicates that monitoring is not used , That is, user name and password are not required
··· yes , we have tomcat The version has to be written in one line
··· This configuration does not require an account password , I didn't try to configure the account password
:wq Save the file , Then start tomcat
see 1888 Whether the port is enabled :netstat -lnp|grep java
Two 、 Connect jvisualvm.exe Of jmx
route jdk1.8\bin\jvisualvm.exe
Here we are , Local tools are connected to remote tomcat, Monitor according to your own needs .
3、 ... and 、 For specific performance analysis, please refer to :
边栏推荐
- These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products
- vmware虚拟机C盘扩容
- In depth analysis of reentrantlock fair lock and unfair lock source code implementation
- Troubleshooting of high CPU load but low CPU usage
- Code management tools
- [LeetCode]404. Sum of left leaves
- VMware virtual machine C disk expansion
- Floating menu operation
- RestHighLevelClient获取某个索引的mapping
- 2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
猜你喜欢
【类和对象】深入浅出类和对象
golang操作redis:写入、读取hash类型数据
Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
Example of joint use of ros+pytoch (semantic segmentation)
数值法求解最优控制问题(一)——梯度法
10000小时定律不会让你成为编程大师,但至少是个好的起点
Numerical method for solving optimal control problem (I) -- gradient method
Yolov1 learning notes
【5G NR】UE注册流程
10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”
随机推荐
Abstract learning
How matlab modifies default settings
Create your own deep learning environment with CONDA
Dbnet: real time scene text detection with differentiable binarization
10000小時定律不會讓你成為編程大師,但至少是個好的起點
What are the characteristics and functions of the scientific thinking mode of mechanical view and system view
Selenium - by changing the window size, the width, height and length of different models will be different
Derivation of variance iteration formula
Simple understanding of bubble sorting
Simple password lock
2022-06-23 VGMP-OSPF-域间安全策略-NAT策略(更新中)
Application scenarios of Catalan number
服务器如何设置多界面和装IIS呢?甜甜给你解答!
pytorch练习小项目
These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products
【LeetCode】Day93-两个数组的交集 II
Example of joint use of ros+pytoch (semantic segmentation)
堆排序和优先队列
爬虫代码基础教学
centos php7.3安装redis扩展