introduce
This project is for the convenience of developers to monitor more than one remote host JVM, if your project is Spring Boot then very convenient integration, JAR package can be introduced, not Spring Boot also do not have to be discouraged, you can quickly initialize a Spirng Boot program to introduce JAR package
Results show
The overall architecture
Git address
Github.com/xk4848123/m… Github.com/xk4848123/m…
Use the premise
You need to have JDK on your machine, not just JRE, and Java Path is configured. The program relies on ExcuteCmd to find basic JDK commands
Show you how to use it
Cloning the monitor server. –
Git clone github.com/xk4848123/m…
idea -> Project from Existing Sources…
Select the project POM.xml
Modify the resources/application. The properties
monitor.serve[0].name=serve-1
monitor.serve[0].address=http://127.0.0.1:8081/monitor(this needs to correspond to the client monitor.path)
monitor.serve[1].name=serve-2
monitor.serve[1].address=http:/ / 127.0.0.1:8082 (ditto).Copy the code
Address =http://ip:port/xxx(xxx name=server-1 address=http://ip:port/xxx(xxx name=server-1
run monitor-server
Said in the previous
It is good to have one monitoring client within one operating system, and when you have multiple JVMS, you can monitor with only one deployment
Download the Release
Github.com/xk4848123/m…
Go to the Release list and download the JAR
Local MVN install(wait until the blogger uploads the JAR to the central repository to save the trouble)
CMD runs 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
To use in any Spring Boot project, I’m going to open my local project called Chat
In the resources/application. The properties increase attributes
Monitor. path=monitorCopy the code