关于Tomcat的“临时”和“工作”目录 [英] Clarifications on Tomcat's "temp" and "work" directories

查看:238
本文介绍了关于Tomcat的“临时”和“工作”目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Tomcat一段时间,但我不知道什么是

I have been using Tomcat for quite a while now but I am not sure what the


  • temp

  • 工作

  • "temp" and
  • "work"

任何人都可以提示?

推荐答案

工作存储编译JSP和其他资源时,只需要在很少的情况下更新WebApp就可以清理其下的webapp目录拿起来。

Work stores 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.

Temp用于存储使用Java File API创建的用于创建临时文件的文件。每次重新启动Tomcat时,您都可以清理它,如果它太满了,那么您的一个WebApps可能会有某种形式的泄漏,在它们完成之后,它不会释放临时文件(尽管它可能只是在较高的负载下)。

Temp is 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).

这篇关于关于Tomcat的“临时”和“工作”目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆