ToB企服应用市场:ToB评测及商务社交产业平台

标题: 线上JAVA应用平稳运行一段时间后出现JVM崩溃问题 [打印本页]

作者: tsx81428    时间: 2023-12-6 19:55
标题: 线上JAVA应用平稳运行一段时间后出现JVM崩溃问题
一、问题是怎么发现的

系统是一个定时任务系统,需要定时执行业务代码,业务代码主要是访问MYSQL数据库和缓存进行操作,该开始启动,系统日志一切正常,但是运行一段时间到凌晨后,系统就自动崩溃了,java进程没有了,只留下了程序崩溃日志如下:
  1. cat: /proc/1/environ: Permission denied
  2. [admin@host-11-40-38-52 ~]$ more hs_err_pid231.log
  3. #
  4. # A fatal error has been detected by the Java Runtime Environment:
  5. #
  6. #  SIGSEGV (0xb) at pc=0x00007f21a8c21325, pid=231, tid=139779725313792
  7. #
  8. # JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
  9. # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 c
  10. ompressed oops)
  11. # Problematic frame:
  12. # V  [libjvm.so+0x858325]  LoadKlassNode::make(PhaseGVN&, Node*, Node*, TypePtr
  13. const*, TypeKlassPtr const*)+0x45
  14. #
  15. # Core dump written. Default location: /home/admin/core or core.231
  16. #
  17. # If you would like to submit a bug report, please visit:
  18. #   http://bugreport.sun.com/bugreport/crash.jsp
  19. #
  20. ---------------  T H R E A D  ---------------
  21. Current thread (0x00007f21a4b80800):  JavaThread "C2 CompilerThread5" daemon [_t
  22. hread_in_native, id=398, stack(0x00007f2100cfc000,0x00007f2100dfd000)]
  23. siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000
  24. 000010
  25. Registers:
  26. RAX=0x00007f21a48fbab0, RBX=0x00007f21a48fe4b0, RCX=0x0000000000000000, RDX=0x00
  27. 000000fffffff4
  28. RSP=0x00007f2100df9c40, RBP=0x00007f2100df9c80, RSI=0x00007f20b00e9050, RDI=0x00
  29. 007f1fe84e3650
  30. R8 =0x00007f21a48fe4b0, R9 =0x00007f21a48fbab0, R10=0x00007f1ffc059d90, R11=0x00
  31. 007f21a8cf3560
  32. R12=0x00007f2100dfad00, R13=0x00007f1fe84e3650, R14=0x00007f2100dfa100, R15=0x00
  33. 007f2100df9ee0
  34. RIP=0x00007f21a8c21325, EFLAGS=0x0000000000010296, CSGSFS=0x0000000000000033, ER
  35. R=0x0000000000000004
  36.   TRAPNO=0x000000000000000e
  37. Top of Stack: (sp=0x00007f2100df9c40)
  38. 0x00007f2100df9c40:   00007f20b00e9050 00007f21a48fbab0
  39. 0x00007f2100df9c50:   00007f2100df9c80 00007f21a48fe4b0
  40. 0x00007f2100df9c60:   00007f21a48fd440 00007f1fe84e3650
  41. 0x00007f2100df9c70:   00007f21a8cf3560 00007f2100df9ee0
  42. 0x00007f2100df9c80:   00007f2100df9da0 00007f21a891acb6
  43. 0x00007f2100df9c90:   00007f1ffc5122a0 00007f20b00301d0
  44. 0x00007f2100df9ca0:   00007f2100df9ce0 00007f1ffc933fc0
  45. 0x00007f2100df9cb0:   00007f2100df9ee0 00007f1ffc933fc0
  46. 0x00007f2100df9cc0:   00007f2100df9cf0 00007f21a89ac798
  47. 0x00007f2100df9cd0:   00007f2100df9cf0 00007f2100dfad00
  48. 0x00007f2100df9ce0:   0000000000000000 0000000000000002
  49. 0x00007f2100df9cf0:   00007f1ffc933fc0 00007f1ffc93ba68
  50. 0x00007f2100df9d00:   0000000000000000 00007f1ffc93ba68
  51. 0x00007f2100df9d10:   00007f2100df9d30 00007f2100000002
  52. 0x00007f2100df9d20:   00007f1ffc93b828 0000000000000000
  53. 0x00007f2100df9d30:   00007f20b0029970 0000000500000004
  54. 0x00007f2100df9d40:   00007f20b00301d0 00007f00000001b0
  55. 0x00007f2100df9d50:   000000c700000e83 00007f1ffc93b828
  56. 0x00007f2100df9d60:   00007f2100dfa100 00007f1ffc5126a0
  57. 0x00007f2100df9d70:   0000000000001019 00007f1ffc933fc0
  58. 0x00007f2100df9d80:   00007f2100df9ee0 00007f2100df9db0
  59. 0x00007f2100df9d90:   0000000000000000 00007f2100df9fd8
  60. 0x00007f2100df9da0:   00007f2100df9df0 00007f21a8cd1b0a
  61. 0x00007f2100df9db0:   00007f2100df9ee0 0000000000000000
  62. 0x00007f2100df9dc0:   00007f1f00000001 00007f2100df9ee0
  63. 0x00007f2100df9dd0:   0000000000000000 00007f2100df9ee0
  64. 0x00007f2100df9de0:   0000000000000000 00000000000001b0
  65. 0x00007f2100df9df0:   00007f2100df9e30 00007f21a8cd46f0
  66. 0x00007f2100df9e00:   00007f2100df9e30 00007f2100dfabd0
  67. 0x00007f2100df9e10:   00007f20b00fd458 00007f2100df9ee0
  68. 0x00007f2100df9e20:   000000000000001f 00007f1ffc936508
  69. 0x00007f2100df9e30:   00007f2100df9e80 00007f21a8cd4967
  70. Instructions: (pc=0x00007f21a8c21325)
  71. 0x00007f21a8c21305:   c0 48 8b 02 4c 8b 67 10 49 89 fe 48 89 d7 ff 50
  72. 0x00007f21a8c21315:   28 8b 50 10 31 c9 83 ea 0e 83 fa 07 48 0f 42 c8
  73. 0x00007f21a8c21325:   8b 41 10 83 e8 10 83 f8 02 0f 87 9c 01 00 00 80
  74. 0x00007f21a8c21335:   79 32 00 0f 84 92 01 00 00 49 8b 06 49 89 df 48
  75. Register to memory mapping:
  76. RAX=0x00007f21a48fbab0 is an unknown value
  77. RBX=0x00007f21a48fe4b0 is an unknown value
  78. RCX=0x0000000000000000 is an unknown value
  79. RDX=0x00000000fffffff4 is an unknown value
  80. RSP=0x00007f2100df9c40 is pointing into the stack for thread: 0x00007f21a4b80800
  81. RBP=0x00007f2100df9c80 is pointing into the stack for thread: 0x00007f21a4b80800
  82. RSI=0x00007f20b00e9050 is an unknown value
  83. RDI=0x00007f1fe84e3650 is an unknown value
  84. R8 =0x00007f21a48fe4b0 is an unknown value
  85. R9 =0x00007f21a48fbab0 is an unknown value
  86. R10=0x00007f1ffc059d90 is an unknown value
  87. R11=0x00007f21a8cf3560: <offset 0x92a560> in /home/export/servers/jdk1.8.0_20/jr
  88. e/lib/amd64/server/libjvm.so at 0x00007f21a83c9000
  89. R12=0x00007f2100dfad00 is pointing into the stack for thread: 0x00007f21a4b80800
  90. R13=0x00007f1fe84e3650 is an unknown value
  91. R14=0x00007f2100dfa100 is pointing into the stack for thread: 0x00007f21a4b80800
  92. R15=0x00007f2100df9ee0 is pointing into the stack for thread: 0x00007f21a4b80800
  93. Stack: [0x00007f2100cfc000,0x00007f2100dfd000],  sp=0x00007f2100df9c40,  free sp
  94. ace=1015k
  95. Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
  96. V  [libjvm.so+0x858325]  LoadKlassNode::make(PhaseGVN&, Node*, Node*, TypePtr co
  97. nst*, TypeKlassPtr const*)+0x45
  98. V  [libjvm.so+0x551cb6]  Parse::catch_inline_exceptions(SafePointNode*)+0x946
  99. V  [libjvm.so+0x908b0a]  Parse::do_exceptions()+0xba
  100. V  [libjvm.so+0x90b6f0]  Parse::do_one_block()+0x180
  101. V  [libjvm.so+0x90b967]  Parse::do_all_blocks()+0x127
  102. V  [libjvm.so+0x90fd58]  Parse::Parse(JVMState*, ciMethod*, float, Parse*)+0x7b8
  103. V  [libjvm.so+0x3e7d09]  ParseGenerator::generate(JVMState*, Parse*)+0x99
  104. V  [libjvm.so+0x4931cc]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, b
  105. ool, bool, bool)+0x126c
  106. V  [libjvm.so+0x3e67e8]  C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x19
  107. 8
  108. V  [libjvm.so+0x49ba4a]  CompileBroker::invoke_compiler_on_method(CompileTask*)+
  109. 0xc8a
  110. V  [libjvm.so+0x49e420]  CompileBroker::compiler_thread_loop()+0x620
  111. V  [libjvm.so+0xa2990f]  JavaThread::thread_main_inner()+0xdf
  112. V  [libjvm.so+0xa29a3c]  JavaThread::run()+0x11c
  113. V  [libjvm.so+0x8e75f8]  java_start(Thread*)+0x108
  114. C  [libpthread.so.0+0x7aa1]  start_thread+0xd1
  115. Current CompileTask:
  116. C2:43781461 13331   !   4       com.mysql.cj.NativeSession::execSQL (579 bytes)
  117. ---------------  P R O C E S S  ---------------
  118. Java Threads: ( => current thread )
  119.   0x00007f2010003800 JavaThread "qtp1589683045-1271" [_thread_blocked, id=142149
  120. , stack(0x00007f20fa995000,0x00007f20faa96000)]
  121.   0x00007f1f58001800 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=1
  122. 40557, stack(0x00007f20f830e000,0x00007f20f840f000)]
  123.   0x00007f1fb005e800 JavaThread "logback-1" daemon [_thread_blocked, id=42936, s
  124. tack(0x00007f20fad99000,0x00007f20fae9a000)]
  125.   0x00007f1f7c0c3000 JavaThread "logback-8" daemon [_thread_blocked, id=565, sta
  126. ck(0x00007f20ea6f6000,0x00007f20ea7f7000)]
  127.   0x00007f1f50003000 JavaThread "logback-7" daemon [_thread_blocked, id=521, sta
  128. ck(0x00007f20fab97000,0x00007f20fac98000)]
  129.   0x00007f1f10001000 JavaThread "logback-6" daemon [_thread_blocked, id=520, sta
  130. ck(0x00007f20f002b000,0x00007f20f012c000)]
  131.   0x00007f1f74004800 JavaThread "logback-5" daemon [_thread_blocked, id=519, sta
  132. ck(0x00007f20f1830000,0x00007f20f1931000)]
  133.   0x00007f1f5441d000 JavaThread "UMP-CheckFileRemovedThread" daemon [_thread_blo
  134. cked, id=518, stack(0x00007f20ea7f7000,0x00007f20ea8f8000)]
  135.   0x00007f1f5441b800 JavaThread "UMP-ProfilerFileUpdateThread" daemon [_thread_b
  136. locked, id=517, stack(0x00007f20ea8f8000,0x00007f20ea9f9000)]
  137.   0x00007f1f54419800 JavaThread "UMP-WriteLog2FileThread-jvmLogger" daemon [_thr
  138. ead_blocked, id=516, stack(0x00007f20ea9f9000,0x00007f20eaafa000)]
  139.   0x00007f1f54418000 JavaThread "UMP-WriteLog2FileThread-commonLogger" daemon [_
  140. thread_blocked, id=515, stack(0x00007f20eaafa000,0x00007f20eabfb000)]
  141.   0x00007f1f54416000 JavaThread "UMP-WriteLog2FileThread-tpLogger" daemon [_thre
  142. ad_blocked, id=514, stack(0x00007f20eabfb000,0x00007f20eacfc000)]
  143.   0x00007f1f5440f800 JavaThread "UMP-WriteLog2FileThread-bizLogger" daemon [_thr
  144. ead_blocked, id=513, stack(0x00007f20eacfc000,0x00007f20eadfd000)]
  145.   0x00007f1f54410800 JavaThread "UMP-WriteLog2FileThread-businessLogger" daemon
  146. [_thread_blocked, id=512, stack(0x00007f20eadfd000,0x00007f20eaefe000)]
  147.   0x00007f1f54408800 JavaThread "UMP-WriteLog2FileThread-aliveLogger" daemon [_t
  148. hread_blocked, id=511, stack(0x00007f20eaefe000,0x00007f20eafff000)]
  149.   0x00007f1f543da000 JavaThread "DatebookHikariCP2 housekeeper" daemon [_thread_
  150. blocked, id=509, stack(0x00007f20f012c000,0x00007f20f022d000)]
  151.   0x00007f1f543cf800 JavaThread "Jim-NioEventLoop - 1" daemon [_thread_in_native
  152. , id=508, stack(0x00007f20f042d000,0x00007f20f052e000)]
  153.   0x00007f1f54259800 JavaThread "SystemClock" daemon [_thread_blocked, id=507, s
  154. tack(0x00007f20f172f000,0x00007f20f1830000)]
  155.   0x00007f1f54216000 JavaThread "DatebookHikariCP4 housekeeper" daemon [_thread_
  156. blocked, id=505, stack(0x00007f20f289f000,0x00007f20f29a0000)]
  157.   0x00007f1f540b5000 JavaThread "UMP-WriteTPLogThread" daemon [_thread_blocked,
  158. id=504, stack(0x00007f20fa490000,0x00007f20fa591000)]
  159.   0x00007f1f50002000 JavaThread "logback-4" daemon [_thread_blocked, id=503, sta
  160. ck(0x00007f20fa38f000,0x00007f20fa490000)]
  161.   0x00007f1f74003000 JavaThread "logback-3" daemon [_thread_blocked, id=502, sta
  162. ck(0x00007f20f29a0000,0x00007f20f2aa1000)]
  163.   0x00007f21a4bc4000 JavaThread "http-nio-8001-Acceptor-0" daemon [_thread_in_na
  164. tive, id=501, stack(0x00007f20f1d31000,0x00007f20f1e32000)]
  165.   0x00007f21a4bc2000 JavaThread "http-nio-8001-ClientPoller-1" daemon [_thread_i
  166. n_native, id=500, stack(0x00007f20f1e32000,0x00007f20f1f33000)]
  167.   0x00007f21a4bc0000 JavaThread "http-nio-8001-ClientPoller-0" daemon [_thread_i
  168. n_native, id=499, stack(0x00007f20f1f33000,0x00007f20f2034000)]
  169.   0x00007f21a4bbe800 JavaThread "http-nio-8001-exec-10" daemon [_thread_blocked,
  170. id=498, stack(0x00007f20f2034000,0x00007f20f2135000)]
  171.   0x00007f21a4958800 JavaThread "http-nio-8001-exec-9" daemon [_thread_blocked,
  172. id=497, stack(0x00007f20f2135000,0x00007f20f2236000)]
  173.   0x00007f21a4956800 JavaThread "http-nio-8001-exec-8" daemon [_thread_blocked,
  174. id=496, stack(0x00007f20f2236000,0x00007f20f2337000)]
  175.   0x00007f21a4955000 JavaThread "http-nio-8001-exec-7" daemon [_thread_blocked,
  176. id=495, stack(0x00007f20f2337000,0x00007f20f2438000)]
  177.   0x00007f21a4953800 JavaThread "http-nio-8001-exec-6" daemon [_thread_blocked,
  178. id=494, stack(0x00007f20f2438000,0x00007f20f2539000)]
  179.   0x00007f21a4952000 JavaThread "http-nio-8001-exec-5" daemon [_thread_blocked,
  180. id=493, stack(0x00007f20f2539000,0x00007f20f263a000)]
  181.   0x00007f21a4b7e800 JavaThread "http-nio-8001-exec-4" daemon [_thread_blocked,
  182. id=492, stack(0x00007f20f263a000,0x00007f20f273b000)]
  183.   0x00007f21a4b7d000 JavaThread "http-nio-8001-exec-3" daemon [_thread_blocked,
  184. id=491, stack(0x00007f20f273b000,0x00007f20f283c000)]
  185.   0x00007f21a4b7b800 JavaThread "http-nio-8001-exec-2" daemon [_thread_blocked,
  186. id=490, stack(0x00007f20f2cfd000,0x00007f20f2dfe000)]
  187.   0x00007f21a4b7a000 JavaThread "http-nio-8001-exec-1" daemon [_thread_blocked,
  188. id=489, stack(0x00007f20f2dfe000,0x00007f20f2eff000)]
  189.   0x00007f21a4b78800 JavaThread "ContainerBackgroundProcessor[StandardEngine[Cat
  190. alina]]" daemon [_thread_blocked, id=488, stack(0x00007f20f2aa1000,0x00007f20f2b
  191. a2000)]
  192.   0x00007f1f7cb62800 JavaThread "scheduling-1" [_thread_in_native, id=487, stack
  193. (0x00007f20f2ba2000,0x00007f20f2ca3000)]
  194.   0x00007f1f74001000 JavaThread "logback-2" daemon [_thread_blocked, id=486, sta
  195. ck(0x00007f20f2eff000,0x00007f20f3000000)]
  196.   0x00007f1f7ca2b800 JavaThread "Jim-ConfigPoolingHeartbeat-1571143858733" daemo
  197. n [_thread_in_native, id=442, stack(0x00007f20f800b000,0x00007f20f810c000)]
  198.   0x00007f1f7c913800 JavaThread "mysql-cj-abandoned-connection-cleanup" daemon [
  199. _thread_blocked, id=441, stack(0x00007f20f8833000,0x00007f20f8934000)]
  200.   0x00007f1f7c7b8800 JavaThread "configurator-supervise" daemon [_thread_blocked
  201. , id=440, stack(0x00007f20f810c000,0x00007f20f820d000)]
  202.   0x00007f1f7c7b7000 JavaThread "Thread-51" daemon [_thread_blocked, id=439, sta
  203. ck(0x00007f20f820d000,0x00007f20f830e000)]
  204.   0x00007f1f7c71e000 JavaThread "JSF-Future-Checker-CB-1-T-1" daemon [_thread_bl
  205. ocked, id=436, stack(0x00007f20f8b34000,0x00007f20f8c35000)]
  206.   0x00007f1f7c71d800 JavaThread "JSF-Future-Checker-0-T-1" daemon [_thread_block
  207. ed, id=435, stack(0x00007f20f9bc2000,0x00007f20f9cc3000)]
  208.   0x00007f1f7c3ba000 JavaThread "logback-1" daemon [_thread_blocked, id=433, sta
  209. ck(0x00007f20f9635000,0x00007f20f9736000)]
  210.   0x00007f21a4e27800 JavaThread "NioBlockingSelector.BlockPoller-1" daemon [_thr
  211. ead_in_native, id=429, stack(0x00007f20fa591000,0x00007f20fa692000)]
  212.   0x00007f2030001000 JavaThread "qtp1589683045-59 Selector15" [_thread_in_native
  213. , id=414, stack(0x00007f20fb39f000,0x00007f20fb4a0000)]
  214.   0x00007f21a4da0800 JavaThread "GC Daemon" daemon [_thread_blocked, id=413, sta
  215. ck(0x00007f20fbafd000,0x00007f20fbbfe000)]
  216.   0x00007f21a4baa000 JavaThread "Service Thread" daemon [_thread_blocked, id=411
  217. , stack(0x00007f20fbeff000,0x00007f20fc000000)]
  218.   0x00007f21a4b9a800 JavaThread "C1 CompilerThread17" daemon [_thread_blocked, i
  219. d=410, stack(0x00007f21000f0000,0x00007f21001f1000)]
  220.   0x00007f21a4b98800 JavaThread "C1 CompilerThread16" daemon [_thread_blocked, i
  221. d=409, stack(0x00007f21001f1000,0x00007f21002f2000)]
  222.   0x00007f21a4b96800 JavaThread "C1 CompilerThread15" daemon [_thread_blocked, i
  223. d=408, stack(0x00007f21002f2000,0x00007f21003f3000)]
  224.   0x00007f21a4b94800 JavaThread "C1 CompilerThread14" daemon [_thread_blocked, i
  225. d=407, stack(0x00007f21003f3000,0x00007f21004f4000)]
  226.   0x00007f21a4b92000 JavaThread "C1 CompilerThread13" daemon [_thread_blocked, i
  227. d=406, stack(0x00007f21004f4000,0x00007f21005f5000)]
  228.   0x00007f21a4b90000 JavaThread "C1 CompilerThread12" daemon [_thread_blocked, i
  229. d=405, stack(0x00007f21005f5000,0x00007f21006f6000)]
  230.   0x00007f21a4b8e000 JavaThread "C2 CompilerThread11" daemon [_thread_blocked, i
  231. d=404, stack(0x00007f21006f6000,0x00007f21007f7000)]
  232.   0x00007f21a4b8b800 JavaThread "C2 CompilerThread10" daemon [_thread_blocked, i
  233. d=403, stack(0x00007f21007f7000,0x00007f21008f8000)]
  234.   0x00007f21a4b89800 JavaThread "C2 CompilerThread9" daemon [_thread_blocked, id
  235. =402, stack(0x00007f21008f8000,0x00007f21009f9000)]
  236.   0x00007f21a4b87000 JavaThread "C2 CompilerThread8" daemon [_thread_blocked, id
  237. =401, stack(0x00007f21009f9000,0x00007f2100afa000)]
  238.   0x00007f21a4b85000 JavaThread "C2 CompilerThread7" daemon [_thread_blocked, id
  239. =400, stack(0x00007f2100afa000,0x00007f2100bfb000)]
  240.   0x00007f21a4b83000 JavaThread "C2 CompilerThread6" daemon [_thread_blocked, id
  241. =399, stack(0x00007f2100bfb000,0x00007f2100cfc000)]
  242. =>0x00007f21a4b80800 JavaThread "C2 CompilerThread5" daemon [_thread_in_native,
  243. id=398, stack(0x00007f2100cfc000,0x00007f2100dfd000)]
  244.   0x00007f21a4b76800 JavaThread "C2 CompilerThread4" daemon [_thread_blocked, id
  245. =397, stack(0x00007f2100dfd000,0x00007f2100efe000)]
  246.   0x00007f21a4b74000 JavaThread "C2 CompilerThread3" daemon [_thread_blocked, id
  247. =396, stack(0x00007f2100efe000,0x00007f2100fff000)]
  248.   0x00007f21a4b72000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id
  249. =395, stack(0x00007f2108098000,0x00007f2108199000)]
  250.   0x00007f21a4b6f800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id
  251. =394, stack(0x00007f2108199000,0x00007f210829a000)]
  252.   0x00007f21a4b6e000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id
  253. =393, stack(0x00007f210829a000,0x00007f210839b000)]
  254.   0x00007f21a4b6b000 JavaThread "qtp1589683045-38 Selector14" [_thread_in_native
  255. , id=392, stack(0x00007f210839b000,0x00007f210849c000)]
  256.   0x00007f21a4b69000 JavaThread "qtp1589683045-37 Selector13" [_thread_in_native
  257. , id=391, stack(0x00007f210849c000,0x00007f210859d000)]
  258.   0x00007f21a4b67000 JavaThread "qtp1589683045-36 Selector12" [_thread_in_native
  259. , id=390, stack(0x00007f210859d000,0x00007f210869e000)]
  260.   0x00007f21a4b65000 JavaThread "qtp1589683045-35 Selector11" [_thread_in_native
  261. , id=389, stack(0x00007f210869e000,0x00007f210879f000)]
  262.   0x00007f21a4b62800 JavaThread "qtp1589683045-34 Selector10" [_thread_in_native
  263. , id=388, stack(0x00007f210879f000,0x00007f21088a0000)]
  264.   0x00007f21a4b60800 JavaThread "qtp1589683045-33 Selector9" [_thread_in_native,
  265. id=387, stack(0x00007f21088a0000,0x00007f21089a1000)]
  266.   0x00007f21a4b5e800 JavaThread "qtp1589683045-32 Selector8" [_thread_in_native,
  267. id=386, stack(0x00007f21089a1000,0x00007f2108aa2000)]
  268.   0x00007f21a4b5c800 JavaThread "qtp1589683045-31 Selector7" [_thread_in_native,
  269. id=385, stack(0x00007f2108aa2000,0x00007f2108ba3000)]
  270.   0x00007f21a4b5a800 JavaThread "qtp1589683045-30 Selector6" [_thread_in_native,
  271. id=384, stack(0x00007f2108ba3000,0x00007f2108ca4000)]
  272.   0x00007f21a4b58800 JavaThread "qtp1589683045-29 Selector5" [_thread_in_native,
  273. id=383, stack(0x00007f2108ca4000,0x00007f2108da5000)]
  274.   0x00007f21a4b56800 JavaThread "qtp1589683045-28 Selector4" [_thread_in_native,
  275. id=382, stack(0x00007f2108da5000,0x00007f2108ea6000)]
  276.   0x00007f21a4b54800 JavaThread "qtp1589683045-27 Selector3" [_thread_in_native,
  277. id=381, stack(0x00007f2108ea6000,0x00007f2108fa7000)]
  278.   0x00007f21a4b52800 JavaThread "qtp1589683045-26 Selector2" [_thread_in_native,
  279. id=380, stack(0x00007f2108fa7000,0x00007f21090a8000)]
  280.   0x00007f21a4b50800 JavaThread "qtp1589683045-25 Selector1" [_thread_in_native,
  281. id=379, stack(0x00007f21090a8000,0x00007f21091a9000)]
  282.   0x00007f21a49ad800 JavaThread "qtp1589683045-24 Selector0" [_thread_in_native,
  283. id=378, stack(0x00007f21091a9000,0x00007f21092aa000)]
  284.   0x00007f21a49ac000 JavaThread "qtp1589683045-23 Acceptor15 SelectChannelConnec
  285. tor@0.0.0.0:7001 STARTING" [_thread_blocked, id=377, stack(0x00007f21092aa000,0x
  286. 00007f21093ab000)]
  287.   0x00007f21a49a8800 JavaThread "qtp1589683045-22 Acceptor14 SelectChannelConnec
  288. tor@0.0.0.0:7001 STARTING" [_thread_blocked, id=376, stack(0x00007f21093ab000,0x
  289. 00007f21094ac000)]
  290.   0x00007f21a49a6800 JavaThread "qtp1589683045-21 Acceptor13 SelectChannelConnec
  291. tor@0.0.0.0:7001 STARTING" [_thread_blocked, id=375, stack(0x00007f21094ac000,0x
  292. 00007f21095ad000)]
  293.   0x00007f21a49a4800 JavaThread "qtp1589683045-20 Acceptor12 SelectChannelConnec
  294. tor@0.0.0.0:7001 STARTING" [_thread_blocked, id=374, stack(0x00007f21095ad000,0x
  295. 00007f21096ae000)]
  296.   0x00007f21a49a2800 JavaThread "qtp1589683045-19 Acceptor11 SelectChannelConnec
  297. tor@0.0.0.0:7001 STARTING" [_thread_blocked, id=373, stack(0x00007f21096ae000,0x
  298. 00007f21097af000)]
  299.   0x00007f21a49a0800 JavaThread "qtp1589683045-18 Acceptor10 SelectChannelConnec
  300. tor@0.0.0.0:7001 STARTING" [_thread_blocked, id=372, stack(0x00007f21097af000,0x
  301. 00007f21098b0000)]
  302.   0x00007f21a499e800 JavaThread "qtp1589683045-17 Acceptor9 SelectChannelConnect
  303. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=371, stack(0x00007f21098b0000,0x0
  304. 0007f21099b1000)]
  305.   0x00007f21a499d800 JavaThread "qtp1589683045-16 Acceptor7 SelectChannelConnect
  306. or@0.0.0.0:7001 STARTING" [_thread_in_native, id=370, stack(0x00007f21099b1000,0
  307. x00007f2109ab2000)]
  308.   0x00007f21a4994800 JavaThread "qtp1589683045-15 Acceptor8 SelectChannelConnect
  309. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=369, stack(0x00007f2109ab2000,0x0
  310. 0007f2109bb3000)]
  311.   0x00007f21a4992800 JavaThread "qtp1589683045-14 Acceptor6 SelectChannelConnect
  312. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=368, stack(0x00007f2109bb3000,0x0
  313. 0007f2109cb4000)]
  314.   0x00007f21a4990800 JavaThread "qtp1589683045-13 Acceptor3 SelectChannelConnect
  315. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=367, stack(0x00007f2109cb4000,0x0
  316. 0007f2109db5000)]
  317.   0x00007f21a498e800 JavaThread "qtp1589683045-12 Acceptor2 SelectChannelConnect
  318. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=366, stack(0x00007f2109db5000,0x0
  319. 0007f2109eb6000)]
  320.   0x00007f21a498c800 JavaThread "qtp1589683045-11 Acceptor5 SelectChannelConnect
  321. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=365, stack(0x00007f2109eb6000,0x0
  322. 0007f2109fb7000)]
  323.   0x00007f21a498a800 JavaThread "qtp1589683045-10 Acceptor4 SelectChannelConnect
  324. or@0.0.0.0:7001 STARTING" [_thread_blocked, id=364, stack(0x00007f2109fb7000,0x0
  325. 0007f210a0b8000)]
  326.   0x00007f21a4988800 JavaThread "qtp1589683045-9 Acceptor1 SelectChannelConnecto
  327. r@0.0.0.0:7001 STARTING" [_thread_blocked, id=363, stack(0x00007f210a0b8000,0x00
  328. 007f210a1b9000)]
  329.   0x00007f21a4987000 JavaThread "qtp1589683045-8 Acceptor0 SelectChannelConnecto
  330. r@0.0.0.0:7001 STARTING" [_thread_blocked, id=362, stack(0x00007f210a1b9000,0x00
  331. 007f210a2ba000)]
  332.   0x00007f21a497c000 JavaThread "HashSessionScavenger-0" daemon [_thread_blocked
  333. , id=361, stack(0x00007f210a2ba000,0x00007f210a3bb000)]
  334.   0x00007f21a46a5800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=
  335. 360, stack(0x00007f210abec000,0x00007f210aced000)]
  336.   0x00007f21a4676800 JavaThread "Finalizer" daemon [_thread_blocked, id=359, sta
  337. ck(0x00007f210aced000,0x00007f210adee000)]
  338.   0x00007f21a4674800 JavaThread "Reference Handler" daemon [_thread_blocked, id=
  339. 358, stack(0x00007f210adee000,0x00007f210aeef000)]
  340.   0x00007f21a400b000 JavaThread "main" [_thread_in_native, id=243, stack(0x00007
  341. f21a9e2b000,0x00007f21a9f2c000)]
  342. Other Threads:
  343.   0x00007f21a466d800 VMThread [stack: 0x00007f210aeef000,0x00007f210aff0000] [id
  344. =355]
  345.   0x00007f21a4bad000 WatcherThread [stack: 0x00007f20fbdfe000,0x00007f20fbeff000
  346. ] [id=412]
  347. VM state:not at safepoint (normal execution)
  348. VM Mutex/Monitor currently owned by a thread: None
  349. Heap:
  350. PSYoungGen      total 1305088K, used 1009509K [0x000000076ab00000, 0x00000007c0
  351. 000000, 0x00000007c0000000)
  352.   eden space 1209856K, 82% used [0x000000076ab00000,0x00000007a7b58fa8,0x0000000
  353. 7b4880000)
  354.   from space 95232K, 10% used [0x00000007ba300000,0x00000007bac804c0,0x00000007c
  355. 0000000)
  356.   to   space 92672K, 0% used [0x00000007b4880000,0x00000007b4880000,0x00000007ba
  357. 300000)
  358. ParOldGen       total 2796544K, used 50182K [0x00000006c0000000, 0x000000076ab0
  359. 0000, 0x000000076ab00000)
  360.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c31019c8,0x000000
  361. 076ab00000)
  362. Metaspace       used 69176K, capacity 71536K, committed 71808K, reserved 111206
  363. 4K
  364.   class space    used 7973K, capacity 8461K, committed 8576K, reserved 1048576K
  365. Card table byte_map: [0x00007f21937c9000,0x00007f2193fca000] byte_map_base: 0x00
  366. 007f21901c9000
  367. Marking Bits: (ParMarkBitMap*) 0x00007f21a9320ac0
  368. Begin Bits: [0x00007f20a4000000, 0x00007f20a8000000)
  369. End Bits:   [0x00007f20a8000000, 0x00007f20ac000000)
  370. Polling page: 0x00007f21a9f33000
  371. CodeCache: size=245760Kb used=45854Kb max_used=45878Kb free=199905Kb
  372. bounds [0x00007f219438a000, 0x00007f219709a000, 0x00007f21a338a000]
  373. total_blobs=11396 nmethods=10825 adapters=479
  374. compilation: enabled
  375. Compilation events (10 events):
  376. Event: 42853.758 Thread 0x00007f21a4b98800 nmethod 13322 0x00007f21967d2650 code
  377. [0x00007f21967d2840, 0x00007f21967d30f8]
  378. Event: 42941.467 Thread 0x00007f21a4b89800 13327       4       java.util.concurr
  379. ent.ScheduledThreadPoolExecutor$DelayedWorkQueue::add (9 bytes)
  380. Event: 42941.467 Thread 0x00007f21a4b87000 13328   !   4       java.util.concurr
  381. ent.ScheduledThreadPoolExecutor$DelayedWorkQueue::offer (124 bytes)
  382. Event: 42941.467 Thread 0x00007f21a4b80800 13329       4       java.util.concurr
  383. ent.ThreadPoolExecutor::ensurePrestart (41 bytes)
  384. Event: 42941.469 Thread 0x00007f21a4b80800 nmethod 13329 0x00007f21967d0dd0 code
  385. [0x00007f21967d0f20, 0x00007f21967d0ff8]
  386. Event: 42941.493 Thread 0x00007f21a4b87000 nmethod 13328 0x00007f219708a2d0 code
  387. [0x00007f219708a540, 0x00007f219708b680]
  388. Event: 42941.493 Thread 0x00007f21a4b89800 nmethod 13327 0x00007f2197070390 code
  389. [0x00007f2197070600, 0x00007f2197071700]
  390. Event: 43421.467 Thread 0x00007f21a4b74000 13330       4       com.mysql.cj.resu
  391. lt.DefaultColumnDefinition::<init> (41 bytes)
  392. Event: 43421.469 Thread 0x00007f21a4b74000 nmethod 13330 0x00007f2196854910 code
  393. [0x00007f2196854a60, 0x00007f2196854b78]
  394. Event: 43781.449 Thread 0x00007f21a4b80800 13331   !   4       com.mysql.cj.Nati
  395. veSession::execSQL (579 bytes)
  396. GC Heap History (10 events):
  397. Event: 2901.101 GC heap before
  398. {Heap before GC invocations=9 (full 3):
  399. PSYoungGen      total 1223168K, used 1048576K [0x000000076ab00000, 0x00000007c0
  400. 000000, 0x00000007c0000000)
  401.   eden space 1048576K, 100% used [0x000000076ab00000,0x00000007aab00000,0x000000
  402. 07aab00000)
  403.   from space 174592K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007b
  404. 5580000)
  405.   to   space 101376K, 0% used [0x00000007b9d00000,0x00000007b9d00000,0x00000007c
  406. 0000000)
  407. ParOldGen       total 2796544K, used 50126K [0x00000006c0000000, 0x000000076ab0
  408. 0000, 0x000000076ab00000)
  409.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30f39b8,0x000000
  410. 076ab00000)
  411. Metaspace       used 67592K, capacity 69946K, committed 70144K, reserved 111206
  412. 4K
  413.   class space    used 7943K, capacity 8414K, committed 8448K, reserved 1048576K
  414. Event: 2901.121 GC heap after
  415. Heap after GC invocations=9 (full 3):
  416. PSYoungGen      total 1296896K, used 14251K [0x000000076ab00000, 0x00000007c000
  417. 0000, 0x00000007c0000000)
  418.   eden space 1195520K, 0% used [0x000000076ab00000,0x000000076ab00000,0x00000007
  419. b3a80000)
  420.   from space 101376K, 14% used [0x00000007b9d00000,0x00000007baaeaf98,0x00000007
  421. c0000000)
  422.   to   space 100864K, 0% used [0x00000007b3a80000,0x00000007b3a80000,0x00000007b
  423. 9d00000)
  424. ParOldGen       total 2796544K, used 50150K [0x00000006c0000000, 0x000000076ab0
  425. 0000, 0x000000076ab00000)
  426.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30f99c8,0x000000
  427. 076ab00000)
  428. Metaspace       used 67592K, capacity 69946K, committed 70144K, reserved 111206
  429. 4K
  430.   class space    used 7943K, capacity 8414K, committed 8448K, reserved 1048576K
  431. }
  432. Event: 10747.104 GC heap before
  433. {Heap before GC invocations=10 (full 3):
  434. PSYoungGen      total 1296896K, used 1209771K [0x000000076ab00000, 0x00000007c0
  435. 000000, 0x00000007c0000000)
  436.   eden space 1195520K, 100% used [0x000000076ab00000,0x00000007b3a80000,0x000000
  437. 07b3a80000)
  438.   from space 101376K, 14% used [0x00000007b9d00000,0x00000007baaeaf98,0x00000007
  439. c0000000)
  440.   to   space 100864K, 0% used [0x00000007b3a80000,0x00000007b3a80000,0x00000007b
  441. 9d00000)
  442. ParOldGen       total 2796544K, used 50150K [0x00000006c0000000, 0x000000076ab0
  443. 0000, 0x000000076ab00000)
  444.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30f99c8,0x000000
  445. 076ab00000)
  446. Metaspace       used 68322K, capacity 70672K, committed 70912K, reserved 111206
  447. 4K
  448.   class space    used 7963K, capacity 8423K, committed 8448K, reserved 1048576K
  449. Event: 10747.119 GC heap after
  450. Heap after GC invocations=10 (full 3):
  451. PSYoungGen      total 1296384K, used 10324K [0x000000076ab00000, 0x00000007c000
  452. 0000, 0x00000007c0000000)
  453.   eden space 1195520K, 0% used [0x000000076ab00000,0x000000076ab00000,0x00000007
  454. b3a80000)
  455.   from space 100864K, 10% used [0x00000007b3a80000,0x00000007b44951c8,0x00000007
  456. b9d00000)
  457.   to   space 99840K, 0% used [0x00000007b9e80000,0x00000007b9e80000,0x00000007c0
  458. 000000)
  459. ParOldGen       total 2796544K, used 50158K [0x00000006c0000000, 0x000000076ab0
  460. 0000, 0x000000076ab00000)
  461.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30fb9c8,0x000000
  462. 076ab00000)
  463. Metaspace       used 68322K, capacity 70672K, committed 70912K, reserved 111206
  464. 4K
  465.   class space    used 7963K, capacity 8423K, committed 8448K, reserved 1048576K
  466. }
  467. Event: 18892.422 GC heap before
  468. {Heap before GC invocations=11 (full 3):
  469. PSYoungGen      total 1296384K, used 1205844K [0x000000076ab00000, 0x00000007c0
  470. 000000, 0x00000007c0000000)
  471.   eden space 1195520K, 100% used [0x000000076ab00000,0x00000007b3a80000,0x000000
  472. 07b3a80000)
  473.   from space 100864K, 10% used [0x00000007b3a80000,0x00000007b44951c8,0x00000007
  474. b9d00000)
  475.   to   space 99840K, 0% used [0x00000007b9e80000,0x00000007b9e80000,0x00000007c0
  476. 000000)
  477. ParOldGen       total 2796544K, used 50158K [0x00000006c0000000, 0x000000076ab0
  478. 0000, 0x000000076ab00000)
  479.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30fb9c8,0x000000
  480. 076ab00000)
  481. Metaspace       used 68759K, capacity 71020K, committed 71168K, reserved 111206
  482. 4K
  483.   class space    used 7970K, capacity 8429K, committed 8448K, reserved 1048576K
  484. Event: 18892.439 GC heap after
  485. Heap after GC invocations=11 (full 3):
  486. PSYoungGen      total 1299968K, used 9668K [0x000000076ab00000, 0x00000007c0000
  487. 000, 0x00000007c0000000)
  488.   eden space 1200128K, 0% used [0x000000076ab00000,0x000000076ab00000,0x00000007
  489. b3f00000)
  490.   from space 99840K, 9% used [0x00000007b9e80000,0x00000007ba7f11f8,0x00000007c0
  491. 000000)
  492.   to   space 97792K, 0% used [0x00000007b3f00000,0x00000007b3f00000,0x00000007b9
  493. e80000)
  494. ParOldGen       total 2796544K, used 50166K [0x00000006c0000000, 0x000000076ab0
  495. 0000, 0x000000076ab00000)
  496.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30fd9c8,0x000000
  497. 076ab00000)
  498. Metaspace       used 68759K, capacity 71020K, committed 71168K, reserved 111206
  499. 4K
  500.   class space    used 7970K, capacity 8429K, committed 8448K, reserved 1048576K
  501. }
  502. Event: 27681.725 GC heap before
  503. {Heap before GC invocations=12 (full 3):
  504. PSYoungGen      total 1299968K, used 1209796K [0x000000076ab00000, 0x00000007c0
  505. 000000, 0x00000007c0000000)
  506.   eden space 1200128K, 100% used [0x000000076ab00000,0x00000007b3f00000,0x000000
  507. 07b3f00000)
  508.   from space 99840K, 9% used [0x00000007b9e80000,0x00000007ba7f11f8,0x00000007c0
  509. 000000)
  510.   to   space 97792K, 0% used [0x00000007b3f00000,0x00000007b3f00000,0x00000007b9
  511. e80000)
  512. ParOldGen       total 2796544K, used 50166K [0x00000006c0000000, 0x000000076ab0
  513. 0000, 0x000000076ab00000)
  514.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30fd9c8,0x000000
  515. 076ab00000)
  516. Metaspace       used 68898K, capacity 71216K, committed 71424K, reserved 111206
  517. 4K
  518.   class space    used 7971K, capacity 8429K, committed 8448K, reserved 1048576K
  519. Event: 27681.740 GC heap after
  520. Heap after GC invocations=12 (full 3):
  521. PSYoungGen      total 1297920K, used 9809K [0x000000076ab00000, 0x00000007c0000
  522. 000, 0x00000007c0000000)
  523.   eden space 1200128K, 0% used [0x000000076ab00000,0x000000076ab00000,0x00000007
  524. b3f00000)
  525.   from space 97792K, 10% used [0x00000007b3f00000,0x00000007b48944d0,0x00000007b
  526. 9e80000)
  527.   to   space 95232K, 0% used [0x00000007ba300000,0x00000007ba300000,0x00000007c0
  528. 000000)
  529. ParOldGen       total 2796544K, used 50174K [0x00000006c0000000, 0x000000076ab0
  530. 0000, 0x000000076ab00000)
  531.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30ff9c8,0x000000
  532. 076ab00000)
  533. Metaspace       used 68898K, capacity 71216K, committed 71424K, reserved 111206
  534. 4K
  535.   class space    used 7971K, capacity 8429K, committed 8448K, reserved 1048576K
  536. }
  537. Event: 36688.570 GC heap before
  538. {Heap before GC invocations=13 (full 3):
  539. PSYoungGen      total 1297920K, used 1209937K [0x000000076ab00000, 0x00000007c0
  540. 000000, 0x00000007c0000000)
  541.   eden space 1200128K, 100% used [0x000000076ab00000,0x00000007b3f00000,0x000000
  542. 07b3f00000)
  543.   from space 97792K, 10% used [0x00000007b3f00000,0x00000007b48944d0,0x00000007b
  544. 9e80000)
  545.   to   space 95232K, 0% used [0x00000007ba300000,0x00000007ba300000,0x00000007c0
  546. 000000)
  547. ParOldGen       total 2796544K, used 50174K [0x00000006c0000000, 0x000000076ab0
  548. 0000, 0x000000076ab00000)
  549.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c30ff9c8,0x000000
  550. 076ab00000)
  551. Metaspace       used 69049K, capacity 71376K, committed 71552K, reserved 111206
  552. 4K
  553.   class space    used 7972K, capacity 8461K, committed 8576K, reserved 1048576K
  554. Event: 36688.584 GC heap after
  555. Heap after GC invocations=13 (full 3):
  556. PSYoungGen      total 1305088K, used 9729K [0x000000076ab00000, 0x00000007c0000
  557. 000, 0x00000007c0000000)
  558.   eden space 1209856K, 0% used [0x000000076ab00000,0x000000076ab00000,0x00000007
  559. b4880000)
  560.   from space 95232K, 10% used [0x00000007ba300000,0x00000007bac804c0,0x00000007c
  561. 0000000)
  562.   to   space 92672K, 0% used [0x00000007b4880000,0x00000007b4880000,0x00000007ba
  563. 300000)
  564. ParOldGen       total 2796544K, used 50182K [0x00000006c0000000, 0x000000076ab0
  565. 0000, 0x000000076ab00000)
  566.   object space 2796544K, 1% used [0x00000006c0000000,0x00000006c31019c8,0x000000
  567. 076ab00000)
  568. Metaspace       used 69049K, capacity 71376K, committed 71552K, reserved 111206
  569. 4K
  570.   class space    used 7972K, capacity 8461K, committed 8576K, reserved 1048576K
  571. }
  572. Deoptimization events (10 events):
  573. Event: 12281.446 Thread 0x00007f1f7cb62800 Uncommon trap: reason=unreached actio
  574. n=reinterpret pc=0x00007f2195f964f0 method=com.mysql.cj.result.DefaultColumnDefi
  575. nition.findColumn(Ljava/lang/String;ZI)I @ 28
  576. Event: 13726.994 Thread 0x00007f1f74001000 Uncommon trap: reason=unreached actio
  577. n=reinterpret pc=0x00007f2196c65958 method=java.util.concurrent.ScheduledThreadP
  578. oolExecutor$DelayedWorkQueue.take()Ljava/util/concurrent/RunnableScheduledFuture
  579. ; @ 59
  580. Event: 14951.443 Thread 0x00007f1f7cb62800 Uncommon trap: reason=range_check act
  581. ion=make_not_entrant pc=0x00007f21966609f0 method=java.util.DualPivotQuicksort.s
  582. ort([IIIZ)V @ 56
  583. Event: 14951.507 Thread 0x00007f1f543cf800 Uncommon trap: reason=unreached actio
  584. n=reinterpret pc=0x00007f2196a0fad0 method=io.netty.util.internal.shaded.org.jct
  585. ools.queues.MpscArrayQueue.poll()Ljava/lang/Object; @ 28
  586. Event: 14951.507 Thread 0x00007f1f543cf800 Uncommon trap: reason=unreached actio
  587. n=reinterpret pc=0x00007f2196196cf8 method=io.netty.buffer.PooledByteBuf.interna
  588. lNioBuffer()Ljava/nio/ByteBuffer; @ 6
  589. Event: 16841.448 Thread 0x00007f1f543cf800 Uncommon trap: reason=unreached actio
  590. n=reinterpret pc=0x00007f21965db2ec method=java.util.concurrent.locks.AbstractQu
  591. euedSynchronizer.doReleaseShared()V @ 69
  592. Event: 43243.574 Thread 0x00007f1f54408800 Uncommon trap: reason=unreached actio
  593. n=reinterpret pc=0x00007f21959945c4 method=com.jd.ump.profiler.util.MessagesStor
  594. e$WriteLog2File.run()V @ 22
  595. Event: 43243.574 Thread 0x00007f1f54410800 Uncommon trap: reason=unreached actio
  596. n=reinterpret pc=0x00007f21959945c4 method=com.jd.ump.profiler.util.MessagesStor
  597. e$WriteLog2File.run()V @ 22
  598. Event: 43243.575 Thread 0x00007f1f5440f800 Uncommon trap: reason=unreached actio
  599. n=reinterpret pc=0x00007f21959945c4 method=com.jd.ump.profiler.util.MessagesStor
  600. e$WriteLog2File.run()V @ 22
  601. Event: 43243.575 Thread 0x00007f1f54418000 Uncommon trap: reason=unreached actio
  602. n=reinterpret pc=0x00007f21959945c4 method=com.jd.ump.profiler.util.MessagesStor
  603. e$WriteLog2File.run()V @ 22
  604. Internal exceptions (10 events):
  605. Event: 42812.465 Thread 0x00007f1f04001000 Exception <a 'java/net/SocketExceptio
  606. n'> (0x000000079fe54f30) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8
  607. u20/1074/hotspot/src/share/vm/prims/jni.cpp, line 716]
  608. Event: 42812.466 Thread 0x00007f1f04001000 Exception <a 'java/net/SocketExceptio
  609. n': Socket closed> (0x000000079fe57398) thrown at [/HUDSON/workspace/8-2-build-l
  610. inux-amd64/jdk8u20/1074/hotspot/src/share/vm/prims/jni.cpp, line 742]
  611. Event: 42813.148 Thread 0x00007f1f04001000 Exception <a 'java/net/SocketExceptio
  612. n'> (0x000000079fe578c0) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8
  613. u20/1074/hotspot/src/share/vm/prims/jni.cpp, line 716]
  614. Event: 42813.148 Thread 0x00007f1f04001000 Exception <a 'java/net/SocketExceptio
  615. n': Socket closed> (0x000000079fe59d28) thrown at [/HUDSON/workspace/8-2-build-l
  616. inux-amd64/jdk8u20/1074/hotspot/src/share/vm/prims/jni.cpp, line 742]
  617. Event: 42821.451 Thread 0x00007f1f7cb62800 Exception <a 'java/net/SocketExceptio
  618. n'> (0x000000079f1a5d90) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8
  619. u20/1074/hotspot/src/share/vm/prims/jni.cpp, line 716]
复制代码
二、排查问题的详细过程

当JVM 的初始化完成后,类在调用执行过程中,执行引擎会把字节码转为机器码,然后在操作系统中才能执行。在字节码转换为机器码的过程中,虚拟机中还存在着一道编译,那就是即时编译。
最初,JVM 中的字节码是由解释器( Interpreter )完成编译的,当虚拟机发现某个方法或代码块的运行特别频繁的时候,就会把这些代码认定为热点代码。
为了提高热点代码的执行效率,在运行时,即时编译器(JIT,Just In Time)会把这些代码编译成与本地平台相关的机器码,并进行各层次的优化,然后保存到内存中。
C1 编译器

C1 编译器是一个简单快速的编译器,主要的关注点在于局部性的优化,适用于执行时间较短或对启动性能有要求的程序,也称为Client Compiler,例如,GUI 应用对界面启动速度就有一定要求。
C2 编译器

C2 编译器是为长期运行的服务器端应用程序做性能调优的编译器,适用于执行时间较长或对峰值性能有要求的程序,也称为Server Compiler,例如,服务器上长期运行的 Java 应用对稳定运行就有一定的要求。
触发标准

在 HotSpot 虚拟机中,热点探测是 JIT 的触发标准。
热点探测是基于计数器的热点探测,采用这种方法的虚拟机会为每个方法建立计数器统计方法的执行次数,如果执行次数超过一定的阈值就认为它是“热点方法” 。虚拟机为每个方法准备了两类计数器:方法调用计数器(Invocation Counter)和回边计数器(Back Edge Counter)。在确定虚拟机运行参数的前提下,这两个计数器都有一个确定的阈值,当计数器超过阈值溢出了,就会触发 JIT 编译。
方法调用计数器

方法调用计数器用于统计方法被调用的次数,默认阈值在 C1 模式下是 1500 次,在 C2 模式在是 10000 次,可通过-XX: CompileThreshold来设定;而在分层编译的情况下-XX: CompileThreshold指定的阈值将失效,此时将会根据当前待编译的方法数以及编译线程数来动态调整。当方法计数器和回边计数器之和超过方法计数器阈值时,就会触发 JIT 编译器。
显然是定时任务一直在执行某一段程序代码,触发了JIT编译,所以JVM对该段代码进行JIT编译,但是在编译过程中出现了异常,导致JVM异常退出。
三、如何解决问题

既然知道了是由于热点代码执行次数过多触发了JIT编译,所以有两种解决方案
1:通过JVM命令进制对某个方法进行JIT编译,JVM相关配置命令如下
java -Xint -version ## 解释模式,输出interpreted mode
java –Xcomp -version ##编译模式,输出compiled mode
java -Xmixed -version ##混合模式,输出mixed mode
-XX:+PrintCompilation (输出jit编译信息)
-XX:CompileCommand=exclude,the/package/and/Class,methodName #判处指定的方法不做jit优化
-XX:CompileCommand='compileonly,java/lang/StringBuffer.*' #指定方法做编译
-XX:CompileThreshold=1000 #通过JIT编译器,将方法编译成机器码的触发阀值,可以理解为调用方法的次数,例如调1000次,将方法编译为机器码
2:考虑到之前使用老版本的mysql连接驱动,程序一直没有问题,所以对mysql驱动包进行降级,恢复到稳定版本,有问题的版本为spring-boot-2.1.6.RELEASE 依赖的mysql驱动
作者:京东零售 曹志飞
来源:京东云开发者社区 转载请注明来源

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4