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. > > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). @ArnoZeller Your change (at version 71d0377d54c9f804d241736924544834173e9932) is now ready to be sponsored by a Committer. ------------- PR Comment: https://git.openjdk.org/jdk/pull/30423#issuecomment-4229266886
