This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/skywalking-data-collect-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new bdc7af0 add some new thread metric and class metric to JVMMetric (#52)
bdc7af0 is described below
commit bdc7af0b8dcda9ee5c92ddeeb720f1e9662510a7
Author: Switch <[email protected]>
AuthorDate: Sun Jul 4 13:50:24 2021 +0800
add some new thread metric and class metric to JVMMetric (#52)
---
language-agent/JVMMetric.proto | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/language-agent/JVMMetric.proto b/language-agent/JVMMetric.proto
index 68aba27..0ea9248 100644
--- a/language-agent/JVMMetric.proto
+++ b/language-agent/JVMMetric.proto
@@ -46,6 +46,7 @@ message JVMMetric {
repeated MemoryPool memoryPool = 4;
repeated GC gc = 5;
Thread thread = 6;
+ Class clazz = 7;
}
message Memory {
@@ -84,9 +85,23 @@ enum GCPhrase {
OLD = 1;
}
+// See:
https://docs.oracle.com/javase/8/docs/api/java/lang/management/ThreadMXBean.html
message Thread {
- int64 liveCount = 1;
- int64 daemonCount = 2;
- int64 peakCount = 3;
+ int64 liveCount = 1;
+ int64 daemonCount = 2;
+ int64 peakCount = 3;
+ int64 newStateThreadCount = 4;
+ int64 runnableStateThreadCount = 5;
+ int64 blockedStateThreadCount = 6;
+ int64 waitingStateThreadCount = 7;
+ int64 timedWaitingStateThreadCount = 8;
+ int64 terminatedStateThreadCount = 9;
+}
+
+// See:
https://docs.oracle.com/javase/8/docs/api/java/lang/management/ClassLoadingMXBean.html
+message Class {
+ int64 loadedClassCount = 1;
+ int64 totalUnloadedClassCount = 2;
+ int64 totalLoadedClassCount = 3;
}