当解释器发现热点方法时会调用 CompilerBroker::comple_method()向编译任务队列投递一个编译任务(CompileTask),然后C2编译器线程会在发现任务队列有编译任务时唤醒,拉取编译任务并进入JIT编译器。目光转向C2编译线程(C2 CompilerThread),它最开始阻塞在编译任务队列,在发现编译任务后唤醒,接着经过如代码清单9-1所示的
Java crash in C2 compiler thread: Raw # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (loopnode.hpp:628), pid=4252, tid=0x00007f4d78ee6700 # guarantee(n != NULL) failed: No Node. # # JRE version: OpenJDK Runtime Environment (8.0_322-b06...
https://blog.csdn.net/chenxiusheng/article/details/74007750 规格严格-功夫到家 粉丝-152关注 -971 +加关注
异常线程的堆栈如下: "C2 CompilerThread9" #48 daemon prio=9 os_prio=0 tid=0x00007f45f0b80000 nid=0x188 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE 补充描述:我的应用类型为后台接口服务,系统秒级调用峰值在10W+,JRE版本如下: java version "1.8.0_60" Java(TM) SE Runtime Env...
你可以考虑通过使用参数'-XX:CICompilerCount'增加C2编译器线程。你可以捕获线程转储并将其上传到fastThread等工具,在那里你可以看到C2编译器线程的数量。如果你看到较少的C2编译器线程数,而你有更多的CPU处理器/核,你可以通过指定'-XX:CICompilerCount=8'参数增加C2编译器线程数。
C2 CompilerThread9 长时间占用CPU解决方案 一、问题描述 近期在进行日常巡检时发现,线上部分应用服务器的CPU突然比以往高出很多,经过登录机器排查确认是C2 CompilerThread9线程始终长时间运行消耗了CPU。 排查步骤在上篇博文有记录总结,地址:排查CPU异常步骤_u012538947的专栏...
Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (11.0.12+7, mixed mode, tiered, compressed oops, g1 gc, linux-amd64) Problematic frame: V [libjvm.so+0xc393a0] Node::uncast() const+0x0 Current thread (0x00007f7b4cfef000): JavaThread "C2 CompilerThread0" daemon [_thread_...
[5] C2Compiler::compile_method(0x2daa8, 0x7237fa0c, 0x143f3730, 0xffffffff, 0xfefe4788, 0xff0ea000), at 0xfe9a73d4 [6] CompileBroker::invoke_compiler_on_method(0x96d720, 0xe7c00, 0xa2f, 0x0, 0xfe9a7358, 0x1ac800), at 0xfe9a8168 [7] CompileBroker::compiler_thread_loop(...
_compiler_on_method(CompileTask*)+0xd60 V [libjvm.so+0x91c788] CompileBroker::compiler_thread_loop()+0x6c8 V [libjvm.so+0x16ca5cc] JavaThread::thread_main_inner()+0x21c V [libjvm.so+0x16d0310] Thread::call_run()+0x100 V [libjvm.so+0x13d49a6] thread_native_entry(Thread*)+...
--- T H R E A D --- Current thread (0x0000015ab9877000): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=22420, stack(0x000000286bf00000,0x000000286c000000)] Current CompileTask: C2:9699782 41389 4 javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager::...