On Wed, 25 Mar 2026 11:15:40 GMT, Arno Zeller <[email protected]> wrote:
> In this test, 10 JVMs are launched, each with a unique ID argument. The test > then iterates over all started VM IDs and calls releaseStarted(Integer id) > for each. In releaseStarted the test iterates over all 10 expected processes, > and for every candidate process hasMainArgs(...) retries up to 10 times to > read the main arguments. If the arguments are reported as "Unknown" it sleeps > one second. > > In the worst case, this can add up to about 100 seconds of waiting for a > single found VM ID when an unrelated process has inaccessible main arguments, > which we have seen on one of our test machines. > > I suggest reading the main arguments only once per VM ID, then comparing that > single result against the 10 expected unique IDs. @ArnoZeller we already had [JDK-8367748](https://bugs.openjdk.org/browse/JDK-8367748) open to record failures of this test. ------------- PR Comment: https://git.openjdk.org/jdk/pull/30423#issuecomment-4152309346
