RFR: 8368668: Several vmTestbase/vm/gc/compact tests timed out

Leonid Mesnik lmesnik at openjdk.org
Thu Sep 25 15:10:11 UTC 2025


On Thu, 25 Sep 2025 13:42:12 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> Several vmTestbase/vm/gc/compact tests was observed timed out after JDK-8260555 set the default jtreg timeout factor to 1. The test log shows that test detect 448 threads and 30GB(32178700288) memory. Seems that this stress make tests can not finish in 120s.
> 
> This PR add '-Xmx2G' to decrease the test stress and make these tests run success steady.

Changes requested by lmesnik (Reviewer).

test/hotspot/jtreg/vmTestbase/vm/gc/compact/Compact_InternedStrings_Strings/TestDescription.java line 41:

> 39:  * @run main/othervm
> 40:  *      -XX:-UseGCOverheadLimit
> 41:  *      -Xmx2G

It is not he good idea to fix heap size for the tests. We run them concurrently and heap size might be smaller then 2GB. 
The test should be executed for 30 seconds only and complete in 2 minutes.
If you execute test with some specific configuration - it might be needed to add custom timeout factor. 
Can you please share the host and run confguration for failures?

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

PR Review: https://git.openjdk.org/jdk/pull/27488#pullrequestreview-3268259045
PR Review Comment: https://git.openjdk.org/jdk/pull/27488#discussion_r2379490864


More information about the hotspot-gc-dev mailing list