LMS

Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
Tasklist

FS#184 - Unregister web apps when a script is stopped or deleted

Attached to Project: LMS
Opened by Guillaume (Guillaume) - Thursday, 04 August 2011, 16:02 GMT
Last edited by Guillaume (Guillaume) - Friday, 08 March 2013, 13:59 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Guillaume (Guillaume)
Operating System All
Severity High
Priority High
Reported Version alpha0
Due in Version alpha7
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

Find a way to unregister web apps when a script is stopped or deleted. Only occurs if the script does not unregister itself the app in the destroy method.

This issue causes memory leak !

Guillaume
This task depends upon

Closed by  Guillaume (Guillaume)
Friday, 08 March 2013, 13:59 GMT
Reason for closing:  Fixed
Comment by Guillaume (Guillaume) - Thursday, 04 August 2011, 16:04 GMT
A solution is to use WeakReferences in the HashMap that stores applications

When the script is running the Application object is referenced into the script itself. When the script is stopped, the application is no longer referenced. So the garbage collector should automatically delete the Application object.

Guillaume

Loading...