I am using 4 different animated GIF(640x360) file on my javafx(version 8 update 144) program, but they causes high memory usage and programa crashes. Why GIF files causes to memory leak? If I use PNG or other formats program works normal.
When it crashes prints this message
java.lang.OutOfMemoryError: Java heap space