On Thu, Feb 10, 2022 at 11:17 AM James H. H. Lampert wrote:

I'm doing some cleanup on a customer box, removing a previous version of
> Tomcat 8.5 that I'd replaced some time ago, and I'm finding huge amounts
> of "stuff" in the "temp" directory within the Tomcat directory. Is that
> stuff Tomcat itself left behind, or stuff our webapp left behind, or both?
> Assuming any of it is from Tomcat itself, any advice on keeping the
> contents of that directory down to something reasonable?

I would think that the application considers those files to be temporary
and doesn't expect them to be retained (except for files it is using
actively or very recently).

My approach in the past has been to schedule a removal of files in 'temp'
that have a last write timestamp older than 30 days.

In the case the Tomcat application server is not running, I would suspect
that all of the files in 'temp' could be removed with no ill effects.

The above may depend on your application, of course.


Reply via email to