RFR: 8338890: Add monitoring/management interface for the virtual thread scheduler [v2]
Alan Bateman
alanb at openjdk.org
Thu Sep 5 06:24:08 UTC 2024
> This PR proposes to add a JDK-specific monitoring and management interface for the virtual thread scheduler. The interface is named [VirtualThreadSchedulerMXBean](https://download.java.net/java/early_access/loom/docs/api/jdk.management/jdk/management/VirtualThreadSchedulerMXBean.html) 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).
Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
- Sync up from loom repo
- Merge
- Sync up from loom repo
- Initial commit
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/20816/files
- new: https://git.openjdk.org/jdk/pull/20816/files/fe1d7de6..1ce1a6ac
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=20816&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=20816&range=00-01
Stats: 4914 lines in 216 files changed: 2632 ins; 1088 del; 1194 mod
Patch: https://git.openjdk.org/jdk/pull/20816.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20816/head:pull/20816
PR: https://git.openjdk.org/jdk/pull/20816
More information about the serviceability-dev
mailing list