Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some new thread metric and class metric to JVMMetric #52

Merged
merged 6 commits into from Jul 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 18 additions & 3 deletions language-agent/JVMMetric.proto
Expand Up @@ -46,6 +46,7 @@ message JVMMetric {
repeated MemoryPool memoryPool = 4;
repeated GC gc = 5;
Thread thread = 6;
Class clazz = 7;
}

message Memory {
Expand Down Expand Up @@ -84,9 +85,23 @@ enum GCPhrase {
OLD = 1;
}

// See: https://docs.oracle.com/javase/8/docs/api/java/lang/management/ThreadMXBean.html
message Thread {
wu-sheng marked this conversation as resolved.
Show resolved Hide resolved
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 {
wu-sheng marked this conversation as resolved.
Show resolved Hide resolved
int64 loadedClassCount = 1;
int64 totalUnloadedClassCount = 2;
int64 totalLoadedClassCount = 3;
}