JDK-8135015 : Webview leaks resources
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u60,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_8
  • CPU: x86
  • Submitted: 2015-09-03
  • Updated: 2016-06-20
  • Resolved: 2016-06-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Blocks :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.3.9600]

A DESCRIPTION OF THE PROBLEM :
When refreshing webview, memory usage reported by Windows climbs.
The more complex the webpage is, the faster is grows
Possibly related to https://bugs.openjdk.java.net/browse/JDK-8087417

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the program and watch the memory usage in task manager

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No extra memory use after a few minues
ACTUAL -
Memory grows.
If you use a complex webpage (like oracle.com) it grows to 1gb after 3 hours even if -Xmx512M is used

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
public class OpenTest extends Application{
	public static void main(String[] args) {
		launch(args);
	}

	@Override	public void start(Stage primaryStage) {
		primaryStage.setTitle("Webview refresh");
		final WebView webView = new WebView();
		primaryStage.setScene(new Scene(webView, 800, 500));
		primaryStage.show();
		new Timer().scheduleAtFixedRate(new TimerTask() {
			@Override public void run() {
				Platform.runLater(()->webView.getEngine().load("http://oracle.com"));
			}
		}, 1000, 1000);
	}
}
---------- END SOURCE ----------


Comments
Root cause is same as JDK-8144502.
20-06-2016

Could be a duplicate of JDK-8087417.
03-09-2015