I was profiling the x64 version of my application because the memory usage was excessively high, it all seems to come from JavaFX MediaPlayer, I correctly release listeners and event handlers.
Here is a sharp contrast.
X32 version on startup

And now the x64 version on startup

The x32 version remains below 256 MB, while the x64 will shoot at a concert; this until both are left to play through their playlist.
All code is the same.
JDK: jdk1.8.0_20
JRE: jre1.8.0_20
VM arguments on both
-XX:MinHeapFreeRatio=40 -XX:MaxHeapFreeRatio=70 -Xms3670k -Xmx256m -Dsun.java2d.noddraw=true -XX:+UseParallelGC
The same problem occurs on another x64 Java application

Is this a mistake or am I missing something?
java memory-leaks javafx
user3037561
source share