19 Nov 2024 04:38 PM - edited 19 Nov 2024 04:42 PM
In our host's process, we can find the heap memory chart under JVM metrics tab.
It has 3 metrics:
May I know wow can I create the same? Because I would like to add into a dashboard for monitoring along with other charts.
I tried the built-in metric in data explorer, however, the value is never the same as the screenshot above.
It was showing around 300MiB - 500 MiB. Not even close to 2.5GiB.
Appreciate some pointers here. Thank you!
19 Nov 2024 04:44 PM
Hi!
You can easily create a dashboard and query JVM metrics through the Dynatrace Data Explorer. Here are all the possible options for JVM metrics
builtin:tech.jvm.classes.loaded | JVM loaded classes |
builtin:tech.jvm.classes.total | JVM total number of loaded classes |
builtin:tech.jvm.classes.unloaded | JVM unloaded classes |
builtin:tech.jvm.memory.gc.activationCount | Garbage collection total activation count |
builtin:tech.jvm.memory.gc.collectionTime | Garbage collection total collection time |
builtin:tech.jvm.memory.gc.suspensionTime | Garbage collection suspension time |
builtin:tech.jvm.memory.pool.collectionCount | Garbage collection count |
builtin:tech.jvm.memory.pool.collectionTime | Garbage collection time |
builtin:tech.jvm.memory.pool.committed | JVM heap memory pool committed bytes |
builtin:tech.jvm.memory.pool.max | JVM heap memory max bytes |
builtin:tech.jvm.memory.pool.used | JVM heap memory pool used bytes |
builtin:tech.jvm.memory.runtime.free | JVM runtime free memory |
builtin:tech.jvm.memory.runtime.max | JVM runtime max memory |
builtin:tech.jvm.memory.runtime.total | JVM runtime total memory |
builtin:tech.jvm.memory.memAllocationBytes | Process memory allocation bytes |
builtin:tech.jvm.memory.memAllocationCount | Process memory allocation objects count |
builtin:tech.jvm.memory.memSurvivorsBytes | Process memory survived objects bytes |
builtin:tech.jvm.memory.memSurvivorsCount | Process memory survived objects count |
builtin:tech.jvm.threads.avgActiveThreadCount | JVM average number of active threads |
builtin:tech.jvm.threads.avgInactiveThreadCount | JVM average number of inactive threads |
builtin:tech.jvm.threads.count | JVM thread count
|
Go to the data explorer and type in the metric and filter down to your service. Do the same with all the JVM metrics you'd like to query.
When you created the chart hit "Pin to Dashboard"
19 Nov 2024 05:15 PM
Hello Nick, thanks for your post. I'm aware of the method you mentioned. Still appreciate your time.
I found the issue for not accurate value (showed much lesser JVM memory) I mentioned above.
It is because I can't use "Auto". I should use "Sum" instead in the equation. Then it is the same as per the host's process JVM.
19 Nov 2024 07:02 PM
Split by poolname and filter poolname:JavaHeap on builtin:tech.jvm.memory.pool.committed