Deploy JProfiler to monitor tomcat and jprofilertomcat
- Download JProfiler package
Wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_2.rpm
- Install JProfiler
Rpm-ivh jprofiler_linux_9_2.rpm
- Install JProfiler Client
Http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_windows-x64_9_2.exe
- After the client is installed, open the client. Start Center → New Session → New Server Integration. The "integration Wizard" window is displayed. Select
- After creation, a STARTUP script named "startup_jprofiler.sh" will be generated in the producer, which will be the same as the start. sh path. Copy the "startup_jprofiler.sh" startup script to the monitored server, under the tomcat/bin/directory.
This script needs to modify the last line, changed from "exec" $ PRGDIR "/" $ EXECUTABLE "run" $ @ "to" exec "$ PRGDIR"/"$ EXECUTABLE" start "$ @""
Finally, stop the java Process of the monitored server and start tomcat using the "startup_jprofiler.sh" script. Then, open the configuration you just created and access it.