Skip to content

Commit

Permalink
Add docs for VirtualThreadMetrics
Browse files Browse the repository at this point in the history
See #5067
  • Loading branch information
jonatan-ivanov committed Oct 28, 2024
1 parent 1b2ae99 commit 382c8c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/reference/jvm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ new JvmMemoryMetrics().bindTo(registry); <2>
new JvmGcMetrics().bindTo(registry); <3>
new ProcessorMetrics().bindTo(registry); <4>
new JvmThreadMetrics().bindTo(registry); <5>
new VirtualThreadMetrics().bindTo(registry); <6>
----
<1> Gauges loaded and unloaded classes.
<2> Gauges buffer and memory pool utilization.
<3> Gauges max and live data size, promotion and allocation rates, and the number of times the GC pauses (or concurrent phase time in the case of CMS).
<4> Gauges current CPU total and load average.
<5> Gauges thread peak, the number of daemon threads, and live threads.
<6> Measures the duration (and counts the number of events) of virtual threads being pinned; also counts the number of events when starting or unparking a virtual thread failed.

Micrometer also provides a meter binder for `ExecutorService`. You can instrument your `ExecutorService`, as follows:

Expand Down

0 comments on commit 382c8c2

Please sign in to comment.