question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad ram usage with scenebuilder

See original GitHub issue

Hi, I created a simple Pane with a JFXProgressBar as child in it. When i added JFXProgressBar, my ram usage suddenly started to increase rapidly.

jfoenix-ram-usage

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:closed
  • Created 8 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
RAnders00commented, Mar 7, 2016

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:

    java -Dprism.order=sw -Dprism.verbose=true -jar "SceneBuilder-8.1.1.jar" 2>&1 | tee scenebuilder.log
    

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).

1reaction
SaeedMasoumicommented, Mar 7, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found