1
gqlxj1987 2014-11-24 10:14:29 +08:00
挂掉的时候,kill -3 pid试试,看下内存的分配情况
以及,通过jmap方式,得到当时的heap情况,使用Eclipse Memory Analyzer tool来分析 |
2
hanwujibaby 2014-11-24 10:46:51 +08:00
加参数,看有没有dump.core文件出现。
|
3
chocotan 2014-11-24 10:48:49 +08:00
还可以用jconsole来观察
|
4
well 2014-11-24 18:02:25 +08:00
1. 观察内存情况
jmap -heap pid 2. dump 线程情况 jstack pid 3. 增加: -XX:+HeapDumpOnOutOfMemoryError 4. 分析堆栈情况 5. 再不行就 google 如何分析 |
5
pythonee OP @well 现在只有core dump日志
# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f2e2693e8b7, pid=1937, tid=139835995064080 # # JRE version: 6.0_26-b03 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libjprofilerti.so+0xa08b7] HashMap<String, MethodDesc>::rehash()+0x77 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0000000044617000): JavaThread "http-28050-1" daemon [_thread_in_native, id=2782, stack(0x00007f2e1ac00000,0x00007f2e1ad01000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=128 (), si_addr=0x0000000000000000 Registers: RAX=0x000000000000005e, RBX=0x07656c6200000000, RCX=0x00000000000000bf, RDX=0x00000000000000bf RSP=0x00007f2e1acfe810, RBP=0x000000000000005f, RSI=0x00007f2e1c0000d8, RDI=0x00007f2e1c000020 R8 =0x00007f2e1c000020, R9 =0x00007f2e1c000078, R10=0x0000000000000000, R11=0x00007f2e1c000070 R12=0x00000000000000bf, R13=0x000000000000005e, R14=0x00007f2e14986fe0, R15=0x00007f2e1ff4ddf0 RIP=0x00007f2e2693e8b7, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000000 TRAPNO=0x000000000000000d Top of Stack: (sp=0x00007f2e1acfe810) 0x00007f2e1acfe810: 00007f2e1d2790e0 0000000000000000 0x00007f2e1acfe820: 00007f2e1d27e1d0 00007f2e26ac3000 0x00007f2e1acfe830: 0000000000000048 00007f2e1d279a20 0x00007f2e1acfe840: 00007f2e26aaccb0 00007f2e2693e9e0 0x00007f2e1acfe850: 00007f2e1d2790e0 00007f2e1d279a20 0x00007f2e1acfe860: 00007f2e1d27e1d0 000000004011f000 0x00007f2e1acfe870: 00007f2e26ac3000 00007f2e2694db67 0x00007f2e1acfe880: 000000004011f000 0000000000000000 0x00007f2e1acfe890: 00007f2e26aaccb0 0000000000000001 0x00007f2e1acfe8a0: 00007f2e1dfa4b70 3c8f291a00000032 0x00007f2e1acfe8b0: 0000000040122ab0 00000000446171d0 0x00007f2e1acfe8c0: 0000000040122ab0 00007f2e1dfa4b70 0x00007f2e1acfe8d0: 0000000044617bf0 00007f2e1acfe9b8 0x00007f2e1acfe8e0: 0000000044617000 00007f2e2694ffa7 0x00007f2e1acfe8f0: 0000000000000000 00000000446171d0 0x00007f2e1acfe900: 00007f2e1acfe998 00007f2e1dfa4b70 0x00007f2e1acfe910: 000000009074b3a0 00007f2e269269ea 0x00007f2e1acfe920: 00000000fc628088 000000009074b3a0 0x00007f2e1acfe930: 0000000000000000 000000009074b3a0 0x00007f2e1acfe940: 00007f2e1acfe9b8 00007f2e22a48b55 0x00007f2e1acfe950: 00007f2e1acfe9a8 00007f2e1acfe958 0x00007f2e1acfe960: 0000000000000000 00007f2e1acfe9b8 0x00007f2e1acfe970: 000000009074cd80 0000000000000000 0x00007f2e1acfe980: 000000009074b3a0 0000000000000000 0x00007f2e1acfe990: 00007f2e1acfe9b8 00007f2e1acfea00 0x00007f2e1acfe9a0: 00007f2e22a37a33 000000009074cd00 0x00007f2e1acfe9b0: 00007f2e22a44297 00000000faa09628 0x00007f2e1acfe9c0: 00007f2e1acfe9c0 0000000090727dc4 0x00007f2e1acfe9d0: 00007f2e1acfea80 0000000090728948 0x00007f2e1acfe9e0: 0000000000000000 0000000090727ec8 0x00007f2e1acfe9f0: 00007f2e1acfe9b8 00007f2e1acfea90 0x00007f2e1acfea00: 00000000a11d4410 00007f2e23232adc Instructions: (pc=0x00007f2e2693e8b7) 0x00007f2e2693e897: 43 18 f3 0f 2c c0 89 43 14 41 |