-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Johan,

On 11/30/18 05:13, Johan Compagner wrote:
> Why are you writing stuff in the web app folder? Problem with this
> is that the WAR doesn't even need to be extracted depending on
> configuration.
> 
> I would always try to avoid this and use java's own tmp folder
> mechanism for a writeable folder Does the servlet spec also not
> have something like this? That you can ask for a "work" folder?

+1

The context-specific temp directory Tomcat provides ends up in the
work/ directory under CATALINA_BASE.

That being said, using the context-private temp directory will also be
subject to deletion if the application is un-deployed. If these files
are important and need to survive something like un-deploy->deploy,
then your best bet is to find a well-known place to write those files
which is completely outside anything that Tomcat is looking at.

Thanks,
- -chris

> On Fri, 30 Nov 2018 at 11:07, <galli.tomm...@tiscali.it> wrote:
> 
>> 
>> 
>> Hi,
>> 
>> I have a problem in the start phase of Apache Tomcat/7.0.90 
>> Inside the folder WEB-INF I have a subfolder called Tmp 
>> (application/WEB-INF/Tmp) where sometimes I put a lot of files
>> and folders (more then 100.000) and after 24h I clean this
>> folder. But if in the meantime I need to restart the application,
>> the restart time increases a lot (more then 1h) because it scans
>> this Tmp folder Do you know a way to prevent the Tomcat from
>> scanning the WEB-INF/Tmp folder?
>> 
>> Thanks
>> 
>> 
>> 
>> Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99€ al mese,
>> per sempre. Cambi gratis quando e come vuoi e in più hai 10€ di
>> credito omaggio e 6 mesi di INFINTY! http://tisca.li/myopen
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwBaKMACgkQHPApP6U8
pFg0MQ//ZdSEcHjg1elAxJVroueSjhBYdWqclTWpdHUN3TUB3Vvp/m7sj4zG6vJ1
7Uydn9l+bnOW7Sjk47PoorewOmkWv7J+xgWX7SYhEiB3D+00khp6DxMTWzf01anE
JQq//JOTWoUPvnBS0ncAp2Ty3yDkXiHbuo9YG5VPV9gTN+KZhg/aa+lV5rDaq5aI
22cFIgby+rFCLI8WH3aAwVBPm8RGbH2oXuWSJULqHyz/jR/00sPncXQAHafqldd8
18xocvmoELfml6IEvUCAKzqeSrOkgw/P0nBItg89jatEpe+nYI9ZaT1V4gBXjLMs
yDN8OfcV+E6o5SRYhC5J5492wUqSmZrcNrrpY62vWKJWnBVkl55LnsKb77r9Dsoa
qYVVNH6Eb6qGngbJoZwmOxj0lol/a0mV2a4RLXhPSHvS68eSCfjuWRNQCEeqTkUn
YhbZPGAelGM65FCXwkOqzZXojN2BgMqYU69Dmkpq7RSXFsgKGMjRJWLE76dMFnRw
cv/2xcsbRUdTwwqyo3IL1EcKr25h0CoU6X90jKdxmP6ERc6zlTR5Ng3ojldOsqWI
jozlk2cl3n2V0R8ueIj5fl+ZKlVn8OsoZcrGOIcRqaHoOtBYB/EUGvzR1v35C+xV
ZVb77AyG7dli93vYtbwneB/S2fxD2Le82TijfMGqaDxil/G0nW0=
=oO0L
-----END PGP SIGNATURE-----

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

Reply via email to