RFR: JDK-8255450: runtime/ThreadCountLimit.java causes high system load

Thomas Stuefe stuefe at openjdk.java.net
Tue Oct 27 12:33:24 UTC 2020


Hi,

this is rather trivial:

runtime/ThreadCountLimit.java, introduced with JDK-8222671, caused problems on our test machines (JDK-8222671 is private and cannot be accessed from outside Oracle, so all I know comes from its review thread [1]).

The test creates massive amount of threads in order to hit some OS limit which would manifest as an OOM. This affects unrelated processes, unless the test is executed in a jail or with specific limits set.

This test probably should be executed with a specific limit, but for now lets mark it as @stress and remove it from tier1.

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

Commit messages:
 - JDK-8255450

Changes: https://git.openjdk.java.net/jdk/pull/876/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=876&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255450
  Stats: 2 lines in 2 files changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/876.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/876/head:pull/876

PR: https://git.openjdk.java.net/jdk/pull/876


More information about the hotspot-dev mailing list