Websphere中javacore,线程转储和堆转储之间的区别 [英] Difference between javacore, thread dump and heap dump in Websphere

查看:177
本文介绍了Websphere中javacore,线程转储和堆转储之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我javacore,线程转储和堆转储之间的确切区别吗?在哪种情况下使用这些工具?

Can someone tell me the exact difference between javacore, thread dump and heap dump? Under which situation each of these are used??

推荐答案

线程转储是所有活动线程的堆栈的转储.因此对于分析某个应用程序在某个时间点的运行情况很有用,并且如果在一定的时间间隔内完成某个应用程序将有助于诊断某些执行"问题(例如线程死锁).

A thread dump is a dump of the stacks of all live threads. Thus useful for analysing what an app is up to at some point in time, and if done at intervals handy in diagnosing some kinds of 'execution' problems (e.g. thread deadlock).

堆转储是Java堆内存状态的转储.因此,对于分析应用程序在某个时间点对内存的使用很有用,因此在诊断某些内存问题时非常方便,并且在诊断内存泄漏时也方便使用间隔时间.

A heap dump is a dump of the state of the Java heap memory. Thus useful for analysing what use of memory an app is making at some point in time so handy in diagnosing some memory issues, and if done at intervals handy in diagnosing memory leaks.

这就是它们的原始"术语,可以通过多种方式提供.通常用于描述从JVM和应用程序服务器转储的文件,并且以这种形式,它们是低级工具.如果由于某种原因您什么都没得到,就很有用,但是使用体面的分析工具来获得相似但更容易剖析的信息,您会发现生活变得更轻松.

This is what they are in 'raw' terms, and could be provided in many ways. In general used to describe dumped files from JVMs and app servers, and in this form they are a low level tool. Useful if for some reason you can't get anything else, but you will find life easier using decent profiling tool to get similar but easier to dissect info.

相对于WebSphere,javacore文件是线程转储,尽管还有很多其他信息,例如锁和装入的类以及一些有限的内存使用信息,而PHD文件是堆转储.

With respect to WebSphere a javacore file is a thread dump, albeit with a lot of other info such as locks and loaded classes and some limited memory usage info, and a PHD file is a heap dump.

如果您想手动读取javacore文件,可以使用IBM工具(BM Thread and Monitor Dump Analyzer)来简化.如果要读取堆转储文件,则需要使用许多IBM工具之一:MDD4J或堆分析器.

If you want to read a javacore file you can do so by hand, but there is an IBM tool (BM Thread and Monitor Dump Analyzer) which makes it simpler. If you want to read a heap dump file you need one of many IBM tools: MDD4J or Heap Analyzer.

这篇关于Websphere中javacore,线程转储和堆转储之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆