Redmine is being very slow
Added by Yang Zhang almost 14 years ago
Every so often, after not having used Redmine for some time, the first web request takes a long time to get a response. It's as if some warm-up is taking place, but the server it runs on is not at all under load. Any ideas on what's causing this slow-down or at least how I might be able to dig deeper?
We're using Redmine 1.0.3 via Apache mod_passenger on Ubuntu. We have a pretty small database of issues (<1000 issues), we have git integration with relatively small projects, and we have very little traffic.
Thanks in advance for any help.
Replies (3)
RE: Redmine is being very slow - Added by Yang Zhang almost 14 years ago
I should clarify that "a long time" is on the order of 5 seconds.
RE: Redmine is being very slow - Added by Felix Schäfer almost 14 years ago
Passenger kills worker threads it has spun up after a certain period of inactivity in the default configuration, once no more "redmine" thread is active, passenger reloads redmine from scratch on the next hit, and that takes some time. Consult the passenger docs for ways to mitigate this effect.
RE: Redmine is being very slow - Added by Holger Just almost 14 years ago
This is because passenger stops worker processes after a definable number of seconds of inactivity (300 by default). Thus there are probably no workers left and need to be started first.
You can adapt the start/restart/stop configuration of passenger to your needs. See http://modrails.com/documentation/Users%20guide%20Apache.html#PassengerPoolIdleTime and related configuration directives.