Bad ram usage with scenebuilder
See original GitHub issueHi,
I created a simple Pane
with a JFXProgressBar
as child in it. When i added JFXProgressBar
, my ram usage suddenly started to increase rapidly.
So in 1 minute it takes approximately 5 GB ram 😃, As soon as i remove JFXProgressBar
my ram usage stopped and in the next GC call it dropped to 4 GB.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9
Top Results From Across the Web
Bad ram usage with scenebuilder · Issue #52 · sshahine/JFoenix
The memory usage in the graph you have shown is perfectly normal (like expected) but something is rapidly growing outside of the heap...
Read more >Developers - Bad ram usage with scenebuilder - - Bountysource
Hi, I created a simple Pane with a JFXProgressBar as child in it. When i added JFXProgressBar , my ram usage suddenly started...
Read more >Performance Problem with the Scenebuilder — oracle-tech
Hi, i have a very annoying problem with the scenebuilder. When I'm working with the scenebuilder it takes about 5-6 Minutes till it...
Read more >JavaFX - Memory Consumption - Stack Overflow
I have a huge JavaFX application that mostly uses FXML files to create the views, i noticed high memory usage but have been...
Read more >JavaFX application error: No resources specified – iTecNote
Note that memory usage on modern operating systems like Linux is an extremely complicated and difficult to understand area. In fact the chances...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh wow, I did not expect that. It looks like something is allocating insane amounts of memory outside of the Heap (in native memory) which suggests there is a bug in JavaFX. The memory usage in the graph you have shown is perfectly normal (like expected) but something is rapidly growing outside of the heap (which is where all object allocated inside of java live), which suggests that native JavaFX code is leaking it. The amount of objects allocated inside of Java’s heap is 25 MB only.
Now I’m out of direct knowledge and I can only offer things that may or may not help. I’m just guessing what could be the problem.
Have you validated that you have the latest version of Java (preferably the one shipped by Oracle)
Try to launch SceneBuilder with software rendering only:
Get the executable jar (if you are not already using it) from here.
You might need to re-import the JFoenix jar.
There is no need to make any more heap dumps, since they do not capture the problem. Just report back whether the issue still occurs and attach the
scenebuilder.log
(maybe verbose prism output yields something useful).Thank you, Another weird thing, i have two graphic cards on my fedora (nvidia & intel). By default whole system runs on Intel, so i decided to switch to nVidia and run SceneBuilder with that. Then i saw there is no memory issue anymore