Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaFx Freeze and memory consumption (leak memory)

 
Alex Cass
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
please buy this thing and then I get a fat cut of the action:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!