Used memory in Java melody means what?

357 views
Skip to first unread message

Anu

unread,
Feb 17, 2019, 9:45:07 AM2/17/19
to javamelody
Hi Team,

I have been using the java memody for monitoring my Jenkins instance.  Could you please let me know exactly what parameter it consider for used memory.  If I check in linux server whatever value i'm getting is not matching with the graph value.  Please help me to understand and also using which command in my linux server I can get the exact value.

evernat

unread,
Feb 17, 2019, 4:45:11 PM2/17/19
to javamelody
Hi Anu,

"Used memory" in javamelody is used memory in the heap.
It is different than allocated memory, which is sometimes different than max heap memory.
It is also different than non-heap memory.
And all these are different than RSS in Linux (lazy allocation, paging, ...)

There are books on this. But you can start with this small article by Yourkit:

bye,
Emeric

Anusha Hegde

unread,
Feb 18, 2019, 4:42:27 AM2/18/19
to javam...@googlegroups.com
Thanks Emeric for you reply.  However I'm not getting the exact Java heap memory used.  I tried with command like jmap -heap pid and jstat. How do I validate whatever value is displayed in Java melody is correct.

Please help me here.

Regards,
Anusha

--

---
You received this message because you are subscribed to the Google Groups "javamelody" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javamelody+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

evernat

unread,
Feb 18, 2019, 6:11:19 PM2/18/19
to javamelody
Hi,

If you want to compare, you can do that by having a graph of heap memory for an hour, in jconsole or in jvisualvm for example.

bye,
Emeric


Le lundi 18 février 2019 10:42:27 UTC+1, Anu a écrit :
Thanks Emeric for you reply.  However I'm not getting the exact Java heap memory used.  I tried with command like jmap -heap pid and jstat. How do I validate whatever value is displayed in Java melody is correct.

Please help me here.

Regards,
Anusha

Anusha Hegde

unread,
Feb 20, 2019, 5:15:09 AM2/20/19
to javam...@googlegroups.com
Thank you Emeric

--
Reply all
Reply to author
Forward
0 new messages