How to solve ‘memory size exhausted’ issue with Image Sizer Plugin?
Posted: 23 June 2008 06:26 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  05-15-2007

Hi there,

I originally posted this question on this thread but I since thought that my question might have been a bit lost in that big thread, and might not even be related to the plugin at all, so thought I’d post it here instead (with a bit of an edit).

Basically, I’m trying to load 8 entries on a page and have thumbnail images (85x85) next to them, but I keep getting the error below with the Image Sizer plugin:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 10096 bytes) in /var/www/vhosts/mywebsite.com/httpdocs/system/core/core.image_lib.php on line 500

One of the jpg images it was stalling on was around 1mb in size (which doesn’t seem that high), though it did have dimensions of around 3600px x 2500px.

Now although I thought this was an issue with the plugin itself, I’ve since thought that maybe I should increase my php memory limit instead, but is this recommended?  I was told be someone else that it was already quite high.

To get around this, I’m just using phpThumb instead, but I’d much rather use this EE plugin instead as it just feels neater and tidier (when it works, which it does in every other situation I’ve tried to use it in until now).

Thanks for any tips or advice on how to get past this issue.

Ste

Profile
 
 
Posted: 23 June 2008 06:55 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  436
Joined  02-02-2006

You current memory allocation is 64 MB which is pretty high, but not unheard of. Depending on your hosting situation, you can increase it as you see fit. I think you’re right to be concerned about that much memory being used.

 Signature 

Learn EE step-by-step with the ExpressionEngine Screencasts

Ryan Irelan

Profile
 
 
Posted: 23 June 2008 07:03 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  05-15-2007

Thanks for your reply Ryan.

I get fully supported hosting but they’d previously warned about increasing the php memory limit (though I have plenty available to increase it to if needed).

Is this definitely an issue with the Image Sizer plugin?  Or could it be an issue with EE itself (it references a file in the Core folder in the above error message).

Thanks,

Ste

Profile
 
 
Posted: 23 June 2008 11:26 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

Well, 64M is sufficient for most cases, but really not all that much for memory intensive situations. 3600px x 2500px is certainly quite a lot—and it’s the resolution that matters in this case, not the filesize. If increasing the memory limit is an option, I’d try that, and wouldn’t worry about it too much.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 25 June 2008 06:51 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  05-15-2007

Thanks Ingmar,

We increased the memory limit to 128mb and it now works fine.  There was only one image of that size in the 8 entries though, so I now wonder whether this image sizer plugin is a bit memory intensive or whether it’s just the way it is with resizing images in php.

Thanks,

Ste

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64908 Total Logged-in Users: 36
Total Topics: 81852 Total Anonymous Users: 30
Total Replies: 440056 Total Guests: 231
Total Posts: 521908    
Members ( View Memberlist )