当前位置:网站首页>Recommend a distributed JVM monitoring tool, which is very practical!

Recommend a distributed JVM monitoring tool, which is very practical!

2022-06-24 18:25:00 Migrant worker brother

Click on Focus on official account , reply “1024” obtain 2TB Learning resources !

Introduce

The project is to facilitate developers to monitor multiple remote hosts faster jvm, If your project is Spring boot So it's easy to integrate ,jar The package can be imported , No Spring boot Don't be discouraged , You can quickly initialize a Spirng boot Program introduction jar Bag can

Effect display

9180f504237bf0cea7dbb3723eb6c774.png

The overall architecture

f463d2ffdf414e2f5f658e615fd9248d.png

git Address

  • https://github.com/xk4848123/monitor

  • https://github.com/xk4848123/monitor-server

Use the premise

Need to have... In the machine JDK, not only JRE, Good configuration java path, Rely on in the program ExcuteCmd Seek jdk Basic commands

I'll teach you how to use

clone monitor-server
git clone https://github.com/xk4848123/monitor-server.git
707c0ff9cb818da2439919a449074642.png

idea -> Project from Existing Sources…

ddccf6acac4d6312b46714c716952efd.png

Selected items pom.xml

756259812162e0fdb4578080a069563a.png

modify resources/application.properties

628c927b307f9942b2ed16d4c2389ee0.png
monitor.serve[0].name=serve-1  
monitor.serve[0].address=http://127.0.0.1:8081/monitor( Here you need to communicate with the client monitor.path Corresponding )  
monitor.serve[1].name=serve-2  
monitor.serve[1].address=http://127.0.0.1:8082( ditto )  
....

Multiple monitoring hosts can be configured here , Pay attention to the format

  • address=http://ip:port/xxx(xxx It's you monitor The configuration of , There will be )

  • name=server-1( Every monitor Different , Easy to distinguish when displaying )

run monitor-server
20748b1bc6018fa48536eea292b3fc18.png

It doesn't matter if there are exceptions , Let's just set up the monitoring client

Said in the previous

Just deploy an internal monitoring system , When you have more than one jvm The program , As long as there is a deployment, you can monitor

download Release

https://github.com/xk4848123/monitor

e894ceb329b5230526cc8c98e99a44ec.png

Get into Release list , download jar

5b9d28be747d2f9ead33e0056cea60f9.png

Local mvn install( Wait until the blogger jar It doesn't need so much trouble to transfer it to the central warehouse )

cmd Execute the following command

mvn install:install-file -DgroupId=com.github.xk4848123 -DartifactId=monitor-spring-boot-starter -Dversion=2.3.1 -Dpackaging=jar -Dfile=C:\Users\Administrator\Downloads\monitor-spring-boot-starter.jar
45250920d65819c4992ef219e1030d31.png

In any one of Spring boot Project use , I open my local one here called chat Project

d0d3de6947059fad1c85ebe9acad974a.png

stay resources/application.properties Attribute added

# Determine the access path , You can define   
monitor.path=monitor  
# Decide whether to start the monitoring client   
monitor.enable=true
a3ba4e34c56c650ac455699a2ba643f8.png

pom.xml introduce

31592e618093cfd9c7d9892a0c570428.png

Running events

6b59631db96e3a2c500663497cfacdc1.png

OK!

We are now visiting monitor-server( My current deployment is http://127.0.0.1:8888, You can access according to your own configuration )

5e27ed77905635543dff58fea9fc1f2a.png

source :blog.csdn.net/xk4848123/

article/details/106952309

If this article helps you , welcome give the thumbs-up & Looking at & forward , This is for me to continue to share & It's very important to create quality articles . thank

b17147ccf9e9cc00805a9a7797276ca9.png

98374e9de8d567ab93a41ece5f43ab05.png

Recommended reading   Click on the title to jump to

goodbye VMware! A more lightweight virtual machine

Wonderful ! Skillfully use SSH Break through restrictions and penetrate the intranet

K8s It's hard ? I'll show you through , I don't believe you can't learn !

This monitoring system makes workers tremble ! Turnover intention 、 Fishing is monitored

No more rolls ! The members of the technical team resigned collectively

A simple 、 Open source Markdown Artifact ! Easy to use and beautiful

17 It's a practical one shell Script , Recommended collection !

Delete the library and stop running ! I wrote in tears MySQL Data recovery method

c23110bf4fd83eca04bbf1eba70fcae7.png

PS: Because the official account platform changed the push rules. , If you don't want to miss the content , Remember to click after reading “ Looking at ”, Add one “ Star standard ”, So every time a new article is pushed Will appear in your subscription list for the first time in .

I'm watching 、 Forwarding is the biggest support !24cdae0d45cb8d7fb09001449a7c9e91.gif

原网站

版权声明
本文为[Migrant worker brother]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211343389829.html