This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JavaFX and the fly likes JavaFx Freeze and memory consumption (leak memory) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFx Freeze and memory consumption (leak memory)" Watch "JavaFx Freeze and memory consumption (leak memory)" New topic
Author

JavaFx Freeze and memory consumption (leak memory)

Alex Cass
Greenhorn

Joined: May 17, 2014
Posts: 1
I just made an application with javafx that cycles videos in a folder.
I had to set the next video firing the setonendofmedia event, so they are in a cycle, but the problem is that the application loads every video at the beginning, so after a while it fills memory and crashes.Is there another way to cycle videos without pre-load them or a way to flush memory every while?

My Code :



I used VisualVM;
The heap usage is OK.
however, the program freezes after two hours.

To integrate javafx in swing use this code :



But reading this article ( http://wiki.apidesign.org/wiki/JavaFX ) I understand that the algorithm is obsolete.
It does not quite find what is the algorithm that improves the integration of javafx and swing without using separate threads.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFx Freeze and memory consumption (leak memory)