简体   繁体   中英

Profile Tomcat instance running on Redhat

I found the Tomcat keep occupying CPU (constantly > 40% from top) on a redhat system. I want to check which methods eats the CPU. Does anyone know how to profile it?

It's hard to connect VisualVM to the remote server because of the security reason. Is there any command line tools for me to request the tomcat JVM instance to dump something and get it back to my local for profiling analysis?

thanks, Green

With JProfiler , you would extract the JProfiler .tar.gz file on the remote side, then run the command line exedutables bin/jpenable to load the profiling agent, then bin/jpcontroller to record data and save a snapshot.

Saved snapshots can be transferred to your desktop machine and opened with the JProfiler GUI.

Disclaimer: My company develops JProfiler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM