Occasional 404s on images

54 views
Skip to first unread message

Michael Cottam

unread,
Jan 15, 2014, 6:10:57 PM1/15/14
to smart-lencioni...@googlegroups.com
Hi Joe,

First off, BRILLIANT bit of software...have used it on a number of sites (I sent you $ once somehow, but I should probably send some more--where's your donation site again?).

On to my problem:  I have a custom 404 handler that emails me some diagnostics when a 404 happens.  I would occasionally get a 404 reported on one of the images on my site, but when I'd check the URL of that image manually, it would render just fine.

My site traffic has more than doubled since November, and now I'm seeing these come in small batches with much more regularity.  In all cases, my 404 handler emails me with the URL that was requested & failed, and in all cases, it renders fine for me.

Is it possible that part of SLIR is running out of some resource (memory, some cache allocation, etc.) and failing that way?

The page that's causing these errors to happen generates 30 thumbnails at once, and it's picking somewhat at random from about 4000 images to resize--each of which is about 1000x700 and 150K in size.  Here's the page:

http://www.visualitineraries.com/Explore.asp

I note that my server CPU peaks pretty high on all 4 CPUs when this page is fetched, especially if I change the country selection (which would force it to render a different set of thumbnails).

Any ideas?

Cheers,

Michael.

Joe Lencioni

unread,
Jan 16, 2014, 2:59:07 PM1/16/14
to smart-lencioni...@googlegroups.com
Is your 404 handler handling only 404 errors, or also other types of errors? If it is handling other types of errors, there may be something else going on. I think your best bet would be to check the SLIR log or your PHP log for more information.

It seems that if this is happening in batches, especially if it is correlated with spikes in traffic, that it may be caused by constrained resources running out, but it is hard to say without more information.

It looks like you are adjusting the size that SLIR is rendering these as based on the size of the browser. The rendering of new sizes is the most expensive thing that SLIR can do, so it would be best to have a 2-3 preset steps that you want to render at, and to use CSS to have the browser scale that size down if necessary. Making this change may likely resolve the problem for you.


--
You received this message because you are subscribed to the Google Groups "Smart Lencioni Image Resizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-lencioni-image...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael Cottam

unread,
Jan 16, 2014, 7:49:25 PM1/16/14
to smart-lencioni...@googlegroups.com
Hi Joe,

Thanks for the quick response.  I am actually using 2 preset steps, based on the browser size....brilliant minds think alike and all that :-)

My 404 handler is only dealing with straight 404's.  500's are handled by a separate handler entirely (and I'm not getting 500s at the times I get these image 404s).

I'm going to follow your suggestion and check those logs.

Appreciate the help!

Michael.
Reply all
Reply to author
Forward
0 new messages