简体   繁体   English

如何在Eclipse下获取Java应用程序的JVM Monitor CPU统计信息?

[英]How do I get JVM Monitor CPU statistics for Java application under Eclipse?

I've imported JVM Monitor into Eclipse (Neon) and I can't seem to get CPU monitoring to work. 我已将JVM Monitor导入Eclipse(Neon),但似乎无法使CPU监控正常工作。 What I'm doing: 我在做什么:

  1. Create Run/Debug launcher for my Java Application, w/ "stop in main" 使用“在主目录中停止”为我的Java应用程序创建运行/调试启动器
  2. Open JVM Monitor perspective and window; 打开JVM Monitor透视图和窗口; JVM Explorer window opens JVM资源管理器窗口打开
  3. Debug the app., stopping at beginning of main 调试应用。在主程序开始处停止
  4. In JVM Explorer window, [Start Monitoring]. 在“ JVM资源管理器”窗口中,[开始监视]。 Select CPU 选择CPU
  5. In debugger window, set breakpoint near exit, start the application 在调试器窗口中,在出口附近设置断点,启动应用程序
  6. Application hits breakpoint, in JVM Explorer [Stop Monitoring] 在JVM资源管理器中,应用程序达到断点[停止监视]

At this point, I'd expect the CPU window (various tabs) to be full of execution times, etc., but it remains completely blank. 在这一点上,我希望CPU窗口(各种选项卡)充满执行时间等,但是它仍然完全空白。

The JVM Monitor documentation doesn't explain (to me) how to actually get CPU reports for a simple non-service Java application. JVM Monitor文档没有向我解释如何为一个简单的非服务Java应用程序实际获取CPU报告。 Can you please help? 你能帮忙吗?

您可以使用此链接http://jvmmonitor.org/download/index.html安装JVM Monitor

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

相关问题 Eclipse:Java Monitor不会显示CPU统计信息 - Eclipse: Java Monitor won't show cpu statistics 如何获取JVM中所有线程的CPU百分比? - How Do I Get The CPU Percentage For All Threads In The JVM? 通过 java 监控 JVM CPU/RAM 使用情况 - Monitor JVM CPU/RAM usage by java 使用Eclipse和JVM监视器执行Java程序期间,如何收集一些硬件配置文件数据? - How can I collect some hardware profile data during the execution of the Java program with eclipse and JVM monitor? 如何从易于控制和监视的JVM产生JVM? - How do I spawn a JVM from a JVM that is easy to control and monitor? 如何在Eclipse中将Java应用程序附加到jvm profiler? - How to attach a Java application to jvm profiler in eclipse? 如何使用Java监视kubuntu中的系统统计信息? - How can i monitor system statistics in kubuntu using Java? 如何在Linux多处理器环境中监视Java应用程序每个线程的CPU使用率? - How can I Monitor cpu usage per thread of a java application in a linux multiprocessor environment? 如何在 Java 中监控计算机的 CPU、内存和磁盘使用情况? - How do I monitor the computer's CPU, memory, and disk usage in Java? Java / Selenium应用程序-如何获取被测应用程序的会话ID? - Java / Selenium application - how do I get the session id of the application under test?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM