在将我的环境从 Windows XP(32 位)机器移至 Windows 10(64 位)机器的过程中,我遇到了一个奇怪的错误。
我的 Apache Tomcat 服务在旧服务器上使用 2 个 Web 应用程序正常运行。当我将我的应用程序移动到新服务器(Windows 10)时,我无法同时使用 2 个 Web 应用程序启动 tomcat。我仍然可以使用一个 webapp 启动 tomcat - 无论 2 个中的哪个应用程序放在 webapps 目录中。
我的 catalina 日志结尾是:
INFO: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\swanny sie 18, 2017 9:08:17 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
没有最终说明服务器已经像那样启动了:
Server startup in XXXXX ms
我的旧机器使用 -Xmx1024m。我将新机器的内存增加到 -Xmx2048m 以确保这些不是内存问题(毕竟它是 64 位)。然而问题依然存在。
谁能给我指明方向? 问候
最佳答案
使用64位tomcat,检查一下。
关于java - Apache Tomcat 无法在 Windows 10 上启动 2 个 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45764562/