[讨论] 程序运行三~四小时,JVM崩溃
moqiaoxp
2015-08-03
JDK: jdk1.6.0_38
程序:一个抓取新浪网页的爬虫程序 # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000002728c6c, pid=58512, tid=58664 # # JRE version: 6.0_38-b05 # Java VM: Dynamic Code Evolution 64-Bit Server VM (0.2-b02-internal, 19.0-b04-internal mixed mode windows-amd64 compressed oops) # Problematic frame: # J org.apache.http.client.protocol.RequestAddCookies.process(Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)V # # If you would like to submit a bug report, please visit: # http://ssw.jku.at/dcevm/bugreport/ # --------------- T H R E A D --------------- Current thread (0x00000000072bb800): JavaThread "pool-1-thread-1" [_thread_in_Java, id=58664, stack(0x0000000009b60000,0x0000000009c60000)] siginfo: ExceptionCode=0xc0000005, reading address 0x000000031ca58d48 Registers: EAX=0x00000007fc274d60, EBX=0x0000000000000002, ECX=0x0000000000000000, EDX=0x0000000000000003 ESP=0x0000000009c5ee00, EBP=0x0000000000000001, ESI=0x00000007fc0a2e20, EDI=0x00000007fc0a2e1c EIP=0x0000000002728c6c, EFLAGS=0x0000000000010203 Top of Stack: (sp=0x0000000009c5ee00) 0x0000000009c5ee00: 01d0cd2d71a2b1a0 00000007fc325158 0x0000000009c5ee10: 00000007fbf63300 0000000000000000 0x0000000009c5ee20: 0000000700000003 0000000aff8007e3 0x0000000009c5ee30: 00000006fc766dc0 00000006fc765fb8 0x0000000009c5ee40: 000000070112a2a8 00000006fc767c28 0x0000000009c5ee50: ffffffffff7ee525 df8ecf88ffffffff 0x0000000009c5ee60: 00000006fc767c28 000000070113f448 0x0000000009c5ee70: 0000000600000003 00000006fc767bb0 0x0000000009c5ee80: 0000000000000003 00000006fc767bd0 0x0000000009c5ee90: 000000070113cdb8 0000000200000000 0x0000000009c5eea0: 0000000000000000 0000000000000000 0x0000000009c5eeb0: 0000000000000000 00000006fc766dc0 0x0000000009c5eec0: 0000000000000007 0000000002708430 0x0000000009c5eed0: 00000006fc765fb8 00000006fc766dc0 0x0000000009c5eee0: 000000070113aa50 0000000700000009 0x0000000009c5eef0: 0000000009c5ef30 00000007fbc19620 Instructions: (pc=0x0000000002728c6c) 0x0000000002728c5c: 00 00 00 90 41 8b e9 44 8b 6c af 10 8b dd ff c3 0x0000000002728c6c: 47 8b 54 ec 08 41 81 fa c4 45 81 ff 0f 85 34 17 Stack: [0x0000000009b60000,0x0000000009c60000], sp=0x0000000009c5ee00, free space=3fb0000000063aaf3f0k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J org.apache.http.client.protocol.RequestAddCookies.process(Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)V --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000000000a88c800 JavaThread "pool-2-thread-10" [_thread_blocked, id=66040, stack(0x000000000ba30000,0x000000000bb30000)] 0x000000000a88c000 JavaThread "pool-2-thread-9" [_thread_blocked, id=65908, stack(0x000000000b930000,0x000000000ba30000)] 0x000000000a88b000 JavaThread "pool-2-thread-8" [_thread_blocked, id=65888, stack(0x000000000b830000,0x000000000b930000)] 0x000000000a88a800 JavaThread "pool-2-thread-7" [_thread_blocked, id=65880, stack(0x000000000b730000,0x000000000b830000)] 0x000000000a889800 JavaThread "pool-2-thread-6" [_thread_blocked, id=65872, stack(0x000000000b630000,0x000000000b730000)] 0x000000000a889000 JavaThread "pool-2-thread-5" [_thread_blocked, id=65700, stack(0x000000000b530000,0x000000000b630000)] 0x000000000a888800 JavaThread "pool-2-thread-4" [_thread_blocked, id=65692, stack(0x000000000b430000,0x000000000b530000)] 0x000000000a887800 JavaThread "pool-2-thread-3" [_thread_blocked, id=65688, stack(0x000000000b230000,0x000000000b330000)] 0x000000000a887000 JavaThread "pool-2-thread-2" [_thread_blocked, id=65680, stack(0x000000000b130000,0x000000000b230000)] 0x000000000aa8a800 JavaThread "pool-2-thread-1" [_thread_blocked, id=65056, stack(0x000000000b330000,0x000000000b430000)] 0x000000000049e000 JavaThread "DestroyJavaVM" [_thread_blocked, id=54388, stack(0x0000000002130000,0x0000000002230000)] 0x000000000864b800 JavaThread "pool-1-thread-5" [_thread_blocked, id=63452, stack(0x0000000009f60000,0x000000000a060000)] 0x000000000748a000 JavaThread "pool-1-thread-4" [_thread_blocked, id=64412, stack(0x0000000009e60000,0x0000000009f60000)] 0x0000000008546000 JavaThread "pool-1-thread-3" [_thread_blocked, id=61108, stack(0x0000000009d60000,0x0000000009e60000)] 0x0000000008545800 JavaThread "pool-1-thread-2" [_thread_blocked, id=64928, stack(0x0000000009c60000,0x0000000009d60000)] =>0x00000000072bb800 JavaThread "pool-1-thread-1" [_thread_in_Java, id=58664, stack(0x0000000009b60000,0x0000000009c60000)] 0x00000000074c5000 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon [_thread_blocked, id=58908, stack(0x0000000008a90000,0x0000000008b90000)] 0x00000000074c2000 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon [_thread_blocked, id=64856, stack(0x0000000008990000,0x0000000008a90000)] 0x00000000073a5800 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon [_thread_blocked, id=60936, stack(0x0000000007b50000,0x0000000007c50000)] 0x00000000073a4800 JavaThread "Timer-0" daemon [_thread_blocked, id=63808, stack(0x0000000007990000,0x0000000007a90000)] 0x0000000006412800 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=62104, stack(0x0000000006f60000,0x0000000007060000)] 0x000000000210c000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=62488, stack(0x0000000006960000,0x0000000006a60000)] 0x0000000002108800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=60840, stack(0x0000000006860000,0x0000000006960000)] 0x00000000020fc000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=64144, stack(0x0000000006760000,0x0000000006860000)] 0x00000000020fa800 JavaThread "Attach Listener" daemon [_thread_blocked, id=64648, stack(0x0000000006660000,0x0000000006760000)] 0x00000000020f9800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=65136, stack(0x0000000006560000,0x0000000006660000)] 0x00000000020e2000 JavaThread "Finalizer" daemon [_thread_blocked, id=65264, stack(0x0000000006260000,0x0000000006360000)] 0x00000000020e0800 JavaThread "Reference Handler" daemon [_thread_blocked, id=58224, stack(0x0000000006160000,0x0000000006260000)] Other Threads: 0x00000000020da000 VMThread [stack: 0x0000000006060000,0x0000000006160000] [id=64024] 0x0000000002123000 WatcherThread [stack: 0x0000000006a60000,0x0000000006b60000] [id=64880] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 78208K, used 4631K [0x00000006fc400000, 0x00000007018d0000, 0x0000000751150000) eden space 69568K, 5% used [0x00000006fc400000, 0x00000006fc7952a0, 0x00000007007f0000) from space 8640K, 11% used [0x0000000701060000, 0x00000007011509c8, 0x00000007018d0000) to space 8640K, 0% used [0x00000007007f0000, 0x00000007007f0000, 0x0000000701060000) tenured generation total 173696K, used 12086K [0x0000000751150000, 0x000000075baf0000, 0x00000007fac00000) the space 173696K, 6% used [0x0000000751150000, 0x0000000751d1d918, 0x0000000751d1da00, 0x000000075baf0000) compacting perm gen total 23808K, used 23739K [0x00000007fac00000, 0x00000007fc340000, 0x0000000800000000) the space 23808K, 99% used [0x00000007fac00000, 0x00000007fc32eef8, 0x00000007fc32f000, 0x00000007fc340000) No shared spaces configured. Dynamic libraries: 0x0000000000400000 - 0x000000000042f000 D:\JavaSoft\jdk\jdk1.6.0_38\bin\java.exe 0x0000000077290000 - 0x0000000077439000 C:\Windows\SYSTEM32\ntdll.dll 0x0000000077170000 - 0x000000007728f000 C:\Windows\system32\kernel32.dll 0x000007fefd200000 - 0x000007fefd26b000 C:\Windows\system32\KERNELBASE.dll 0x000007fefdec0000 - 0x000007fefdf9b000 C:\Windows\system32\ADVAPI32.dll 0x000007feff4f0000 - 0x000007feff58f000 C:\Windows\system32\msvcrt.dll 0x000007fefd860000 - 0x000007fefd87f000 C:\Windows\SYSTEM32\sechost.dll 0x000007fefd680000 - 0x000007fefd7ad000 C:\Windows\system32\RPCRT4.dll 0x00000000634b0000 - 0x0000000063b0e000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\server\jvm.dll 0x000007fef9960000 - 0x000007fef999b000 C:\Windows\system32\WINMM.dll 0x0000000077070000 - 0x000000007716a000 C:\Windows\system32\USER32.dll 0x000007fefd880000 - 0x000007fefd8e7000 C:\Windows\system32\GDI32.dll 0x000007fefe3b0000 - 0x000007fefe3be000 C:\Windows\system32\LPK.dll 0x000007fefdfd0000 - 0x000007fefe099000 C:\Windows\system32\USP10.dll 0x000007fefdfa0000 - 0x000007fefdfce000 C:\Windows\system32\IMM32.DLL 0x000007fefe120000 - 0x000007fefe229000 C:\Windows\system32\MSCTF.dll 0x000000006d830000 - 0x000000006d83e000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\verify.dll 0x000000006d450000 - 0x000000006d477000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\java.dll 0x000000006d3b0000 - 0x000000006d3ba000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\hpi.dll 0x0000000077450000 - 0x0000000077457000 C:\Windows\system32\PSAPI.DLL 0x000000006d880000 - 0x000000006d892000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\zip.dll 0x000007fef79e0000 - 0x000007fef79f0000 D:\JavaSoft\dev\IntelliJ IDEA 14.1.1\bin\breakgen64.dll 0x000000006d6b0000 - 0x000000006d6c7000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\net.dll 0x000007fefd810000 - 0x000007fefd85d000 C:\Windows\system32\WS2_32.dll 0x000007feff590000 - 0x000007feff598000 C:\Windows\system32\NSI.dll 0x000007fefc7f0000 - 0x000007fefc845000 C:\Windows\system32\mswsock.dll 0x000007fefc7e0000 - 0x000007fefc7e7000 C:\Windows\System32\wship6.dll 0x000007fefc210000 - 0x000007fefc217000 C:\Windows\System32\wshtcpip.dll 0x000007fefb130000 - 0x000007fefb145000 C:\Windows\system32\NLAapi.dll 0x000007fef9e50000 - 0x000007fef9e65000 C:\Windows\system32\napinsp.dll 0x000007fef8830000 - 0x000007fef8849000 C:\Windows\system32\pnrpnsp.dll 0x000007fefc670000 - 0x000007fefc6cb000 C:\Windows\system32\DNSAPI.dll 0x000007fef8820000 - 0x000007fef882b000 C:\Windows\System32\winrnr.dll 0x0000000070700000 - 0x0000000070726000 C:\Program Files\Bonjour\mdnsNSP.dll 0x000007fefaf60000 - 0x000007fefaf87000 C:\Windows\system32\Iphlpapi.DLL 0x000007fefaf20000 - 0x000007fefaf2b000 C:\Windows\system32\WINNSI.DLL 0x000007fef7c10000 - 0x000007fef7c18000 C:\Windows\system32\rasadhlp.dll 0x000007fefadf0000 - 0x000007fefae43000 C:\Windows\System32\fwpuclnt.dll 0x000007fefc850000 - 0x000007fefc868000 C:\Windows\system32\CRYPTSP.dll 0x000007fefc550000 - 0x000007fefc597000 C:\Windows\system32\rsaenh.dll 0x000007fefd3f0000 - 0x000007fefd40e000 C:\Windows\system32\USERENV.dll 0x000007fefd050000 - 0x000007fefd05f000 C:\Windows\system32\profapi.dll 0x000007fefceb0000 - 0x000007fefcebf000 C:\Windows\system32\CRYPTBASE.dll 0x000000006d5f0000 - 0x000000006d5fa000 D:\JavaSoft\jdk\jdk1.6.0_38\jre\bin\management.dll VM Arguments: jvm_args: -Didea.launcher.port=7533 -Didea.launcher.bin.path=D:\JavaSoft\dev\IntelliJ IDEA 14.1.1\bin -Dfile.encoding=UTF-8 java_command: com.intellij.rt.execution.application.AppMain org.gupiao.snatch.history.GPBasicHistorySnatch Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=D:\JavaSoft\jdk\jdk1.6.0_38 PATH=D:\JavaSoft\jdk\jdk1.6.0_38\bin;D:\Jws\jws.1.5;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\NetSarang;D:\JavaSoft\apache-maven-3.0.5\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Rational\common;C:\Program Files (x86)\Skype\Phone\;C:\Wind\WWT\bin\ USERNAME=KG OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 7 Build 7601 Service Pack 1 CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt Memory: 4k page, physical 16671768k(8838244k free), swap 33341680k(23989392k free) vm_info: Dynamic Code Evolution 64-Bit Server VM (0.2-b02-internal, 19.0-b04-internal) for windows-amd64 JRE (1.7.0), built on Aug 4 2010 00:33:09 by tw with MS VC++ 9.0 (VS2008) time: Sun Aug 02 22:13:45 2015 elapsed time: 3195 seconds |
|
xiaoyu1985ban
2015-08-13
引用 compacting perm gen total 23808K, used 23739K [0x00000007fac00000, 0x00000007fc340000, 0x0000000800000000) the space 23808K, 99% used [0x00000007fac00000, 0x00000007fc32eef8, 0x00000007fc32f000, 0x00000007fc340000) 从这里看,怀疑是perm区满了,可以尝试将perm区调大一些 |
|
ZZX19880809
2015-08-21
xiaoyu1985ban 写道 引用 compacting perm gen total 23808K, used 23739K [0x00000007fac00000, 0x00000007fc340000, 0x0000000800000000)
the space 23808K, 99% used [0x00000007fac00000, 0x00000007fc32eef8, 0x00000007fc32f000, 0x00000007fc340000) 从这里看,怀疑是perm区满了,可以尝试将perm区调大一些 对把XX:PermSize弄大一些,23808K太小了 |