[ https://issues.apache.org/jira/browse/CXF-7396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885612#comment-17885612 ]
Andriy Redko commented on CXF-7396: ----------------------------------- In some edge cases, the CachedOutputStream instances may not be closed and, if backed by temporary files, may fill up the file system (it applies to servers and clients). *As a workaround,* the CachedOutputStreamCleaner bus extension could be used to provide the custom cleaning mechanism for such dangling cached streams (by default, the extension is implemented by DelayedCachedOutputStreamCleaner and run periodic cleanup set by bus.io.CachedOutputStreamCleaner.Delay bus property, 30 mins by default). Documentation: https://cwiki.apache.org/confluence/display/CXF20DOC/Securing+CXF+Services#SecuringCXFServices-Largedatastreamcaching > CachedOutputStream doesn't delete temp files > -------------------------------------------- > > Key: CXF-7396 > URL: https://issues.apache.org/jira/browse/CXF-7396 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 3.1.8 > Reporter: Matthew Roth > Assignee: Andriy Redko > Priority: Minor > Fix For: 3.5.10, 3.6.5, 4.0.6 > > Attachments: HTTP Request.jmx, Screenshot 2020-05-05 at 10.09.43.png, > Screenshot 2020-05-12 at 12.42.11.png, image-2018-05-29-13-58-03-109.png, > image-2018-05-29-14-00-16-442.png, image-2018-05-29-14-00-54-215.png > > > In the CachedOutputStream the method maybeDeleteTempFile doesn't always > delete the temp file when it should. > > this.streamList.remove(stream) > Doesn't remove the stream, occasionally the stream is not in the list causing > the check of this.streamList().isEmpty() to fail. Also occurs when > this.streamList() contains multiple streams. > This seems occur when too many large requests are processed in a row. -- This message was sent by Atlassian Jira (v8.20.10#820010)