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

Memory leak using multipart provider

XMLWordPrintable

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

      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);
          }
      

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

                Created:
                Updated:
                Resolved: