取消部署 Tomcat Web 应用程序时如何防止文件锁定? [英] How to prevent file locking when undeploying a Tomcat web app?
问题描述
我在 tomcat 7 中使用管理器应用程序,我无法完全取消部署应用程序.
它说失败 - 无法删除 [F:apache-tomcat-7.0.33webappsalaji].此文件继续存在可能会导致问题.
我在某处读到它是因为某种称为内存泄漏的现象,如果我们修复它,问题将得到解决.
谁能告诉我 tomcat 7 中的内存泄漏是什么,我们该如何解决?我正在使用 Windows 7 操作系统.如果我能够修复它,我的取消部署和重新部署过程会顺利进行吗?
这在 Windows 环境中很常见,但是通过 antiResourceLocking
上下文属性:
从/tomcat/conf 文件夹打开 context.xml 并修改上下文以匹配此:
<块引用>
在@JanM 评论之后更新了属性.以前它也包含'antiJARLocking'
I am using the manager app in tomcat 7, and i am unable to undeploy an application completely.
It says
FAIL - Unable to delete [F:apache-tomcat-7.0.33webappsalaji]. The continued presence of this file may cause problems.
I read somewhere its because of some phenomenon called memory leak , and if we fix it the issue will be solved.
Can anyone tell me what is this memory leak in tomcat 7, and how can we fix it ?? I am using windows 7 OS. If i am able to fix it will my un-deploy and re-deploy process run smooth ?
This is very common in Windows environment but there is a solution via the antiResourceLocking
context property:
Open context.xml from /tomcat/conf folder and modify the context to match this :
<Context antiResourceLocking="true">
Edit: Updated properties following @JanM comment. Previously it also contained 'antiJARLocking'
这篇关于取消部署 Tomcat Web 应用程序时如何防止文件锁定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!