Integrated: 8338890: Add monitoring/management interface for the virtual thread scheduler
Alan Bateman
alanb at openjdk.org
Tue Sep 10 07:26:14 UTC 2024
On Mon, 2 Sep 2024 12:25:05 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> This PR proposes to add a JDK-specific monitoring and management interface for the virtual thread scheduler. The interface is named VirtualThreadSchedulerMXBean and allows JMX based tooling monitor/manage the scheduler's target parallelism and monitor thread counts.
>
> The JDK 5/6 era JDK-specific management interfaces are in jdk.management/com.sun.management. The proposal here is to start afresh in the jdk.management package, thus establishing a "new home" for JDK-specific management interfaces going forward.
>
> jdk.test.lib.thread.VThreadRunner is test infrastructure used by several tests to set or ensure some level of parallelism. This is changed from using deep reflection to using the MXBean to access the target parallelism, which requires changes to the `@modules` tag tests in a number of tests (some tests no longer need to open java.base/java.lang).
>
> (The changes proposed here have been in the loom repo for some time. A related command for the jcmd tool is also in that repo and will be proposed separately).
>
> Testing: tier1-4
This pull request has now been integrated.
Changeset: 7e2bcf6d
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7e2bcf6d0010161dfbc50da4031e65cb5482fb77
Stats: 728 lines in 23 files changed: 675 ins; 17 del; 36 mod
8338890: Add monitoring/management interface for the virtual thread scheduler
Reviewed-by: kevinw
-------------
PR: https://git.openjdk.org/jdk/pull/20816
More information about the serviceability-dev
mailing list