Functions and usage of Tomcat antiresourcelocking antijarlocking
Source: Internet
Author: User
Let's take a look at what antiresourcelocking actually does!
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 deployments 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.
I will give a rough translation:
If this parameter is true, any filelock is organized. This will significantly affect the application startup time, but allow webapps to support complete hot deployment and hot uninstallation under platforms and configurations that may be locked. If not configured, the default value is false;
If it is set to true, there are some side effects, including blocking the re-loading of JSP files on the running server.
If it is set to true and deployed outside the appbase directory of the host (webapps by default), the application will be deleted when Tomcat is disabled.
The most important thing is to translate it here. In fact, if it is false, because of the lock, some CodeCannot be updated. Because the original file may be locked and cannot be deleted.
Of course, if it is false, the deployed directory is the same as the package name. If it is false, it is placed under a temporary directory and a temp directory every time. This is also a side effect caused by this configuration.
Another similar configuration, antijarlocking, prevents the jar class library from being locked and cannot be deleted.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service