Java process's memory grows indefinitely, but MemoryMXBean reports stable heap and non-heap size
问题 I am working with a team developing a Java GUI application running on a 1GB Linux target system. We have a problem where the memory used by our java process grows indefinitely, until Linux finally kills the java process. Our heap memory is healthy and stable. (we have profiled our heap extensively) We also used MemoryMXBean to monitor the application's non heap memory usage, since we believed the problem might lie there. However, what we see is that reported heap size + reported non heap size