RFR: 8377347: jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java intermittent OOME [v3]

Albert Mingkun Yang ayang at openjdk.org
Wed Feb 11 14:42:45 UTC 2026


On Wed, 11 Feb 2026 09:34:46 GMT, SendaoYan <syan at openjdk.org> wrote:

>> Hi all,
>> 
>> Test test/jdk/jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java intermittent throw OOME on some specific mahcines. If I catch the OOM error wrapper the memory allocation loop, the Events.fromRecording still report OOM error. 
>> The max memory heap was seted to 32M, this seems too small for ZGC to workly normally on some specific machines, The gc log shows that ZGC unable to recliam the heap memory.
>> 
>> This PR change  include:
>> 
>> 1. the -Xmx seted to 64G
>> 2. increase the memory allocation loop count from 100 to 1000, this make sure the jfr evnet always happened. With the original count 100, the jfr event numbers couned to zero intermittely.
>> 
>> The test jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java run 10k times all passed after this PR.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove unnecessary try-catch(OOME)

> ... With the original count 100, the jfr event numbers couned to zero intermittely.

Is that also observed with 64M heap size, or just the original 32M heap size?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29601#issuecomment-3884864245


More information about the hotspot-gc-dev mailing list