Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cxf tmp files not deleted #88

Closed
olauspet opened this issue Feb 11, 2020 · 8 comments
Closed

cxf tmp files not deleted #88

olauspet opened this issue Feb 11, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@olauspet
Copy link

We have noticed in the oxalis-inbound that it creates cxf tmp files in the temp directory. These files are never deleted, and we end up with disk space issues after a while.
oxalis 4.1.1
oxalis-as4 4.1.3
running on tomcat 9

@FrodeBjerkholt
Copy link
Contributor

I will look into it at Thursday.

@olauspet
Copy link
Author

It seems related to receiving large files, containing embedded attachments.

@FrodeBjerkholt FrodeBjerkholt added the bug Something isn't working label Feb 13, 2020
@FrodeBjerkholt
Copy link
Contributor

FrodeBjerkholt commented Feb 13, 2020

I am working on a solution with a scheduled job that removes those temporary files after a certain amount of time.

@FrodeBjerkholt
Copy link
Contributor

My first attempts with a job that removes the temporary files has problems because of file locks. I need to investigate further.

@olauspet
Copy link
Author

Could it be due to missing close of InputStreams? What I understand, the cxf tmp files are created for larger payloads and would be deleted when all references are closed.
Example:
As4InboundHandler.persistPayload is exhausting the input stream but not closing it?

@FrodeBjerkholt
Copy link
Contributor

Yes, I agree. I have already tried closing, but it did not help. But I will see if I can dig some more.

@FrodeBjerkholt
Copy link
Contributor

I have found a solution and will most likely make a new release tomorrow.

@FrodeBjerkholt
Copy link
Contributor

Resolved in 4.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants