JDK-8088408 : Memory leak OOM Webview + Openlayers
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 7u40
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • Submitted: 2013-09-29
  • Updated: 2017-07-20
  • Resolved: 2017-07-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
Description
I am adding Openlayers map to WebView added to a swing panel.
Heap memory usage increases steeply while zooming/adding layer/replacing layer.
java.lang.OutOfMemoryError: Java heap space
I think Images are not getting garbage collected properly. 

Heapdatabuffer retains instances of ImageFrame 

eg:
- value: com.sun.javafx.iio.ImageFrame[] #3 (1 items)
 -> [0]     - class: com.sun.javafx.iio.ImageFrame[], value: com.sun.javafx.iio.ImageFrame #3

Comments
We need a short reproducible test case to evaluate this, then it can be reopened. See https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report
08-04-2014