You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Java 17 Spring Boot项目运行突发崩溃,报ConcurrentHashTable内部错误求助

解决Spring Boot项目启动后崩溃的JVM内部错误问题

你遇到的是Microsoft OpenJDK 17.0.9版本的JVM内部Bug,错误根源在JVM的concurrentHashTable实现逻辑上,属于底层虚拟机层面的问题,而非业务代码问题。

解决方案

  • 升级OpenJDK版本:该Bug在Microsoft OpenJDK 17.0.10及后续LTS版本中已被修复,直接升级到对应版本即可解决。也可以切换到其他稳定的OpenJDK发行版(如Adoptium Temurin 17),规避该版本的已知问题。
  • 临时规避(无法升级时):如果暂时无法升级JDK,可尝试切换垃圾收集器,禁用G1 GC。在项目启动参数中添加:
    -XX:+UseParallelGC
    
  • 核心转储排查(可选):若需要进一步确认问题细节,可执行ulimit -c unlimited开启核心转储,重启项目后获取核心文件,但针对该已知Bug,升级版本是最高效的解决方式。

错误日志详情

A fatal error has been detected by the Java Runtime Environment:

  Internal Error (concurrentHashTable.inline.hpp:676), pid=10956, tid=41731
  fatal error: aux_index does not match even or odd indices

 JRE version: OpenJDK Runtime Environment Microsoft-8552009 (17.0.9+8) (build 17.0.9+8-LTS)
 Java VM: OpenJDK 64-Bit Server VM Microsoft-8552009 (17.0.9+8-LTS, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
 No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

 If you would like to submit a bug report, please visit:
   https://github.com/microsoft/openjdk/issues

内容的提问来源于stack exchange,提问作者Anli Liu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 14:25:06