Redmine性能不一致 [英] Redmine Performance Inconsistency

查看:348
本文介绍了Redmine性能不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux x86_64系统上部署了一个Redmine实例,但是我遇到了一个有趣的性能不一致问题.它的行为如下:

I have a redmine instance deployed on a Linux x86_64 system and I am struggle with a funny performance inconsistency issue. It behave like this:

将其搁置几个小时(根本不向应用程序发出请求),然后建立连接,它需要很长时间才能响应前几个请求(可能长达15秒以上,有时每次大约1分钟后回复).在最初的几个请求之后,它的性能非常快,几乎可以立即从日志中看到响应时间不到100毫秒.

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.

我尝试了几种选择来使用mongrel来运行它,将其部署在passenger-Nginx上,以及在passenger-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.

这是什么一回事?我该如何改善呢?

What is it all about? How can I improve this?

推荐答案

此问题很可能是由乘客池闲置引起的.您可以将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>

这篇关于Redmine性能不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆