Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1157550
  • 博文数量: 56
  • 博客积分: 1682
  • 博客等级: 上尉
  • 技术积分: 719
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-21 17:29
文章分类
文章存档

2013年(1)

2012年(11)

2011年(44)

分类: Java

2011-06-15 21:49:40


记得dump的core文件备份tar -cvf core.tar core ,在JVM crash的情况出现后分析完成后,可以通过HPUX
下的xglance/glance查询java应用的资源情况记得收集gclog等等;
1.Checklist
*Rename the core file to core.[timestamp]
(get the [timestamp] from 'll core' output)
1.命令:
在core文件目录下:
ll core      [获得core文生成的日期及时间
mv core  core.生成时间

*Check if the core is from java with
   $ file core.[timestamp]
*Check if the core is complete with
   $ what core.[timestamp]
The output must have "dld.sl" (PA-RISC) or
"uld.so" (Itanium) in the last line, otherwise the core is incomplete.
If the core file is not complete, *DO NOT*
send the core. Instead perform the checklist in the
'Incomplete Java Core' section and send the core of the next java crash.
If the core is complete, collect the packcore output:
Login as application user
Redirect output to a file
$ script [output_file]
Run gdb
$ gdb [java_binary] core.[timestamp]
(gdb) where
(gdb) thread apply all bt
(gdb) packcore [case-id]
(gdb) exit
$ exit
Request from customer the script output file, [output_file]
and the packcore output, [case-id].tar.gz
*If hs_err_pid.log exists, check if the timestamp is similar to the timestamp of the java core file. If it's not, *DO NOT* send the file.
     $ find / -name hs_err_pid\*.log -exec ll {} \;
*Check for missing patches:
Go to , click the link "Patches" in the section "Other useful links". Follow the instructions and install missing patches if required.
 
2.required data
*The complete core file
(preferably a packcore output)
*The Fatal Error Log (hs_err_pid.log)
*stdout/stderr messages (application log)
*output files of HPjconfig
$ java -jar HPjconfig.jar -nogui -patches -listreq -tunables -listreq
$ java -jar HPjconfig.jar -nogui -patches -listmis -tunables -listmis
$ java -jar HPjconfig.jar -nogui -patches -listpres -tunables -listpres
*GC log if available (check if option
"-Xverbosegc:file=[filename]" is in use)
*Java messages in syslog if any
*The libjunwind.sl (PA-RISC) or libjunwind*.so (Itanium)
Lib location:
(PA-RISC)
- default: /opt//jre/lib/PA_RISC2.0/server/
- java-pa11: /opt//jre/lib/PA_RISC/server/
- java-d64: /opt//jre/lib/PA_RISC2.0W/server/
(Itanium)
- 32-bit appl: /opt//jre/lib/IA64N/server/
- 64-bit appl: /opt//jre/lib/IA64W/server/
 
阅读(2939) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~