简体   繁体   English

需要Java Profiler工具

[英]Need Java profiler tool

I have to do profiling of the Java application. 我必须对Java应用程序进行概要分析。 I would appreciate if anyone let me know the free Java pr-filer. 如果有人让我知道免费的Java pr-filer,我将不胜感激。 I heard about YourKit but don't know much about performance of it. 我听说过YourKit,但对它的性能了解不多。 Alos like the information on Java code optimization. Alos喜欢有关Java代码优化的信息。 Thanks in advance. 提前致谢。

Thanks 谢谢

I recommend JVisualVM . 我推荐JVisualVM It's shipped as part of the JDK. 它作为JDK的一部分发布。 You can find it in the bin folder, or you can download it here . 您可以在bin文件夹中找到它,也可以在此处下载。

You can use it to monitor in which methods your app spends it time, but you can also look at threads and memory usage. 您可以使用它来监视应用程序花费时间的方法,但您也可以查看线程和内存使用情况。 It can also create heap dumps, which you can then analyze with VisualVM itself, or with the excellent (and also free) Memory Analyzer (MAT) . 它还可以创建堆转储,然后您可以使用VisualVM本身或使用优秀的(也是免费的) Memory Analyzer(MAT)进行分析

I recommend Eclipse TPTP (Test & Performance Tools Platform). 我推荐Eclipse TPTP (测试和性能工具平台)。 It offers a feature-rich profiler and is free. 它提供功能丰富的分析器 ,是免费的。 It's part of the Helios release, you can download it using the Helios update site. 它是Helios版本的一部分,您可以使用Helios更新站点下载它。

The Tracing and Profiling Tools Project is a project in the Eclipse TPTP Top-Level Project, it addresses the tracing and profiling phases of the application lifecycle. 跟踪和性能分析工具项目是Eclipse TPTP顶级项目中的一个项目,它解决了应用程序生命周期的跟踪和性能分析阶段。 The Tracing and Profiling Tools Project provides frameworks for building tracing and profiling tools by extending the TPTP Platform. 跟踪和分析工具项目通过扩展TPTP平台提供了构建跟踪和分析工具的框架。 The framework contains views, dialogs and action items that support the capability of collecting and analyzing application performance information. 该框架包含视图,对话框和操作项,支持收集和分析应用程序性能信息的功能。 The project includes exemplary profiling tools for both single-system and distributed Java applications through monitoring agents that collects trace and profile data. 该项目包括通过监控代理收集跟踪和配置文件数据的单系统和分布式Java应用程序的示例性分析工具。 A generic tool kit for customizable probe insertion is also available. 还提供用于可定制探针插入的通用工具套件。

You can use jvisualvm which is bundled starting from JDK 6 update 7 . 您可以使用从JDK 6 update 7开始捆绑的jvisualvm。 If you don't want to install another JDK on your machine, you can download visualvm . 如果您不想在计算机上安装其他JDK,可以下载visualvm But by all means, if you have the budget, I'd recommend getting YourKit as it provides more sophisticated features and better metrics that visualvm don't have. 但无论如何,如果您有预算,我建议您使用YourKit,因为它提供了更复杂的功能和visualvm没有的更好的指标。

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

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