Jconsole, Java VisualVM, Jprofiler

Source: Internet
Author: User
Tags visualvm jprofiler jconsole

Tomcat boot file

vim/usr/local/tc7_a/bin/catalina.sh

While [-H ' $PRG "]; Do
Ls= ' Ls-ld "$PRG" '
link= ' expr ' $ls ': ' .*-> \ (. *\) $ '
If expr "$link": '/.* ' >/dev/null; Then
Prg= "$link"
Else
prg= ' dirname ' $PRG '/' $link '
Fi
Done

Add below:

catalina_opts= "$JAVA _opts-djava.rmi.server.hostname=192.168.1.101-dcom.sun.management.jmxremote.port=9526- Dcom.sun.management.jmxremote.authenticate=false-dcom.sun.management.jmxremote.ssl=false -agentpath:/opt/ jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849 "

the blue section is jprofiler Configuration, the libjprofilerti.so path is opt/jprofiler7/bin/linux-x86/libjprofilerti.so .

The connection port number is 8849.

SH startup.sh && tail-f. /logs/catalina.out

1.jconsole use

2.java VisualVM

2.jprofiler use

Linux and Windows installation Jprofiler.

Linux under Unzip.

[Email protected] opt]# TAR-ZXVF jprofiler_linux_7_2_3.tar.gz

Folder is Jprofiler7 after decompression

Under Window, follow the installation procedure and use it after entering the registration code.

Remote Connection JVM

Open remote Connection

Jconsole, Java VisualVM, Jprofiler

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.