tomcat antiResourceLocking antiJARLocking 的作用和用法
2009-08-01 13:55
936 查看
我们先来看看这个 antiResourceLocking 到底是干什么的!
If true, Tomcat will prevent any file locking. This will significantly impact startup time of applications, but allows full webapp hot deploy and undeploy on platforms or configurations where file locking can occur. If not specified, the default value is false.
Please note that setting this to true has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668.
Please note that setting this flag to true in applications that are outside the appBase for the Host (the webapps directory by default) will cause the application to be deleted on Tomcat shutdown. You probably don't want to do this, so think twice before setting antiResourceLocking=true on a webapp that's outside the appBase for its Host.
我大致翻译一下:
如果这个参数为true,那么将组织任何文件锁。这将明显的影响应用的启动时间,但允许webapps,可能发生锁的平台和配置下,支持完整的热部署和热卸载。如果不配置,默认值是false;
如果设置为true,有一些副作用,包括屏蔽了JSP文件在运行服务器上的重新加载。
如果设置为true,且部署在Host的AppBase目录外面(默认是webapps),在Tomcat关闭的时候将导致应用被删除。
最主要的就翻译到这里了。实际上,如果为false,因为存在锁,在你重新发布的时候,可能出现部分代码无法更新。因为原始文件可能因为被锁住了,不能删除。
当然,如果为false,那么部署的目录就是和包名相同了。如果是false,则会每次都放到一个临时目录下面,一个temp目录。这也是这个配置引发的一个副作用。
另外的一个类似的配置 antiJARLocking 是防止jar类库被锁定而无法删除这个作用的。
If true, Tomcat will prevent any file locking. This will significantly impact startup time of applications, but allows full webapp hot deploy and undeploy on platforms or configurations where file locking can occur. If not specified, the default value is false.
Please note that setting this to true has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668.
Please note that setting this flag to true in applications that are outside the appBase for the Host (the webapps directory by default) will cause the application to be deleted on Tomcat shutdown. You probably don't want to do this, so think twice before setting antiResourceLocking=true on a webapp that's outside the appBase for its Host.
我大致翻译一下:
如果这个参数为true,那么将组织任何文件锁。这将明显的影响应用的启动时间,但允许webapps,可能发生锁的平台和配置下,支持完整的热部署和热卸载。如果不配置,默认值是false;
如果设置为true,有一些副作用,包括屏蔽了JSP文件在运行服务器上的重新加载。
如果设置为true,且部署在Host的AppBase目录外面(默认是webapps),在Tomcat关闭的时候将导致应用被删除。
最主要的就翻译到这里了。实际上,如果为false,因为存在锁,在你重新发布的时候,可能出现部分代码无法更新。因为原始文件可能因为被锁住了,不能删除。
当然,如果为false,那么部署的目录就是和包名相同了。如果是false,则会每次都放到一个临时目录下面,一个temp目录。这也是这个配置引发的一个副作用。
另外的一个类似的配置 antiJARLocking 是防止jar类库被锁定而无法删除这个作用的。
您可能感兴趣的文章:
相关文章推荐
- Tomcat中antiResourceLocking和antiJARLocking的作用
- Tomcat里antiResourceLocking的作用和引起的一个问题 .
- SqlParameter的作用与用法
- MFC类CPtrList作用及其用法
- JAVA关键字具体的作用和用法
- VSS (Visual Source Safe 2005) 用法详解
- VIM类似source insight的用法
- vue中$refs的用法及作用详解
- Tomcat各目录作用
- iOS之 深究extern,static的用法和作用
- JSP九大内置对象的作用和用法总结?
- PACKAGE-INFO.JAVA 作用及用法详解
- duilib各种布局的作用,相对布局与绝对布局的的意义与用法
- VB中Split函数的作用和用法(字符串用逗号分割)
- 【opencv学习笔记】SetImageROI函数设置ROI区域的作用及用法
- Maven介绍,包括作用、核心概念、用法、常用命令、扩展及配置
- mybatis的mapper的配置文件的resultMap元素的用法和作用
- source命令用法 export touch alias
- (转-经典-数据段)C++回顾之static用法总结、对象的存储,作用域与生存期
- hive中order by,sort by, distribute by, cluster by作用以及用法