I'm now fighting to optimize java memory consumption on the portal cluster nodes and I've have an interesting observation. It seems that garbage collection process on one node somehow triggers garbage collections on other nodes.
Here is graph for heap memory utilization
Hello Anatoly,
I assume you are running DX on the IBM J9 (afaik other platforms are not supprted anymore) and there I'm not aware of any feature that a GC on one JVM triggers a GC on another JVM.
As you are posting that I guess that this is not the first and only occurrence of this behavior that all cluster members are running a GC at the same time? If you look at the verboseGC output files of each cluster members at that time - what is the GC type at this time? Maybe a GC triggered by an application function (a System.gc() call)? Which requests do you see at that time?
Do you get any OOM messages logged? Do you see any huge heap allocation requests for the JVMs?
Finally - do you have -XX:MaxDirectMemorySize configured for you JVM?
AFAIK there are no System.gc() calls in our code. Also we do not experience any OOM events. We do have -XX:MaxDirectMemorySize=1G configured for all JVMs
Ok, nevertheless I’d suggest to check the verboseGc logs to double check. Thanks.