[MAGNOLIA-6533] File.deleteOnExit should be called only when file can't be deleted Created: 03/Feb/16  Updated: 20/Feb/17  Resolved: 04/Aug/16

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.4.2
Fix Version/s: 5.4.5

Type: Epic Priority: Neutral
Reporter: Nicolas Barithel Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Epic Name: deleteOnExit
Acceptance criteria:
Empty

 Description   

We got our hand on a heapDump last week and we found that most of the memory where occupy by a large map hold by "java.io.DeleteOnExitHook" that is referencing temporary files created by Magnolia (about 200 000 references)

This problem is referenced in sereral threads (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6664633, http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4872014, http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4809375)

We are going to correct this problem by removing the deleteOnExit call on the temp file.
Find the usages and create tickets in corresponding modules (currently used in activation, dam, CTS...).


Generated at Mon Feb 12 04:15:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.