JavaFX ScrollPane Memory Leak Pipeline

I have a simple code and run with -Dprism.order = sw using jdk8_45:

@Override
public void start(Stage primaryStage) throws Exception
{
    StackPane root = new StackPane();
    root.getChildren().add(new ScrollPane());

    Scene scene = new Scene(root, 300, 250);

    primaryStage.setTitle("Test FX ScrollPane");
    primaryStage.setScene(scene);
    primaryStage.show();
}

      

Start VisualVM and do the following: greates object int [] - 9-10MB

Than just resize the window many times and look at VisualVM with a GC call: greates object int [] - 400-500MB

After calling the GC object: greates int [] - 140-150MB

If a bunch of dump and look at this int [] - these are images and they get bigger and bigger over time.

When run with -Dprism.order = es2 everything is fine.

Any solutions for this? Thanks to

+3
java memory-leaks javafx scrollpane


source to share


No one has answered this question yet

Check out similar questions:

3044
Making a memory leak with Java
1146
performSelector may leak because its selector is unknown
1042
The result was a leak of the window that was originally added
345
Google Maps and JavaFX: showing marker on map after clicking JavaFX button
204
Are memory leaks ever?
five
coldfusion.util.Key Memory Leak - Structural Keys issue?
2
JavaFX ScrollPane PannableProperty with TitledPane
1
Javafx node position in Scrollpane
1
JavaFX ScrollPane setEditable ()
0
Penetrating memory WebView



All Articles
Loading...
X
Show
Funny
Dev
Pics