当前位置:网站首页>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 :
边栏推荐
猜你喜欢

Dbnet: real time scene text detection with differentiable binarization

Summary of UI module design and practical application of agent mode

Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"

scroll-view指定滚动元素的起始位置

Sorting out the core ideas of the pyramid principle

如何迁移或复制VMware虚拟机系统

Personally design a highly concurrent seckill system

Selenium - by changing the window size, the width, height and length of different models will be different

ssh链接远程服务器 及 远程图形化界面的本地显示

2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution
随机推荐
10000小時定律不會讓你成為編程大師,但至少是個好的起點
Stream stream
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
The essence of interview
Liang Ning: 30 lectures on brain map notes for growth thinking
Selenium - by changing the window size, the width, height and length of different models will be different
Yolov2 learning and summary
Notes on the core knowledge of Domain Driven Design DDD
Pytest attempts to execute the test case without skipping, but the case shows that it is all skipped
How to plan well?
【开源项目推荐-ColugoMum】这群本科生基于国产深度学习框架PaddlePadddle开源了零售行业解决方案
Architecture notes
Condition annotation in uni-app realizes cross segment compatibility, navigation jump and parameter transfer, component creation and use, and life cycle function
Understand software testing
SQL implementation merges multiple rows of records into one row
RestHighLevelClient获取某个索引的mapping
Floating menu operation
【无标题】8 简易版通讯录
利用C#实现Pdf转图片
【无标题】5 自用历程