corretto-17 icon indicating copy to clipboard operation
corretto-17 copied to clipboard

Fatal Error with G1

Open sigJoe opened this issue 10 months ago • 2 comments

Describe the bug

Recently upgraded a web application from Java 8 to Java 17 deployed via AWS Beanstalk, and we're now intermittently seeing JVM crashes due with the error shown below. This has occurred 14 times between March 27 and April 2, which represents <5% of the instances.

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (g1VMOperations.cpp:118), pid=232604, tid=249671
#  guarantee(target_pause_time_ms > 0.0) failed: target_pause_time_ms = 0.000000 should be positive
#
# JRE version: OpenJDK Runtime Environment Corretto-17.0.10.8.1 (17.0.10+8) (build 17.0.10+8-LTS)
# Java VM: OpenJDK 64-Bit Server VM Corretto-17.0.10.8.1 (17.0.10+8-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x750598]  VM_G1CollectForAllocation::VM_G1CollectForAllocation(unsigned long, unsigned int, GCCause::Cause, double)+0x6c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/tomcat9/core.232604)
#
# JFR recording file will be written. Location: /usr/share/tomcat9/hs_err_pid232604.jfr
#
# An error report file with more information is saved as:
# /usr/share/tomcat9/hs_err_pid232604.log

To Reproduce

Unable to reproduce on demand.

Expected behavior

No fatal error

Platform information

OS: Amazon Linux 2023
Version Corretto-17.0.10.8.1 
AWS Beanstalk Solution Stack: Tomcat 9 with Corretto 17 running on 64bit Amazon Linux 2023/5.1.5

Additional context

sigJoe avatar Apr 02 '24 18:04 sigJoe

Tentative solution is updating to 17.0.11.9.1, although at a glance I don't see any obvious code changes that might have addressed the issue.

sigJoe avatar Apr 19 '24 14:04 sigJoe

Hi, thanks for submitting the report.

Could you try to use the latest Corretto 17.0.11.9.1? If the issue persists, could you upload the hs_err file? Thanks,

rgithubli avatar Jun 03 '24 21:06 rgithubli