JDK-8264738 : Possible minor memory leak when reconnecting via Remote Desktop
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8,openjfx16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • Submitted: 2021-04-05
  • Updated: 2021-07-02
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
 This is a follow-on bug to JDK-8239589 that I discovered while doing stress testing of that fix.

There is a possible memory leak when device isn't ready after first reset, due to a `WCRenderQueueImpl::gc` instance being held in a JNIGlobal. This looks like a preexisting condition that could happen with a page (re)load today, so likely not specific to RDP. It happens very rarely.

The way I reproduced this is by instrumenting the code to cause a remote desktop every 10 frames, and then to have the first two attempts after each simulated reconnect fail to recreate the D3D device. Then I ran an animating web site. I used visualvm to looks for leaks and occasionally see a small number of them.