管理平台性能比较不一致 [英] Redmine Perfomance Inconsistency
问题描述
我已经部署在Linux x86_64的系统上管理平台的实例,我有一个有趣的性能inconsistencey问题作斗争。它的行为是这样的:
I have a redmine instance deployed on a Linux x86_64 system and I am struggle with a funny performance inconsistencey issue. It behave like this:
单独将其放置几个小时(无请求向应用的话),然后建立一个连接,它需要很长的时间来响应于第一几个请求(可以是15秒+,有时每对作为不良反应在约1分钟)。前几个请求时,它的性能非常快,几乎是瞬间,我可以从日志中看到,它需要小于100ms来回应。
Leave it alone for a couple of hours (no request to the application at all) then establish a connection, it takes a very long time to response to the first few requests (can be as bad as 15 seconds+, sometimes every for response at about 1 minute). After the first few requests, it performance very quickly, almost instantly where I can see from the log that it takes less than 100ms to response.
我已经尝试了几个选项利用杂种来运行它,它部署在乘客的Nginx,并在乘客的Apache。该行为只是可重复执行。我从被保持忙碌的测试实现,不会有问题的。
I have tried a couple of options to run it using mongrel, deployed it on passenger-Nginx, and on passenger-Apache. The behaviour simply reproduceable. I realised from the testing when it is keeping busy, there will be no problem at all.
任何想法是什么一回事呢?我怎样才能提高呢?
Any ideas what it is all about? How can I improve this?
有关提前提出建议,非常感谢。
Many thanks for any advices in advance.
推荐答案
这个问题很可能是由乘客池idleling出来造成的。您可以增加PassengePoolIdleTime为更大的数字,或者如果你不婉它超时值都设置为0的Apache配置类似下面应该可以解决问题。
The issue is most likely caused by the the Passenger pool idleling out. You can either increase the PassengePoolIdleTime to a larger number, or if you don't wan it to time out at all set the value to 0. An Apache config something like below should fix the issues
<VirtualHost *:80>
DocumentRoot /path/to/redmine/site/public
ServerName example.com
PassengerPoolIdleTime 0
<Directory "/path/to/redmine/site/public">
PassengerEnabled on
AllowOverride
Options -MultiViews
</Directory>
</VirtualHost>
这篇关于管理平台性能比较不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!