java为什么Tomcat 8.5选项allowLinking=true会加快启动速度
我正在尝试将一个web应用程序从Java7/tomcat 7升级到Java8/tomcat 8.5
一切正常,但tomcat 8.5(2分钟)的启动时间是tomcat7(1分钟)的两倍。最令人难以置信的是,在我的上下文中使用选项allowLinking=true
。xml使我的tomcat 8.5快速启动(大约1分钟)
我的问题是,我运行的是windows,关于这个选项的tomcat 8.5文档说
This flag MUST NOT be set to true on the Windows platform
https://tomcat.apache.org/tomcat-8.5-doc/config/resources.html
有人能解释吗? 我应该在我的tomcat(windows)上使用这个选项吗
谢谢
# 1 楼答案
很简单Windows不像unix系统那样管理符号链接!使用unix服务器系统还有一点