High latency with loading images

datarazor's picture

Hi there, have a website which seems to have very high latency with rendering images.

There is nothing special going on here, images are fields on content. Rendered using no Image style, from the same server, from the default path on the drive, anonymous users, performance caching is set to enabled, cache cleared, nothing in the logs, TOP from the prompt shows tons of free memory but I am getting lags of 12second latency on loading image assets even though the rest of the page loads fine.

Phpini shows 140MB of memory set.

What are other possible causes for this?

Thanks,

Seb.

Comments

Serving images straight off

christefano's picture

Serving images straight off the file system won't take a lot of memory.

It's possible that Apache has a maxclients setting that's too low, or that you're in line with everyone else making requests to the same web server.

If this slowdown is due to the web host, consider using a CDN.

If Drupal is indeed generating the images, check out Imageinfo Cache:

   https://www.drupal.org/project/imageinfo_cache


Exaltation of Larks
Founder, CEO
http://www.larks.la  
Droplabs
Founder, Lead Burrito Analyst
http://droplabs.net  
Greater Los Angeles Drupal
Organizer, Drupal Adventure Guide
http://drupal.la  

Thanks Christo, after

datarazor's picture

Thanks Christo, after checking everything I could think of the site "spontaneously" got a lot better and now loads fine, the provider says they didn't do anything to fix it and that they didn't see any reason why it was slow this morning... sigh. At least it seems to have self fixed itself! Thanks for your input, for a CDN I know this account has access to CloudFlare via my cpanel, which I will consider if the problem reoccurs again.

--
Fountain City Productions
Creative-Technical solutions
Beautiful websites built with Drupal
http://fountain-city.com

High performance

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week