Memory filling up



We have applied the tunes described in this document and we are seeing the memory of our server filling up and not being released even after stopping all broadcasters and viewers. We are only able to release memory restarting the application.

-XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -XX:NewSize=4096m -XX:MaxNewSize=4096m

Server Memory: 32GB

Any recommendation?

Thank you,


Staff member
Good day.
Please update JDK to 12 or 14 and configure ZGC (you can skip hugepages setup, it is not necessary).
You can also switch from glibc memory allocator to jemalloc as described here. jemalloc library tries to return free memory to the system while glibc keeps memory for subsequent allocations. Note that in this case you should update JDK to 14 to prevent possible thread deadlocks.