Browse Source
At the time of writing, VirtualThreadSchedulerMXBean does not work in a GraalVM native image (oracle/graal#12802). An attempt to retrieve the MXBean results in an IllegalArgumentException being thrown. This causes a failure when serializing ProcessInfo to JSON, breaking the Actuator's info endpoint when management.info.process.enabled=true. This commit updates ProcessInfo to be more defensive when working with the MXBean. Now, if any exception is thrown, null will be returned for the virtual threads info. This approach should allow the functionality to work whenever a fix is made in Graal without requiring further changes in Boot. Fixes gh-488103.5.x
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue