jstack是一个可以返回在应用程序上运行的各种各样线程的一个完整转储的实用程序,您可以使用它查明问题。
Jstack is a utility that returns a complete dump of the various threads running in an app, which you can then use to pinpoint the problem.
这是开销最大、但也是最完整的转储方式。
This is the most expensive dump, but also the most complete.
fullcore —启用/禁用完整的核心转储
这些可以经过压缩,发送到另一台主机,然后保存到转储文件的相同目录中,这样就不需要重新加载完整的转储文件。
These files can be zipped, sent to another machine, and placed in the same directory as the dump, making a complete reload of the dump unnecessary.
这些转储文件包含了运行中应用程序的完整内存镜像—所有信息和数据都采用hprof格式表示,包括所有原生内存和线程信息。
These dumps contain the entire memory image of the running application - all the information and data in the HPROF format, as well as all of the native-memory and thread information.
生成系统转储时,还有一点很重要:确保设置了必要的操作系统级设置来支持写入完整的转储。
When system dumps are being generated, it is also important to ensure that the necessary operating system level Settings are in place to enable full dumps to be written.
生成系统转储时,还有一点很重要:确保设置了必要的操作系统级设置来支持写入完整的转储。
When system dumps are being generated, it is also important to ensure that the necessary operating system level Settings are in place to enable full dumps to be written.
应用推荐