You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "xu1009 (via GitHub)" <gi...@apache.org> on 2023/05/30 12:11:36 UTC
[GitHub] [skywalking-java] xu1009 opened a new pull request, #541: Support jdk17 zgc
xu1009 opened a new pull request, #541:
URL: https://github.com/apache/skywalking-java/pull/541
- [x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. https://github.com/apache/skywalking/issues/10870
- [x] Update the [`CHANGES` log](https://github.com/apache/skywalking-java/blob/main/CHANGES.md).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211551897
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
add a new zgcmodule for jdk 17 and keep ZGC Cycles and ZGC Pauses bean name in this module, when it is jdk17, set this module ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1571306567
@xu1009 As you have contributed dozens of features in Java agent, I think you are getting familiar with things here.
If you have interests to join committer team, and takes some responsibilities on PR review and release, ping me on slack.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1212954805
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/ZGCModule.java:
##########
@@ -18,27 +18,52 @@
package org.apache.skywalking.apm.agent.core.jvm.gc;
+import org.apache.skywalking.apm.network.language.agent.v3.GC;
+import org.apache.skywalking.apm.network.language.agent.v3.GCPhase;
+
import java.lang.management.GarbageCollectorMXBean;
+import java.util.LinkedList;
import java.util.List;
-public class ZGCModule extends GCModule {
+public class ZGCModule implements GCMetricAccessor {
+ private List<GarbageCollectorMXBean> beans;
+
+ private long lastNormalGCCount = 0;
+ private long lastNormalGCTime = 0;
public ZGCModule(List<GarbageCollectorMXBean> beans) {
- super(beans);
+ this.beans = beans;
}
@Override
- protected String getOldGCName() {
- return null;
- }
+ public List<GC> getGCList() {
+ List<GC> gcList = new LinkedList<GC>();
+ for (GarbageCollectorMXBean bean : beans) {
+ String name = bean.getName();
+ long gcCount = 0;
+ long gcTime = 0;
+ if (name.equals("ZGC")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
- @Override
- protected String getNewGCName() {
- return null;
- }
+ long time = bean.getCollectionTime();
+ gcTime = time - lastNormalGCTime;
+ lastNormalGCTime = time;
+ } else if (name.equals("ZGC Cycles")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
+ } else if (name.equals(" ZGC Pauses")) {
Review Comment:
@xu1009 Is this a bug?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211830640
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
it can not, if you add two new ZGCModule,in current project, just one can be active,so in GCModule, getNormalGCName just get one bean ZGC Cycles or ZGC Pauses, but gc count is from ZGC Cycles and gc pause time is from ZGC Pauses, i think it is not working
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1572047946
@wu-sheng can you invite me to the channel, i seach skywalking, it is no result, my slack account email is xu20161009@gmail.com
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1571460036
i have joined slack, i am new to it, what shoul i do next
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1571432391
> @wu-sheng i am very glad to join committer team, skywalking is very useful in our team,i am alson continue to contribute,
>
>
Please join the slack, I need some information to start the process. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] kezhenxu94 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "kezhenxu94 (via GitHub)" <gi...@apache.org>.
kezhenxu94 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1212944132
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/ZGCModule.java:
##########
@@ -18,27 +18,52 @@
package org.apache.skywalking.apm.agent.core.jvm.gc;
+import org.apache.skywalking.apm.network.language.agent.v3.GC;
+import org.apache.skywalking.apm.network.language.agent.v3.GCPhase;
+
import java.lang.management.GarbageCollectorMXBean;
+import java.util.LinkedList;
import java.util.List;
-public class ZGCModule extends GCModule {
+public class ZGCModule implements GCMetricAccessor {
+ private List<GarbageCollectorMXBean> beans;
+
+ private long lastNormalGCCount = 0;
+ private long lastNormalGCTime = 0;
public ZGCModule(List<GarbageCollectorMXBean> beans) {
- super(beans);
+ this.beans = beans;
}
@Override
- protected String getOldGCName() {
- return null;
- }
+ public List<GC> getGCList() {
+ List<GC> gcList = new LinkedList<GC>();
+ for (GarbageCollectorMXBean bean : beans) {
+ String name = bean.getName();
+ long gcCount = 0;
+ long gcTime = 0;
+ if (name.equals("ZGC")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
- @Override
- protected String getNewGCName() {
- return null;
- }
+ long time = bean.getCollectionTime();
+ gcTime = time - lastNormalGCTime;
+ lastNormalGCTime = time;
+ } else if (name.equals("ZGC Cycles")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
+ } else if (name.equals(" ZGC Pauses")) {
Review Comment:
Is this space ` ZGC Pauses` intentional?
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/ZGCModule.java:
##########
@@ -18,27 +18,52 @@
package org.apache.skywalking.apm.agent.core.jvm.gc;
+import org.apache.skywalking.apm.network.language.agent.v3.GC;
+import org.apache.skywalking.apm.network.language.agent.v3.GCPhase;
+
import java.lang.management.GarbageCollectorMXBean;
+import java.util.LinkedList;
import java.util.List;
-public class ZGCModule extends GCModule {
+public class ZGCModule implements GCMetricAccessor {
+ private List<GarbageCollectorMXBean> beans;
+
+ private long lastNormalGCCount = 0;
+ private long lastNormalGCTime = 0;
public ZGCModule(List<GarbageCollectorMXBean> beans) {
- super(beans);
+ this.beans = beans;
}
@Override
- protected String getOldGCName() {
- return null;
- }
+ public List<GC> getGCList() {
+ List<GC> gcList = new LinkedList<GC>();
+ for (GarbageCollectorMXBean bean : beans) {
+ String name = bean.getName();
+ long gcCount = 0;
+ long gcTime = 0;
+ if (name.equals("ZGC")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
- @Override
- protected String getNewGCName() {
- return null;
- }
+ long time = bean.getCollectionTime();
+ gcTime = time - lastNormalGCTime;
+ lastNormalGCTime = time;
+ } else if (name.equals("ZGC Cycles")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
+ } else if (name.equals(" ZGC Pauses")) {
Review Comment:
Is the leading space ` ZGC Pauses` intentional?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211811587
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
My point is, can't you build another two new `ZGCModule` implementations in `GCProvider`? And those two return new values of `getNormalGCName`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211854628
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
yes, the GCModule getGCList method is just universal for non zgc, zgc is special, i do it this way
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211519719
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
the zgc gc count needs be collected from ZGC Cycles bean
the zgc gc pause time needs be collected from ZGC Pauses bean
so the two bean name should be in one gc module and then get gc count and gc pause time from two bean when collect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1213082559
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/ZGCModule.java:
##########
@@ -18,27 +18,52 @@
package org.apache.skywalking.apm.agent.core.jvm.gc;
+import org.apache.skywalking.apm.network.language.agent.v3.GC;
+import org.apache.skywalking.apm.network.language.agent.v3.GCPhase;
+
import java.lang.management.GarbageCollectorMXBean;
+import java.util.LinkedList;
import java.util.List;
-public class ZGCModule extends GCModule {
+public class ZGCModule implements GCMetricAccessor {
+ private List<GarbageCollectorMXBean> beans;
+
+ private long lastNormalGCCount = 0;
+ private long lastNormalGCTime = 0;
public ZGCModule(List<GarbageCollectorMXBean> beans) {
- super(beans);
+ this.beans = beans;
}
@Override
- protected String getOldGCName() {
- return null;
- }
+ public List<GC> getGCList() {
+ List<GC> gcList = new LinkedList<GC>();
+ for (GarbageCollectorMXBean bean : beans) {
+ String name = bean.getName();
+ long gcCount = 0;
+ long gcTime = 0;
+ if (name.equals("ZGC")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
- @Override
- protected String getNewGCName() {
- return null;
- }
+ long time = bean.getCollectionTime();
+ gcTime = time - lastNormalGCTime;
+ lastNormalGCTime = time;
+ } else if (name.equals("ZGC Cycles")) {
+ long collectionCount = bean.getCollectionCount();
+ gcCount = collectionCount - lastNormalGCCount;
+ lastNormalGCCount = collectionCount;
+ } else if (name.equals(" ZGC Pauses")) {
Review Comment:
yes, i will fix it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1571426605
@wu-sheng i am very glad to join committer team, skywalking is very useful in our team,i am alson continue to contribute,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1571309524
And of course, you could keep it as a contributor, who only contributes codes when you want and have time.
Don't feel pressured to say NO.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng merged pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng merged PR #541:
URL: https://github.com/apache/skywalking-java/pull/541
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211535516
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
I mean we should have zgc version detection. Right now, keeping adding new methods seems not a good code practice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211637159
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
I don't have implementation preference as I don't know details enough.
Generally, don't add new methods for GCModule.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] xu1009 commented on a diff in pull request #541: Support jdk17 zgc
Posted by "xu1009 (via GitHub)" <gi...@apache.org>.
xu1009 commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211797397
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
gc time and count is calculated in GCModule. now the GCModule method getOldGCName, getNewGCName, getNormalGCName is for get bean name and collect metirc from the target bean.
Generally zgc just need one bean(bean name from getNormalGCName method) to collect the gc time and gc count
but jdk17 zgc need two beans to calculate,i can not use other three exists method get the bean.
now i have two ways when don't add new methods for GCModule
1. in GCModule, use string constant bean name not use method get it,i think it is strange
2. zgcmodule overwrite GCModule caluldate method and implementation itself. because zgc is different with other gc. the GCModule caluldate method is just universal for non zgc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1211841192
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
Then please override `public List<GC> getGCList` from `GCMetricAccessor` to create a new `ZGCModule`, then to build a new `List<GC>`. `lastNormalGCCount` and `lastNormalGCTime` could be simply removed as well.
That was why it was built in two layers of the abstract concept.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1212541220
##########
CHANGES.md:
##########
@@ -5,7 +5,7 @@ Release Notes.
8.17.0
------------------
-
+* Support Jdk17 ZGC metric collect
Review Comment:
```suggestion
* Support Jdk17 ZGC metric collect
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on a diff in pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#discussion_r1210298127
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/gc/GCModule.java:
##########
@@ -88,4 +98,12 @@ public List<GC> getGCList() {
protected abstract String getNewGCName();
protected abstract String getNormalGCName();
+
+ protected String getCycleGcBeanName() {
+ return null;
+ }
+
+ protected String getPauseGcBeanName() {
+ return null;
+ }
Review Comment:
I don't feel this is a good way. Couldn't you use an implementation to override `getNormalGCName`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-java] wu-sheng commented on pull request #541: Support jdk17 zgc
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #541:
URL: https://github.com/apache/skywalking-java/pull/541#issuecomment-1571746014
Could you ping me on the `#skywalking` channel? We are there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org