简体   繁体   English

配置文件在Redhat上运行的Tomcat实例

[英]Profile Tomcat instance running on Redhat

I found the Tomcat keep occupying CPU (constantly > 40% from top) on a redhat system. 我发现Tomcat一直在Redhat系统上占用CPU(从顶部一直> 40%)。 I want to check which methods eats the CPU. 我想检查哪些方法占用了CPU。 Does anyone know how to profile it? 有人知道如何进行简介吗?

It's hard to connect VisualVM to the remote server because of the security reason. 由于安全原因,很难将VisualVM连接到远程服务器。 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? 我是否可以使用任何命令行工具来请求tomcat JVM实例转储某些内容并将其返回到本地进行性能分析?

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. 使用JProfiler ,您将提取远程端的JProfiler .tar.gz文件,然后运行命令行exedutables bin/jpenable来加载性能分析代理,然后运行bin/jpcontroller来记录数据并保存快照。

Saved snapshots can be transferred to your desktop machine and opened with the JProfiler GUI. 可以将保存的快照传输到台式机并使用JProfiler GUI打开。

Disclaimer: My company develops JProfiler 免责声明:我的公司开发JProfiler

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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