Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-773

Memory leak using multipart provider

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 2.3.4.Final
    • jaxrs
    • None

    Description

      Usage of the multipart provider causes a memory leak as the underlying mime4j implementation uses the File#deleteOnExit hook in the class TempFileStorageProvider:

      public StorageOutputStream createStorageOutputStream() throws IOException {
              File file = File.createTempFile(prefix, suffix, directory);
              file.deleteOnExit();
      
              return new TempFileStorageOutputStream(file);
          }
      

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            dirk-mahler Dirk Mahler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: