Jconsole monitoring the JVM usage of Linux systems

Source: Internet
Author: User
Tags jconsole

1. Download and install JDK and Tomcat on Linux system


2. Configure Tomcat parameters

[Email protected] ~]# vim/usr/local/tomcat-7.0.64front/bin/catalina.sh

java_opts= "$JAVA _opts

-dcom.sun.management.jmxremote--Remote login

-dcom.sun.management.jmxremote.port=9004-Open port

-dcom.sun.management.jmxremote.authenticate=true--User password Authentication

-dcom.sun.management.jmxremote.ssl=false--No SSL enabled

-dcom.sun.management.jmxremote.access.file=/usr/local/jdk1.7.0_80/jre/lib/management/

Jmxremote.access--access rights

-dcom.sun.management.jmxremote.password.file=/usr/local/jdk1.7.0_80/jre/lib/management/

Jmxremote.password--Access password

"

[Email protected] ~]# cd/usr/local/jdk1.7.0_80/jre/lib/management/

[Email protected] management]# cp-a jmxremote.password.template Jmxremote.password

[Email protected] management]# vim Jmxremote.password

Tingyun System-User name and password

[Email protected] management]# vim jmxremote.access

#monitorRole ReadOnly--Notes

#controlRole readwrite \

# Create javax.management.monitor.*,javax.management.timer.* \

# Unregister

Tingyun ReadWrite--User authorization (ReadOnly read-only ReadWrite read-write)

[Email protected] management]# chmod jmxremote.password jmxremote.access

[Email protected] management]#/usr/local/tomcat-7.0.64front/bin/shutdown.sh

[Email protected] management]#/usr/local/tomcat-7.0.64front/bin/startup.sh

[Email protected] management]# Netstat-antulp | grep 9004

TCP 0 0::: 9004:::* LISTEN 3093/java

[Email protected] management]#


3.jconsole Connection Server

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/FB/wKioL1YwSQfD_voxAAEHmYz-ZIU133.jpg "style=" float: none; "title=" 1.png "alt=" Wkiol1ywsqfd_voxaaehmyz-ziu133.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/FD/wKiom1YwSNPxfeb4AAHkiwvyGyQ059.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1ywsnpxfeb4aahkiwvygyq059.jpg "/>


This article is from the "Days Together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1707194

Jconsole monitoring the JVM usage of Linux systems

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.