2013-10-07 73 views
1

如何让Redmine在Linux(CentOS)上快速启动?Redmine在Linux上启动速度慢

我上星期升级:最新的管理平台,红宝石,客运等..

我试过所有我可以在管理平台的论坛,得到它的其他职位找到更快地加速,那就是:在闲置几小时后请求Redmine网站时,它启动缓慢,但后来它的速度非常快。

我正在使用带有Passenger的Apache web服务器。下面我目前的Apache配置,请一些建议,因为我的想法:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so 
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.19 
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-1.9.3-p448/ruby 

# Refs: 
# http://stackoverflow.com/questions/8235309/redmine-perfomance-inconsistency 
# http://www.redmine.org/boards/2/topics/31783 
# This option should be 0, but has an issue: https://code.google.com/p/phusion-passenger/issues/detail?id=904 
PassengerPoolIdleTime 999999 
PassengerMinInstances 2 
PassengerHighPerformance on 
PassengerPreStart https://myhost/redmine 

PassengerMaxPoolSize 5 
PassengerMaxInstancesPerApp 4 
PassengerStatThrottleRate 10 
RailsAppSpawnerIdleTime 0 
PassengerMaxPreloaderIdleTime 0 

RailsBaseURI /redmine 
RailsEnv production 

回答

2

我解决了这个通过建立一个cron作业,要求管理平台主页每15分钟:

*/15 * * * * /usr/bin/curl http://redmine_server/ --stderr - > /dev/null 
+1

感谢。 ...但必须有更好的解决方案......至少我希望;) – edbras

+0

我最终也做了同样的事情...... :(比没有更好......我也尝试了Redmine论坛和许多试用和错误,但没有运气... – edbras

相关问题