[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. |