简体   繁体   English

jmap / jhat vs jVisualVM

[英]jmap/jhat vs jVisualVM

I understand that jmap is used to create heap dumps and the same can be analysed by Jhat. 我知道jmap用于创建堆转储,Jhat可以分析它。

jVisualVM also can be used to analyze the heap dumps (and can do much more tasks such as profiling etc). jVisualVM也可用于分析堆转储(并且可以执行更多任务,例如分析等)。

But what is the difference between analyzing heap dumps using jHat and visualVM (other than one if using Web and second is desktop). 但是使用jHat和visualVM分析堆转储有什么区别(除了使用Web而第二个是桌面)。 What Sun is providing different tools and which one is better? Sun提供不同的工具,哪个更好?

PS: I have limited understanding of these tools as I have worked on limited profiling/analysis tools such as JProbe, Java Heap Dump Analyzer, etc. Please correct if my understanding is wrong somewhere. PS:我对这些工具的理解有限,因为我已经开发过有限的分析/分析工具,如JProbe,Java Heap Dump Analyzer等。如果我的理解在某处出错,请更正。

jmap and jhat are the core tools with command line interface. jmap和jhat是命令行界面的核心工具。 VisualVM is a visual workbench integrating command line tools to manage things more easily without having to work through the command line options. VisualVM是一个可视化工作台,集成了命令行工具,可以更轻松地管理事物,而无需通过命令行选项。 If you know and free comfortable working with command line tools then go with them. 如果您知道并且可以自由地使用命令行工具,那么请使用它们。 VisualVM doesnt do anything extra but provides a good visual interface for a better user experience. VisualVM不会做任何额外的事情,但提供了良好的可视化界面,以提供更好的用户体验。 I believe it internally uses jmap/jhat. 我相信它在内部使用jmap / jhat。

The difference is analogous to the difference between a graphical debugger and a commandline debugger. 差异类似于图形调试器和命令行调试器之间的差异。 It is often easier to work in a visual mode. 在视觉模式下工作通常更容易。

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

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