Mark,

On 2/7/25 3:42 AM, Mark Thomas wrote:
On 06/02/2025 19:25, Jalaj Asher wrote:
Hello,
Is it ok to delete files from tomcat/temp folderĀ  while the tomcat is running ?

Generally, no. There are instances where that will break things.

It may be possible to delete some files safely - although that begs the question why isn't Tomcat deleting them itself once they are no longer needed.

It required to restart the tomcats post deletion of the files in tomcat/temp folderĀ  or should it be deleted only post stopping the tomcat service ?

The safe way is:
- stop Tomcat
- empty temp
- start Tomcat

If the application writes to the temp dir and then reads that file back, will Tomcat's Resources implementation(s) cache information about those files? If so... is there a facility through which an application can delete one of those files and also update the Resources' view of it (e.g. purge it from cache)?

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to