My Java program loses memory while running only on Linux.
Symptoms
- VisualVM shows a heap size of about 300 MB and no suspicious activity.
- On Mac OS X, the program works unlimitedly with 900 MB of memory (via Activity Monitor)
- On Linux, the memory capacity quickly increases to 4.5 GB when the OS runs out of memory (via Activity Monitor)
The program uses JavaFX. This behavior started after a commit that separated GUI and computation from different threads.
It can't be a leak in the JVM, right?
Are there any tools to research such problems?
source
share