I have been using Tomcat for quite a while now but I am not sure what the
- “temp” and
- “work”
directories are used for and when I need to clean which.
Can anyone please advise?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
workstores compiled JSPs and other assets.=> You only need to “clean” the webapp directories under it on the rare occasions when an update to a WebApp is not picked up.
tempis used to store files created using the Java File API for creating temporary files.=> You can “clean” it every time you restart Tomcat. If it is getting too full then one of your WebApps may have some form of leak where its not releasing temp files when its done with them (although it could just be under higher load too).