I am using my CoreOS just to run single container of unifi cloud controller. But I think there is a problem with my installation because the memory usage will raised over time until the server become unresponsive at all. Here is the screenshot of top memory usage:
Both are most likely part of the container you are running as they are not installed in Fedora CoreOS by default. Looks like you have a memory leak issue within one of application that is being ran as part of the container. You can try to set memory limits with podman to avoid making your server unresponsive but that willmight not fix the underlying issue.
Setting memory limits might actually fix it - depending on configuration the JVM may not invoke the garbage collector until it starts to reach capacity. It may also not return free memory to the operating system.
This behavior that you have explained does not necessarily be a memory leak. Thai is actually an expected behavior for the UniFi Controller setup. The linuxserver/unifi-controller container seems to internally run both Java and MongoDB (mongod for data storage). Because of this, you will get to see these processes even though only a single container is deployed. Over time, if you notice the memory usage tends to increase because Java expands its heap based on workload. MongoDB will also be using memory for caching. Slowly over period this action will appear like a leak. However, if memory usage keeps growing without stabilizing and eventually makes the server unresponsive, then it is more likely due to insufficient memory limits or even lack of proper resource constraints. You can mitigate this by setting proper Docker memory limits, monitoring heap usage, and checking for adequate system resources. All these steps can help manage this behavior effectively. For a deeper understanding of common signs of a Java memory leak, identifying memory leaks by analyzing heap dumps, check out this blog, From Symptoms to Solutions: Troubleshooting Java Memory Leaks & OutOfMemoryError.
This topic is 5 years inactive. Let’s let is sleep Whatever conditions are described here, they are unlikely to be still applicable to a Fedora release that is still maintained.