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
source to share
No one has answered this question yet
Check out similar questions: