Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaFX ScrollPane memory leak software pipeline

81e60a2c-b67e-42c1-94f3-07d2edf2712dJun 22 2015 — edited Jun 22 2015

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();
}


Run VisualVM and have the following: greates object is int[] - 9-10MB

Than just resizing window many times and look at VisualVM with out calling GC: greates object isint[] - 400-500MB

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

If heap dump and look at that int[] - it's images, and over time they become more and more.

If run with -Dprism.order=es2 it's all right.

Any solutions for this? Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2015
Added on Jun 22 2015
0 comments
454 views