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. The fix looks reasonable. Thanks for good explanation. ------------- Marked as reviewed by lmesnik (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/30423#pullrequestreview-4048086032
