取消部署Tomcat Web应用程序时如何防止文件锁定? [英] How to prevent file locking when undeploying a Tomcat web app?
问题描述
我正在使用tomcat 7中的管理器应用程序 而且我无法完全取消部署应用程序.
I am using the manager app in tomcat 7, and i am unable to undeploy an application completely.
它说
FAIL - Unable to delete [F:\apache-tomcat-7.0.33\webapps\balaji]. 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.
谁能告诉我tomcat 7中的内存泄漏是什么,我们该如何解决? 我正在使用Windows 7 OS. 如果我能够解决它,我的取消部署和重新部署过程是否会顺利进行?
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:
从/tomcat/conf文件夹中打开context.xml并修改上下文以匹配此内容:
Open context.xml from /tomcat/conf folder and modify the context to match this :
<Context antiResourceLocking="true">
在@JanM注释之后更新了属性.以前它还包含"antiJARLocking"
Updated properties following @JanM comment. Previously it also contained 'antiJARLocking'
这篇关于取消部署Tomcat Web应用程序时如何防止文件锁定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!