gpt4 book ai didi

java - 如何分析远程运行的 headless (headless) Java 应用程序?

转载 作者:搜寻专家 更新时间:2023-10-31 20:29:40 25 4
gpt4 key购买 nike

我有一个 headless (headless) Java 应用程序,它作为守护进程在远程服务器上运行。

我想从 JVisualVM 显示的进程中提取 Java 级别的分析信息.例如,它应该显示方法调用时间等。

这样做的最佳方法是什么?我的理解是 JVisualVM 在远程连接时不会分析。

理想情况下,分析信息将存储在一个文件中供以后检查,其方式类似于 Java 堆生成(使用 jmap)和稍后分析(使用堆检查器)。

最佳答案

您可以使用 NetBeans profiler远程分析能力。

Remote Profiling

Profile an application that is running on a different system than your NetBeans IDE. The profiler's remote pack can be installed on a remote system, allowing you to profile an application that is started on that system.

事实上,VisualVM is based on it .

Beside various monitoring features, the tool contains a built-in profiler based on the NetBeans profiler. While the profiler UI in VisualVM looks simple (especially when compared to the NetBeans profiler), the profiling capabilities are almost as powerful as in NetBeans.

这是一篇关于 Profiling a Java remote server using Netbeans 的详细博文.

关于java - 如何分析远程运行的 headless (headless) Java 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13176337/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com