Page 1 of 1

Lots of Photos - Lots of Errors

Posted: 25 Mar 2009, 13:12
by marcus178
The more photos I add the more errors I get. I now have 1000's of photos and even with Thumbnail creation off and Thumbnail pagination on I getting errors such as

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36742437 bytes)

and maximum execution time 30s exceeded.

The admin images section has also been getting slower and slower the more images I add.

My Memory limit is already at 128M which is pretty high and now the component is pretty much unusable.

Do you have any suggestions as to how I can get this to work with a lot of images?

Re: Lots of Photos - Lots of Errors

Posted: 25 Mar 2009, 14:39
by Jan
Hi, I don't have, I got information that there is no problem with e.g. 5000 images.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36742437 bytes)
If there is set the pagination thumbnail creation (e.g. 20 images per page) then it means:

The script will load only 20 results from the database...

Only 20 images (files) will be checked (on the server... if they have thumbnail or not)

and in every case only 3 thumbnails per script will be done (after making thumbnails for one image (it means 3 thumbnails) it comes to http redirect so new script will begin)

In most cases the problem can be caused by one large image with large resolution

I by myself have tested over 3000 images on my Suse (PHP5,12MB,Apache2,MySQL5) without any problems

There can be some other problem too...categories, because all categories are loaded into the one select box... for some users with 700 categories there was a problem, then we have optimized the loading categories items from database and it worked OK for him then... (this optimizing was done in some 1.8 version I think, so since this version it should work ok)

so no idea where can be the problem :-(

Jan

Re: Lots of Photos - Lots of Errors

Posted: 25 Mar 2009, 14:53
by marcus178
I have over 12000 images which is considerably more than you have tested with. I didn't have any problems when I only had 5000 images. I've only just started to get these errors.

Oddly enough though the errors seem to go away after a while and then come back when I add more images but it's usually right at the end of when it's created the thumbnails.

All of my images are less than 500kb so there shouldn't be any problem there.

Re: Lots of Photos - Lots of Errors

Posted: 07 Feb 2011, 11:19
by freddred
I had the same problem and I switched on Thumbnail Pagination and it solved it!