Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-5173

Using the File.deleteOnExit() method may cause memory errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2 EE SP5 (5.2.9) , 6.0 EE SP1 (6.0.11)
    • Component/s: None
    • Labels:
      None

      Description

      There is a bug in the Java JDK where use of File.deleteOnExit() allocated 1k of memory that never gets freed. While this seems small, in heavy usage for LARs memory can disappear very quickly even for large allocations.

      See: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4513817 for the filed sun bug

      The following methods has been added to JavaProps:

      public static boolean hasSunBug6291034()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-ee EE Support
                Reporter:
                douglas.wong Douglas Wong
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  5.2 EE SP6 (5.2.10)
                  6.0 EE SP2 (6.0.12)