RFR: 8356277: containers/docker/TestPids.java: Limit value 19128 is not accepted as unlimited

Jan Kratochvil jkratochvil at openjdk.org
Tue May 6 14:14:26 UTC 2025


When running the testcase in a VM with 16GB RAM it fails as systemd limits DefaultTasksMax based on available RAM.


test/hotspot/jtreg/containers/docker/TestPids.java
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Limit value 19128 is not accepted as unlimited, log line was [0.083s][trace][os,container] Maximum number of tasks is: 19128


DefaultTasksMax=28776 for RAM 24576MB
DefaultTasksMax=19128 for RAM 16384MB
DefaultTasksMax=1088 for RAM 1024MB

The testcase expects DefaultTasksMax>=20000.

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

Commit messages:
 - 8356277: containers/docker/TestPids.java: Limit value 19128 is not accepted as unlimited

Changes: https://git.openjdk.org/jdk/pull/25067/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25067&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8356277
  Stats: 59 lines in 1 file changed: 56 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/25067.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25067/head:pull/25067

PR: https://git.openjdk.org/jdk/pull/25067


More information about the hotspot-runtime-dev mailing list