You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "James H. H. Lampert" <ja...@touchtonecorp.com.INVALID> on 2022/02/10 18:16:36 UTC

Stuff in the "temp" directory within the Tomcat directory

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?

--
JHHL

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


Re: Stuff in the "temp" directory within the Tomcat directory

Posted by Bill Stewart <bs...@iname.com>.
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.

Bill