What is causing large temp files to be created?
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- Some process is creating a large file in the Tomcat/temp directory. These files can be multiple gigabytes in size and grow over a short amount of time and eventually use all the disk space on the servers.
Environment
- Quarterly Release
- DXP 7.4
- DXP 7.3
- DXP 7.2
- DXP 7.1
- DXP 7.0
Resolution
- Liferay requires to create temporary files in the filesystem when uploading files.
- In Tomcat, the default temporary folder is $TOMCAT_DIR/temp.
- Processes that create temporary files include:
- Uploading/downloading a documents
- Staging and/or export/importing LAR files
- To prevent the disk space from being filled, please allocate more space to the server, or increase the frequency with which the temp files are cleaned up
- A restart of the server will also clear the temp files
did-this-article-resolve-your-issue