Memory filling up

Michael

Member
Hello,

We have applied the tunes described in this document https://docs.flashphoner.com/displa...MemorymanagementinJava-Garbagecollectortuning 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.

wcs-core.properties:

-Xmx16g
-Xms16g
-XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -XX:NewSize=4096m -XX:MaxNewSize=4096m
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=70
-XX:+ExplicitGCInvokesConcurrent
-Dsun.rmi.dgc.client.gcInterval=36000000000
-Dsun.rmi.dgc.server.gcInterval=36000000000

Server Memory: 32GB

Any recommendation?

Thank you,
 

Max

Administrator
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.
 
Top