Integrated: 8118: Add user configuration for delay between JVM discovery and attachment
Alex Macdonald
aptmac at openjdk.org
Thu Oct 12 14:21:08 UTC 2023
On Mon, 28 Aug 2023 19:34:56 GMT, Alex Macdonald <aptmac at openjdk.org> wrote:
> This PR addresses JMC-8118 [0], in which it'd be nice to be able to specify a time delay between when a JVM is discovered and when JVM is attached to (for the JvmDescriptor creation). I've placed this option into the Preferences menu at Preferences > JDK Mission Control > JVM Browser > Local, with a maximum delay time of 1 minute and a default time of 0ms (current).
>
> There is currently an issue where if a newly launched JVM is not fully set-up by the time JMC discovers and attaches to it (via JvmDescriptor creation), then the target JVM could through an error and/or crash on startup. For example, if an application uses a custom logging manager that hasn't been fully initialized prior to JvmDescriptor creation, it may/will just crash.
>
> Example:
> 
>
> [0] https://bugs.openjdk.org/browse/JMC-8118
This pull request has now been integrated.
Changeset: a22d755c
Author: Alex Macdonald <aptmac at openjdk.org>
URL: https://git.openjdk.org/jmc/commit/a22d755c857126d1d4cb8b2926a315039fbf9f1a
Stats: 55 lines in 6 files changed: 55 ins; 0 del; 0 mod
8118: Add user configuration for delay between JVM discovery and attachment
Reviewed-by: hirt
-------------
PR: https://git.openjdk.org/jmc/pull/513
More information about the jmc-dev
mailing list