小编ruo*_*hao的帖子

我的Jetty服务器会在很长一段时间后死机,为什么?

最近,我在Amazon EC2上托管了一个网站,我使用Jetty 7.4作为我的服务器.

我在我的机器和EC2中测试它,它运行正常.

但几周后,它突然无法访问.检查日志,它只是说"/WEB-INF/view/index.jsp"未找到.然后在重新启动Jetty服务器之前不能再使用整个站点.

BTW:在我的项目中,我使用了Spring Framework,Spring MVC,Ehcache,Shiro,Hibernate,Google Web Toolkit等.

为什么?

我几乎使用Jetty的默认配置文件:

Jetty配置文件:

<!-- =========================================================== -->
<!-- Server Thread Pool                                          -->
<!-- =========================================================== -->
<Set name="ThreadPool">
  <!-- Default queued blocking threadpool -->
  <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
    <Set name="minThreads">10</Set>
    <Set name="maxThreads">200</Set>
    <Set name="detailedDump">false</Set>
  </New>
</Set>

<!-- =========================================================== -->
<!-- Set connectors                                              -->
<!-- =========================================================== -->

<Call name="addConnector">
  <Arg>
      <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
        <Set name="host"><Property name="jetty.host" /></Set>
        <Set name="port"><Property name="jetty.port" default="8080"/></Set>
        <Set name="maxIdleTime">300000</Set> …
Run Code Online (Sandbox Code Playgroud)

jetty

4
推荐指数
1
解决办法
2844
查看次数

标签 统计

jetty ×1