Clarifications on Tomcat's “temp” and “work” directories

前端 未结 1 2032
南方客
南方客 2020-12-28 13:20

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

  • \"temp\" and
  • \"work\"

1条回答
  •  隐瞒了意图╮
    2020-12-28 13:32

    • 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 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).

    0 讨论(0)
提交回复
热议问题