【问题标题】:tomcat8.exe consumes lot of CPU/memory if tomcat is hosted as a windows service如果将 tomcat 作为 Windows 服务托管,则 tomcat8.exe 会消耗大量 CPU/内存
【发布时间】:2017-06-20 12:04:15
【问题描述】:

我有一个托管在 tomcat 上的 Web 应用程序。如果我通过双击startup.bat 文件运行tomcat,它工作得非常好。但是,如果我将其部署为 Windows 服务,相同的应用程序开始显示许多性能问题(高 CPU 和内存)。我正在使用以下命令将其安装为服务

服务安装tomcat

如果我将它安装为 Windows 服务,谁能告诉它为什么会出现性能问题?不确定有什么区别,因为两者都在启动同一个 tomcat 服务器。

阿图尔

【问题讨论】:

    标签: java tomcat windows-services tomcat8


    【解决方案1】:

    在将 tomcat 作为服务安装后设置内存配置解决了我的问题。我引用了这个链接https://plavc.wordpress.com/2012/02/08/tomcat-service-on-windows/

    阿图尔

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-20
      • 1970-01-01
      • 2010-11-05
      • 2010-09-06
      • 2017-10-01
      • 2010-10-09
      • 2011-05-10
      • 1970-01-01
      相关资源
      最近更新 更多