Why is JVM process RAM getting bigger (1GB+) even if my heap and non-heap are capped at 128M?

148 Views Asked by At

I have got a docker container running a java process which the Resident Size (RSS) keeps getting up (1GB+), even if the MaxHeapMemory is set to 128m. There are no threads being created (they are 32), the are no classes being loaded (~5000).

I am using JNI to communicate to Chromium Embedded Framework (jcef)

Profiling the JVM, it consumes 128M for Heap and about 50M for Non-Heap.

It takes about a day to get to 1GB, however it never stops growing.

Curious thing: if I run it on OSX without docker, the memory stays fine.

Anyone have had this problem before? Any bug in libc for instance? Any hint?

Best,

0

There are 0 best solutions below