`
netcome
  • 浏览: 480019 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

AIX系统dump文件分析工具

阅读更多

Using the dump extractor, jextract

To use the full facilities of the dump viewer, you must first run the jextract tool on the system dump. The jextract tool obtains platform-specific information such as word size, endianness, data structure layouts, and symbolic information. It puts this information into an XML file. You must run the jextract tool on the same platform and the same JVM level (ideally the same machine) that was being used when the dump was produced. The combination of the dump file and the XML file produced by jextract allows the dump viewer (jdmpview) to analyze and display Java™ information.

The extent to which jextract can analyze the information in a dump is affected by the state of the JVM when it was taken. For example, the dump could have been taken while the JVM was in an inconsistent state. The exclusive and prepwalk dump options ensure that the JVM (and the Java heap) is in a safe state before taking a system dump:
-Xdump:system:defaults:request=exclusive+prepwalk
Setting this option adds a significant overhead to taking a system dump; this overhead could cause problems in rare situations. This option is not enabled by default.

jextract is in the directory sdk/jre/bin.

To invoke jextract, at a command prompt type:

jextract <dumpfile> [<outputfile]
On z/OS®, you can copy the dump to an HFS file and supply that as input to jextract, or you can supply a fully qualified MVS data set name. For example:
> jextract USER1.JVM.TDUMP.SSHD6.D070430.T092211
Loading dump file...
Read memory image from USER1.JVM.TDUMP.SSHD6.D070430.T092211
VM set to 10BA5028
Dumping JExtract file to USER1.JVM.TDUMP.SSHD6.D070430.T092211.xml
<!-- extracting gpf state -->
...
Finished writing JExtract file in 5308ms
Creating zip file: USER1.JVM.TDUMP.SSHD6.D070430.T092211.zip
Adding "USER1.JVM.TDUMP.SSHD6.D070430.T092211" to zip
Adding "USER1.JVM.TDUMP.SSHD6.D070430.T092211.xml" to zip
Adding "/u/build/sdk/jre/lib/J9TraceFormat.dat" to zip
jextract complete.
This produces a compressed (.zip) file in the current HFS directory.

The jextract tool accepts these parameters:

-nozip
Do not compress the output data.
-help
Provides help information.

By default, output is written to a file called <dumpfile>.zip in the current directory. This file is a compressed file that contains:

  • The dump
  • XML produced from the dump, containing details of useful internal JVM information
  • Other files that can help in diagnosing the dump (such as trace entry definition files)

Typically, you would send the compressed file to IBM® for problem diagnosis. Submitting data with a problem report tells you how to do that.

To analyze the dump locally, extract the compressed file using unzip -d dir <file> or jar xvf <file>. You are also advised to run jdmpview from that new folder.

If you run jextract on a JVM level that is different from the one for which the dump was produced, you will see the following messages:

J9RAS.buildID is incorrect (found e8801ed67d21c6be, expecting eb4173107d21c673). 		
This version of jextract is incompatible with this dump. 		
Failure detected during jextract, see previous message(s).  	

You can still use the dump viewer on the dump, but it will be limited in the detail that it can show.

The contents of the compressed file produced and the contents of the XML are subject to change, so you are advised not to design tools based on them.

 

 

Using the dump viewer, jdmpview

The dump viewer is a cross-platform tool that you use to examine the contents of system dumps produced from the JVM. To be able to analyze platform-specific dumps, the dump viewer can use metadata created by the jextract tool. The dump viewer allows you to view both Java™ and operating system information from the time the dump was produced.

jdmpview is in the directory sdk/bin.

To start jdmpview, at a command prompt type:

jdmpview dumpfile

The jdmpview tool accepts these parameters:

-d<dumpfile>
Specify a dump file.
-w<workingdir>
Specify a writable directory.
-o<outputfile>
Specify an output file.
-i<inputfile>
Specify an input command file.

Typical usage is jdmpview <dumpfile>. The jdmpview tool opens and verifies the dump file and the associated xml file, dumpfile.xml.

After jdmpview processes the arguments with which it was launched, it displays the message Ready.... When you see this message, you can start calling commands on jdmpview. You can run an unlimited number of jdmpview sessions at the same time.

You can significantly improve the performance of jdmpview against larger dumps by ensuring that your system has enough memory available to avoid paging. On larger dumps (that is, ones with large numbers of objects on the heap), you might need to start jdmpview using the -Xmx option to increase the maximum heap available tojdmpview:
jdmpview -J-Xmx<n>
To pass command-line arguments to the JVM, you must prefix them with -J. For more information about using -Xmx, see Command-line options.
The xml file produced by jextract on z/OS® is ASCII, so that it is easily portable to other platforms for use in jdmpview and other tools. On z/OS, jdmpview expects the file to be ASCII. If you convert the file to EBCDIC and supply the converted file as input to jdmpview, you see the error messages:
Parsing of xml started for file CHAMBER.JVM.TDUMP.SSHD9.D070824.T094404.xml... be patient 
*** Error Message: Fatal error encountered processing incoming xml. 
It might be useful to convert the xml file to EBCDIC for viewing on z/OS, but make sure you keep the ASCII version for use in jdmpview.

Dump Analyzer overview

The IBM® Monitoring and Diagnostic Tools for Java™ - Dump Analyzer (referred to hereafter as the Dump Analyzer) is intended to perform automated analysis of dump files produced by the IBM Java VM. Starting with the name of the dump to be analyzed the analysis will attempt to localise the problem and if successful will produce a diagnosis of the error together with sufficient information to fix it or suggestions on how to continue the analysis using other tools (e.g. MDD4J to diagnose out of memory situations). If localization fails then the tool will default to producing summary information from the dump intended to aid further diagnosis.

Background

The Java language has come to be predominant in software development, and thus the reliability of the Java Virtual Machine (VM) has become a very important issue. The VM is typically a reliable piece of software, but of course failures do occur during execution for a variety of reasons. A small number of these problems are due to errors in the VM itself; however, in the majority of cases, they are due to errors or misconfigurations in the software stack above the VM (in WebSphere™ Application Server, for instance) or in the application itself.

The software stack for a typical projects has increased in complexity as information technology has matured, which has led to increasing difficulties for developers trying to determination the causes of problems. In such a complex environment, you may be faced with an overwhelming excess of information with which to diagnose the fault. In a production environment there may well be many gigabytes of heap, hundreds of threads, thousands of classloaders, tens of thousands of classes, and a huge number of objects.

The Dump Analyzer is an extensible framework that seeks to solve this problem for the IBM Java SDK's. It uses analyzers to interrogate a formatted system dump (each analyzer asking the dump a specific question) and links them together with a script to produce a concise report of the analysis. Typical problems analyzed might be the following.

  • Out of memory
  • Deadlock detected
  • VM terminated due to signal (internal or middleware/java application error)
  • Further investigation is required

The aim is to diagnose the correct category of problem and either provide a complete diagnosis of the problem or give some information designed to aid diagnosis together with a recommended next course of action.

 

分享到:
评论

相关推荐

    AIX dump分析工具

    "AIX dump分析工具"是专门用于解析和理解这些dump文件的工具,帮助管理员识别并解决Java应用服务器的问题。本文将详细介绍AIX dump分析工具的工作原理、用途以及如何使用它来分析ha398.jar、ga397.zip和jca37.zip等...

    AIX 下的 core dump 分析入门

    AIX 下的 core dump 分析入门.mht,html文档,请大家参考以下

    AIX---文件系统

    AIX支持使用`dump`和`restore`命令进行文件系统级别的备份和恢复。同时,IBM还提供了Tivoli Storage Manager(TSM)这样的高级备份解决方案,以实现更复杂的数据保护策略。 ### 6. 文件系统安全性 AIX的文件系统...

    aix磁盘和文件系统

    ### AIX磁盘和文件系统知识点详解 #### 一、磁盘管理基础 在AIX(Advanced Interactive eXecutive)操作系统中,磁盘管理是系统管理员必须掌握的一项重要技能。磁盘作为存储数据的基本单元,在任何操作系统中都...

    AIX系统精典入门教程

    AIX提供备份工具如`mksysb`创建系统备份,`Restore`或`NIM`(Network Installation Manager)进行恢复。理解备份策略和恢复流程对保护系统至关重要。 通过这个AIX系统精典入门教程,你将逐步熟悉AIX的操作环境,...

    AIX系统操作手册AIX系统操作手册

    2. **备份与恢复**:`nmon`工具进行系统监控,配合`dump`和`restore`进行系统备份和恢复。 **八、AIX高级特性** 1. **PowerVM虚拟化**:AIX支持PowerVM虚拟化技术,允许多个AIX实例在同一硬件上运行。 2. **工作...

    AIX系统的备份和恢复

    在IT领域,AIX(Advanced Interactive eXecutive)是一种由IBM开发的UNIX操作系统,尤其在大型企业和关键业务环境中广泛使用。AIX系统的备份和恢复是运维工作中至关重要的环节,确保了数据的安全性和系统的可恢复性...

    AIX\IBM.AIX.系统管理员教程

    AIX提供了多种备份工具,如`dump`和`savecore`,用于系统数据和核心转储的备份。学习如何规划备份策略,使用`restore`命令进行数据恢复,以及如何在灾难性故障后恢复系统运行。 八、安全管理 AIX的安全特性包括访问...

    AIX系统巡检报告单

    【AIX系统巡检报告单】是对AIX操作系统进行定期维护和健康检查的重要文档,确保系统的稳定运行和高效性能。AIX,全称Advanced Interactive eXecutive,是由IBM开发的一种Unix操作系统,常用于IBM的小型机(如Power ...

    aix系统性能调优

    7. **系统配置**:调整系统内核参数(如`/etc/sysconfig/crashdump`和`/etc/security/limits`文件),以适应特定的工作负载需求。 8. **文件系统调优**:JFS2文件系统提供了许多可调参数,如块大小、条带化和缓存...

    AIX操作系统(中文)

    AIX支持多种备份方案,如`nmon`监控性能并创建备份,`tar`打包文件,`dump`和`restore`进行完整系统备份与恢复。 ### 10. 性能优化与调优 通过对CPU、内存、I/O和网络的监控,可以进行性能分析和调优。`perfmon`和...

    aix系统管理培训资料

    本章深入探讨了AIX系统中的各种管理工具,如Performance Management Facility (PMF)用于性能监控,Service Management Facility (SMF)用于故障管理和日志分析,Hardware Management Console (HMC)用于硬件管理等。...

    AIX系统入门与提高

    8. **性能监控**:了解如何使用topas、iostat、vmstat等工具分析系统性能,优化资源分配。 9. **安全策略**:熟悉AIX的安全特性,如LPP(Logical Partition Package)、SMIT安全选项、auditd日志记录,以及如何实现...

    AU14《AIX系统管理》培训教材

    《AIX系统管理》是针对IBM AIX操作系统的一份详细培训教材,主要涵盖了AIX的基础知识、安装配置、系统管理、性能监控、故障排查以及安全策略等多个方面。AIX(Advanced Interactive eXecutive)是IBM为其Power ...

    AIX操作系统安装配置规范

    - 设置dump大小:配置dump设备用于故障分析,合理设置大小可以平衡存储使用与故障排查需求。 - 修改磁盘定额:对用户或组设置磁盘使用限制,防止资源滥用。 - rootvg镜像:创建rootvg的镜像以提高系统可用性,...

    AIX系统管理(初级)培训教程

    1. 系统备份:理解全备、增量、差异备份,使用tivoli、dump、tar等工具进行备份。 2. 数据恢复:了解如何从备份中恢复文件系统和数据。 3. 系统迁移:学习如何将AIX系统从一台硬件迁移到另一台硬件。 九、安全管理 ...

    AIX高级系统管理文档

    - **分析工具**:使用专门的工具对DUMP文件进行解析,帮助诊断系统故障。 #### 六、系统性能 系统性能是指系统在处理工作负载时的速度、响应时间以及资源利用率等。 - **性能监控**:使用系统自带或第三方工具...

Global site tag (gtag.js) - Google Analytics