I tried getting the histo as you suggested
jmap -histo:live ${PID} However, it only shows the histo of the live objects https://gist.github.com/anonymous/669eae8128c9a11f72fcdc1f82270460. Also the total memory from the histogram shows to be around 5GB. However, if I look at the total process memory for the java process using the top command it is more than 30 GB. On Tue, Mar 13, 2018 at 6:33 PM, Gopal Vijayaraghavan <gop...@apache.org> wrote: > > It also shows that the process is consuming more than 30GB. However, it > is not clear what is causing the process to consume more than 30GB. > > The Xmx only applies to the heap size, there's another factor that is > usually ignored which are the network buffers and compression buffers used > by Java. > > Most of these are only collected on a full GC pause (or OS memory > pressure, I think). > > Try running a jmap -histo:live and see what happens to the extra buffers > on that list. > > Cheers, > Gopal > > >