First requests are painfully slow

Posted by winSharp93 on Super User See other posts from Super User or by winSharp93
Published on 2012-09-04T08:23:00Z Indexed on 2012/09/04 9:40 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I am running Redmine under IIS using Zoo. Installation was done using the Web Platform Installer and the default configuration has not been touched.

However, when using the application, the first requests take very long to complete (sometimes more than one minute). During that time, the ruby.exe causes some CPU load (about 15%).

According to the log files, it's mainly the views taking that long to render:

Started GET "/redmine/login" for IP at 2012-09-04 09:54:08 +0200
Processing by AccountController#login as HTML
  Rendered account/login.html.erb within layouts/base (42150.5ms)
Completed 200 OK in 43508ms (Views: 43008.5ms | ActiveRecord: 0.0ms)
  Rendered account/login.html.erb within layouts/base (42435.1ms)
Completed 200 OK in 44100ms (Views: 43523.3ms | ActiveRecord: 0.0ms)

After the initial delay, further request times are totally acceptable.

Any ideas on how to speed up the warmup time?

© Super User or respective owner

Related posts about Performance

Related posts about iis