Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-8399

Remove all occurrences of File.deleteOnExit()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.26.09
    • None
    • cms7-project

    Description

      Do not use deleteOnExit() even if you explicitly delete it later.

      Google 'deleteonexit is evil' for more info, but the gist of the problem is:

      deleteOnExit() only deletes for normal JVM shutdowns, not crashes or killing the JVM process.

      deleteOnExit() only deletes on JVM shutdown - not good for long running server processes because:

      The most evil of all - deleteOnExit() consumes memory for each temp file entry. If your process is running for months, or creates a lot of temp files in a short time, you consume memory and never release it until the JVM shuts down.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mrop Michiel Rop
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: