Project

General

Profile

bug #7047

Vaadin UI and View scope beans are not always destroyed correctly

Added by Andreas Kohlbecker about 1 year ago. Updated about 2 months ago.

Status:
Closed
Priority:
Highest
Category:
cdm-vaadin
Target version:
Start date:
11/02/2017
Due date:
% Done:

100%

Severity:
normal
Found in Version:
Tags:

Description

while examining problems related to the connection pool runnig out of available connections it turned out that Vaadin UI and View scope beans are not always destroyed correctly once the view or UI was no longer used.

One problem was caused by the LoginViewBean being in UIScope. This issue has been solved meanwhile with cdm-vaadin|157c9c3 but it seems as if some views and presenters are still never being disposed and garbage collected correctly. This can potentially cause the vaadin UIs to eat up all memory over long time.

Vaadin-Bean-Destroy-Breakpoints.bkpt (10.3 KB) Andreas Kohlbecker, 01/23/2018 01:42 PM


Related issues

Related to Edit - bug #6687: Multiple representations of the same entity merge problem Closed 06/02/2017
Related to Edit - bug #7046: replace open session per view pattern by DTO strategy Closed 11/02/2017
Related to Edit - bug #7036: correctly release vaadin view resources when the browser windows has been closed Closed 10/25/2017
Related to Edit - bug #7742: vaadin view presenters not disposing ehcaches and object references in event bus which can cause memory leaks Closed 09/07/2018

Associated revisions

Revision 157c9c3d (diff)
Added by Andreas Kohlbecker about 1 year ago

ref #7036 LoginView in View scope helps disposing this bean
it is no longer required to have it in the UIScope

History

#1 Updated by Andreas Kohlbecker about 1 year ago

  • Related to bug #7036: correctly release vaadin view resources when the browser windows has been closed added

#2 Updated by Andreas Kohlbecker about 1 year ago

  • Related to bug #6687: Multiple representations of the same entity merge problem added

#3 Updated by Andreas Kohlbecker about 1 year ago

  • Related to bug #7046: replace open session per view pattern by DTO strategy added

#4 Updated by Andreas Kohlbecker about 1 year ago

  • Related to deleted (bug #7036: correctly release vaadin view resources when the browser windows has been closed)

#5 Updated by Andreas Kohlbecker about 1 year ago

  • Duplicates bug #7036: correctly release vaadin view resources when the browser windows has been closed added

#6 Updated by Andreas Kohlbecker about 1 year ago

  • Duplicates deleted (bug #7036: correctly release vaadin view resources when the browser windows has been closed)

#7 Updated by Andreas Kohlbecker about 1 year ago

  • Related to bug #7036: correctly release vaadin view resources when the browser windows has been closed added

#9 Updated by Andreas Kohlbecker 9 months ago

  • Priority changed from New to Priority11

#10 Updated by Andreas Kohlbecker 3 months ago

  • Related to bug #7742: vaadin view presenters not disposing ehcaches and object references in event bus which can cause memory leaks added

#11 Updated by Andreas Kohlbecker 3 months ago

  • Description updated (diff)
  • Status changed from New to Feedback
  • Target version changed from Unassigned CDM tickets to Release 5.3

this should also be fixed now that #7742 is solved

#12 Updated by Andreas Kohlbecker 3 months ago

  • Status changed from Feedback to Resolved

#13 Updated by Andreas Kohlbecker 3 months ago

  • Target version changed from Release 5.3 to Release 5.4

The RegistrationWorkingsetPresenter, LoginPresenter and RegistationUI still are not destroyed correctly. At least RegistrationWorkingsetPresenter still seems to be registered to the view event bus.

Is this a session timeout issue?

#14 Updated by Andreas Kohlbecker 3 months ago

  • Status changed from Resolved to In Progress

#15 Updated by Andreas Kohlbecker 3 months ago

Andreas Kohlbecker wrote:

The RegistrationWorkingsetPresenter, LoginPresenter and RegistationUI still are not destroyed correctly. At least RegistrationWorkingsetPresenter still seems to be registered to the view event bus.

Is this a session timeout issue?

after ~1h the above mentioned beans have been destroyed with the VaadinSession

#16 Updated by Andreas Kohlbecker about 2 months ago

  • Priority changed from Priority11 to Highest

#17 Updated by Andreas Kohlbecker about 2 months ago

  • Target version changed from Release 5.4 to Release 5.5

this should be fixed mean while according to the examination made for #7824

I am leaving this issue open to be confirmed very soon.

#18 Updated by Andreas Müller about 2 months ago

if you think it is fixed shouldn't we set it to resolved and keep in 5.4 milestone? So we remember it as being primarily a review ticket. If not fully fixed we can still move it to next version, if fixed we simply close it.

#19 Updated by Andreas Kohlbecker about 2 months ago

  • Status changed from In Progress to Closed
  • Target version changed from Release 5.5 to Release 5.4
  • % Done changed from 0 to 100

this has been solved by the changes made for #7036

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)