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

SendaoYan syan at openjdk.org
Thu Jun 12 02:10:33 UTC 2025


On Tue, 6 May 2025 14:06:54 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:

> 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.

test/hotspot/jtreg/containers/docker/TestPids.java line 103:

> 101: 
> 102:     private static String runSystemctlShow() throws IOException {
> 103:         ProcessBuilder pb = new ProcessBuilder("systemctl", "show", "--property=DefaultTasksMax");

On windows-cygwin, there is no `systemctl` command.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25067#discussion_r2141412173


More information about the hotspot-runtime-dev mailing list