简体   繁体   English

Apache Sling停止响应请求

[英]Apache Sling stops responding to requests

I used apache sling to create a WCMS and I deployed it on a virtual server. 我使用apache sling创建了一个WCMS,并将其部署在虚拟服务器上。

Sometimes apache sling does not responsd any request and it seems to be in a sleep or hibernate mode (when call a url of WCMS nothing happens!!!). 有时apache sling不响应任何请求,它似乎处于睡眠或休眠模式(当调用WCMS的url时没有发生任何事情!!!)。

I think this issue occurs when sling has no request for a long time period eg several days. 我认为这个问题发生在吊索没有长时间请求的情况下,例如几天。

Is it a connection pool and timeout issue? 它是连接池和超时问题吗?

How can I fix it? 我该如何解决? Thanks for your help in advance. 感谢您的帮助。

Cherry-picking some information from the discussion on the Sling users' list : 樱桃从Sling用户列表讨论中挑选一些信息:

  • A thread dump was posted at http://pastebin.com/nhQFxXUK http://pastebin.com/nhQFxXUK上发布了一个线程转储

  • This is a deadlock in the Jetty NIO code, so a further question is what version of the org.apache.felix.http.jetty bundle do you use? 这是Jetty NIO代码中的死锁,所以还有一个问题是你使用的org.apache.felix.http.jetty包的版本是什么? You might get rid of this bug by upgrading to the latest released version ( 2.2.1 ) . 您可以通过升级到最新发布的版本(2.2.1)来摆脱这个错误。

  • If you can't do that, you can tell Jetty not to use NIO ( Felix Web Console -> Comopnents -> 'Apache Felix Jetty Based Http Service' and uncheck the 'NIO for HTTP', 'NIO for HTTPS' ). 如果你不能这样做,你可以告诉Jetty不要使用NIO(Felix Web控制台 - > Comopnents - >'Apache Felix Jetty Based Http Service'并取消选中'NIO for HTTP','NIO for HTTPS')。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM