强迫或者生成JVM核心转储 [英] force or generate jvm core dump

查看:294
本文介绍了强迫或者生成JVM核心转储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  我可以强制JVM崩溃日志文件的生成<? / A>

Possible Duplicate:
Can I force generation of a JVM crash log file?

我怎么可以强制或Java应用程序服务器上或一般产生一个JVM核心转储?

How can I force or generate a JVM core dump on an Java application server or in general?

推荐答案

问题(摘要)::要诊断挂或在WebSphere Application Server Community Edition上运行客户应用中表现不佳有关的问题,用户将需要生成各种转储,并将其发送给IBM支持诊断。

Problem(Abstract): To diagnose the problems related to hang or poor performance of customer applications running on WebSphere Application Server Community Edition, users would be required to generate the various dumps and send them to IBM Support for diagnosis.

此技术说明解释了如何在WebSphere应用服务器社区版正在运行的操作系统服务产生所需的转储。此技术适用于IBM的Java SDK 1.5.0和IBM Java SDK的1.6.0

This technote explains how to generate required dumps when WebSphere Application Server Community Edition is running as an operating system service. This technote applies to IBM Java SDK 1.5.0 and IBM Java SDK 1.6.0

原因:当客户应用体验挂起或与IBM的Java SDK 1.5.0或IBM Java SDK的1.6.0,并在服务器上的WebSphere Application Server Community Edition的性能差正在作为一个操作系统服务,服务器进程的相应的命令/ shell窗口是不能提供给用户。其结果是,用户信号不能从键盘发送到触发转储

Cause: When customer applications experience hang or poor performance with WebSphere Application Server Community Edition on IBM Java SDK 1.5.0 or IBM Java SDK 1.6.0, and the server is running as an operating system service, the corresponding command/shell window of the server process is not available to users. As a result, user signals can not be sent from the keyboard to trigger dumps.

解决这个问题:当JVM进程命令窗口可用,产生垃圾场是直截了当如下:

Resolving the problem: When the JVM process command window is available, generating dumps is straight forward as follows:

视窗:
如果JVM设置配置为触发在用户信号的堆放,preSS CRTL +歇在命令窗口中生成转储。

Windows: If the JVM setting is configured to trigger the dumps at user signal, press CRTL+Break on the command window to generate the dumps.

Linux的:的如果JVM设置配置以产生用户信号,preSS CTRL + \\ 外壳窗口上的转储。

Linux: If the JVM setting is configured to generate the dumps at user signal, press CTRL+\ on the shell window.

AIX:的如果JVM设置配置以产生用户信号,preSS CTRL + \\ 外壳窗口上的转储。

AIX: If the JVM setting is configured to generate the dumps at user signal, press CTRL+\ on the shell window.

请注意:为了生成Java核心转储,系统核心转储,堆转储和用户信号瞬间倾倒,转储代理商必须通过JVM选项配置如下:

Note: In order to generate java core dump, system core dump, heap dump and a snap dump at user signal, the dump agents must be configured through JVM options as follows:

-Xdump:java+heap+system+snap:events=user

有关如何配置转储代理,请使用更多的信息 -Xdump

For more information on how to configure dump agents, visit using -Xdump.

但是,如果WebSphere Application Server Community Edition的正在运行的操作系统服务,命令窗口可能无法使用。这种情况下,也将出现在JVM进程开始javaw.exe的Windows上。

However, if WebSphere Application Server Community Edition is running as an operating system service, the command window may not be available. This case will also arise when JVM process is started with javaw.exe on windows.

在preceding的情况下,用户需要找到JVM进程的相应过程-id和使用供给操作系统供应商或IBM提供的工具遵循下述步骤生成转储。

In the preceding circumstances, user is required to find the corresponding process-id of the JVM process and use operating system vendor supplied or IBM supplied tools to generate the dumps by following the below steps.

视窗:的WinDbg中可以从微软开发工具的网站下载到系统生成核心转储。在WinDbg的控制台使用以下命令生成系统核心转储:

Windows: WinDbg can be downloaded from Microsoft Dev tools site to generate system core dumps. Use the following command at the WinDbg console to generate the system core dump:

dump /f <dumpfile> 

如果转储文件包含的目录路径和系统核心转储文件的名称。
确保 /˚F选项是用来代替 / MA 。在 /˚F生成完全转储在那里为 / MA 生成小型转储。只有全转储与IBM Java SDK的1.5.0 / 1.6.0提供的jextract工具支持。

Where dumpfile includes the directory path and the name of the system core dump file. Make sure that /f option is used instead of /ma. The /f generates full dump where as /ma generates mini dump. Only full dumps are supported with the jextract tool supplied with IBM Java SDK 1.5.0/1.6.0.

SendSignal为Windows实用程序。为此,JVM必须设置生成用户信号的转储。生成Java核心转储,堆转储,系统核心转储,并在用户信号瞬间倾倒,下面的选项必须在启动时提供给JVM:

SendSignal utility for Windows. For this, the JVM must be setup to generate the dumps on user signals. To generate the java core dump, heap dump, system core dump and a snap dump at user signal, the following option must be supplied to JVM at startup:

-Xdump:java+heap+system+snap:events=user 

注:SendSignal实用程序可用于生成所有类型的转储作为在哪里产生的WinDbg系统唯一的核心转储

Note: The SendSignal utility can be used to generate all types of dumps where as WinDbg generate only system core dumps.

Linux和AIX :对于Linux和AIX的信号是 SIGQUIT 。使用命令向用户发送信号来触发不同的转储:

Linux and AIX: The signal for Linux and AIX is SIGQUIT. Use the command to send the user signal to trigger the various dumps:

kill -3 <PID>  

对于这一点,JVM必须设置生成用户信号的转储。生成Java核心转储,堆转储,系统核心转储,并在用户信号瞬间水池,下面的选项必须在启动时提供给JVM。

For this, JVM must be setup to generate the dumps on user signal. To generate the java core dump, heap dump, system core dump and a snap sump at user signal, the following option must be supplied to JVM at startup.

-Xdump:java+heap+system+snap:events=user 

请注意:系统核心转储文件必须处理使用jextract工具和输出必须发送给IBM支持。从经历的问题相同的JVM的jextract应用来处理系统核心转储:

Note: System core dump files must processed using the jextract tool and the output must be send to IBM support. The jextract from the same JVM that experienced the problem should be used to process the system core dump:

<JAVA_HOME>/jre/bin/jextract <dumpfile>   

在哪里转储文件是系统的核心转储文件名。

Where dumpfile is the filename of the system core dump.

这将产生一个zip文件的.zip。该压缩文件需要被发送到IBM的支持。

This will produce a zip file .zip. The zip file needs to be sent to IBM support.

这篇关于强迫或者生成JVM核心转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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