Skip to content

Commit

Permalink
* stats: dump virtual threads on high cpu
Browse files Browse the repository at this point in the history
Signed-off-by: neo <[email protected]>
  • Loading branch information
neowu committed Dec 7, 2023
1 parent bee33bf commit 134219a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Change log

### 9.0.2 (12/7/2023 - )

* stats: dump virtual threads on high cpu

### 9.0.1 (12/01/2023 - 12/7/2023)

* thread: updated default virtual thread scheduler parallelism to at least 16
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply(plugin = "project")

subprojects {
group = "core.framework"
version = "9.0.1"
version = "9.0.2"

repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private void collectCPUUsage(Stats stats) {
boolean highUsage = stats.checkHighUsage(usage, highCPUUsageThreshold, "cpu");
if (highUsage) {
stats.info("thread_dump", Diagnostic.thread());
stats.info("virtual_thread_dump", Diagnostic.virtualThread());
}
}
}

0 comments on commit 134219a

Please sign in to comment.