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