Jetty server jmx monitoring

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.