Jetty server jmx monitoring
Jetty server jmx monitoring
Added the jmx and jmx-remote modules to the Jetty server.
Modify the configuration file start. ini of the corresponding jetty server and append the following two lines:
-Module = jmx
-Module = jmx-remote
If needed, you can take a look at the corresponding property configuration in the etc/jetty-jmx.xml and jetty-jmx-remote.xml.
For example:
Jetty. jmxrmiport
Jetty. jmxrmihost
Start jetty
Add the jvm parameter-Djava. rmi. server. hostname = 10.128.31.5
View started processes
[Root@10.128.31.5 logs] # jps-vml | grep webapp
13165 .. /jetty-man/start. jar-server-Xms2g-Xmx2g-XX: PermSize = 64 m-XX: MaxPermSize = 128 m-Djava. rmi. server. hostname = 10.128.31.5
In visualVm
Insert a jmx Monitor
Release/ydLU1Nq3/release/J0tSyzr + release/release + release/Co6zS8s6qyc + x37 + release + PGltZyBhbHQ9 "Image Description" src = "http://www.bkjia.com/uploads/allimg/150830/0454021145-3.png" title = "\"/>
Next, we will find that all jvm processes on the server are displayed.