-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Task] Add support for new event type jdk.ObjectAllocationSample #62
Comments
Great sure! I will look into it. Any guide on where to start? |
You'll need a sample application running JDK16+. [0] Collect a JFR file from that application and load it into jfr-datasource, and then see if the ObjectAllocationSample event shows up in query results. You can also use JMC or the |
Great I will check it out and start on this. |
I did a check on a Jfr Summary [...hiddden]
jdk.ObjectAllocationSample {
startTime = 22:01:25.094
objectClass = java.util.TreeMap (classLoader = bootstrap)
weight = 99.5 kB
eventThread = "RMI TCP Connection(97)-10.0.2.100" (javaThreadId = 86)
stackTrace = [
javax.management.openmbean.CompositeDataSupport.makeMap(String[], Object[]) line: 136
javax.management.openmbean.CompositeDataSupport.<init>(CompositeType, String[], Object[]) line: 119
com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$TabularMapping.toNonNullOpenValue(Object) line: 768
com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.toOpenValue(Object) line: 142
com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeMapping.toNonNullOpenValue(Object) line: 841
...
]
}
[...hiddden] Source: summary.txt Load Jfr and query/search $ http GET :8080/search | jq -c '.[] | select(contains("jdk.ObjectAllocationSample"))'
"jdk.ObjectAllocationSample.eventThread"
"jdk.ObjectAllocationSample.stackTrace"
"jdk.ObjectAllocationSample.objectClass"
"jdk.ObjectAllocationSample.weight" Looks like Datasource supports this type event. Any further work on this issue or maybe I miss anything? |
Great, thanks for checking. The next step would be to add it to the Grafana dashboard - at the time this issue was filed, the dashboard definition was in this project and only later was it moved to our customized Grafana image. |
Great thanks! I will look into how to do that and reference this issue :D |
Among the 4 fields above, I think we add "jdk.ObjectAllocationSample.weight" to Grafana Dashboard? Just not sure how to visualize the rest :\ |
The thread name and stack trace definitely don't seem like they will map well to the timeseries charts on the dashboard. Though, I don't think charting the |
Good idea :D I will see if we could how to define the graph as such. The first one probably sounds better. |
It sounds better, but it might be extremely difficult or impossible to read if there are very many different |
Right...How about...since Grafana allows a closer/bigger view when clicking on the panel, I guess we could follow the first option and somehow add a filter (not sure if supported)? |
If that can be done then sure, that sounds like it could be good. |
Unfortunately, per-panel-filter is not possible at the moment: grafana/grafana#8408 My idea now is:
Until above grafana feature is compeleted, not sure we can go with option 1 completely. Any thoughts @andrewazores? |
JDK 16 adds this (see https://bugs.openjdk.java.net/browse/JDK-8257602), essentially superseding the earlier TLAB event types. Would be great to have support for it here.
The text was updated successfully, but these errors were encountered: