Project

General

Profile

Bumpy or jerkey image loading in Wiki-Page

Added by Anonymous about 12 years ago

Hi,

we at openwalnut.org are using Redmine to organize and publish our work. As we have embedded some thumbnails at the first (Wiki) page, we observe sometimes that some of the thumbnails will not load for some (~17) seconds (almost every morning when I start work), but finally they all will render. As this time lag makes a bad impression, I would kindly ask where could I search and how to improve. The reproducibility is somehow strange: Of course reloading will show all images almost instantly. Clearing the browsers cache will also not lead to the symptom described above. Also restarting the webserver (Apache) will cause some seconds to wait for the whole site (~10s) but not partially defer loading thumbnails. All images are attachments of the wiki page, and the first will always load without any delay. Only the other three following will sometimes load with a delay. The size of the images is very small: 16Kb-25Kb. I think our connection speed to the Internet is not the limiting case: 7.496 kbit/s up.

Inside /var/log/redmine/... logs I found this part to be my first query onto redmine this morning:

Processing WikiController#show (for removed-IP at 2012-02-20 09:51:13) [GET]
  Parameters: {"project_id"=>"openwalnut", "action"=>"show", "id"=>"wiki", "controller"=>"wiki"}
Rendering template within layouts/base
Rendering wiki/show
Youtube Plugin (XIOkldVDxxY)
Completed in 122ms (View: 101, DB: 3) | 200 OK [http://www.openwalnut.org/]

Processing AttachmentsController#download (for removed-IP at 2012-02-20 09:51:13) [GET]
  Parameters: {"action"=>"download", "id"=>"67", "controller"=>"attachments"}
Completed in 23ms (View: 1, DB: 1) | 200 OK [http://www.openwalnut.org/attachments/download/67]
Redmine LaTeX MathJax

Processing AttachmentsController#download (for removed-IP at 2012-02-20 09:51:30) [GET]
  Parameters: {"action"=>"download", "id"=>"104", "controller"=>"attachments"}
Completed in 53ms (View: 1, DB: 10) | 200 OK [http://www.openwalnut.org/attachments/download/104]
Redmine LaTeX MathJax

Processing AttachmentsController#download (for removed-IP at 2012-02-20 09:51:30) [GET]
  Parameters: {"action"=>"download", "id"=>"98", "controller"=>"attachments"}
Completed in 68ms (View: 2, DB: 9) | 200 OK [http://www.openwalnut.org/attachments/download/98]
Redmine LaTeX MathJax

Processing AttachmentsController#download (for removed-IP at 2012-02-20 09:51:30) [GET]
  Parameters: {"action"=>"download", "id"=>"76", "controller"=>"attachments"}
Completed in 65ms (View: 1, DB: 9) | 200 OK [http://www.openwalnut.org/attachments/download/76]
Streaming file /var/lib/redmine/default/files/110811081939_FiberStipples_thumb.png

It tells that the first image got severed almost the same time with the first request to that wiki page but, the other two attachments got served 17s later. We use Redmine 1.3.0 with Rails 2.3.14.1 and Rack 1.4.0 and Ruby 1.8.7. As the install page recommends Rack 1.1.x: Could that be an issue here? Of course we have installed several other plugins, should I list them?

Thanks for your help