cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create chart about JVM memory allocation and used for dashboard

cleoleeps1
Visitor

In our host's process, we can find the heap memory chart under JVM metrics tab.

It has 3 metrics:

  • Committed memory
  • Used Memory
  • Garbage collection time

cleoleeps1_0-1732034190457.png

 

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.

cleoleeps1_0-1732034526543.png

 

Appreciate some pointers here. Thank you!

3 REPLIES 3

Nick-Montana
Helper

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"

 

NickMontana_0-1732034594420.pngNickMontana_1-1732034615561.png

 

cleoleeps1
Visitor

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.

Split by poolname and filter poolname:JavaHeap on builtin:tech.jvm.memory.pool.committed

Featured Posts