Fatal error: Allowed memory size exhausted in Cache Storage

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
myPhone
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Jul 30, 2009 5:33 am

Fatal error: Allowed memory size exhausted in Cache Storage

Postby myPhone » Wed Feb 15, 2012 8:47 pm

If I enable cache in Global Configuration, I get the following error on my live site within a day or two:

Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 15656475 bytes) in /libraries/joomla/cache/storage/file.php on line 142

I don't know why this error is coming up, but if I clear the cache or turn off cache, the error goes away. Does anyone know why this error occurs (memory is at fault, but why), and what I can do to avoid it?

Running...

Joomla 2.5.1
PHP 5.3.5
MySQL 5.1
Apache Web Server (also happened on Nginx)

myPhone
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Jul 30, 2009 5:33 am

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby myPhone » Mon Feb 27, 2012 12:58 am

This error happened again on my site today. It seems to take some time for the problem to crop up (several days before I get the error), and I'm not sure what I can do to fix it.

I've moved the site to a dedicated server with 4GBs of RAM, and the memory_limit in PHP.ini is set to 90M, so the site should have plenty of resources at my disposal. Any advice is greatly appreciated!

User avatar
BeTheDance
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Fri May 16, 2008 4:52 pm

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby BeTheDance » Thu Jun 21, 2012 1:03 am

I also hit this. Saw a google post about it. Turned progressive cache to conservative and everything worked fine.

fanfouet
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Jun 28, 2012 11:29 am

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby fanfouet » Fri Jan 31, 2014 2:53 pm

is it solved yours problems coz i have the same one with Joomla 3.1

Aldinifish
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jun 07, 2011 9:06 pm

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby Aldinifish » Fri Aug 15, 2014 8:03 pm

I am getting this error following the launch of a new j3 site and I have to keep taking it off line. It seems after all these years nobody in the joomla world knows what causes it. Its a generic error but there should at least be some kind of recommended checklist. I am sure someone knows the answer. I will try and document my findings on how to resolve this.

mutedcensor
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Mar 17, 2008 4:34 pm

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby mutedcensor » Mon Sep 08, 2014 4:53 pm

I followed the advice from BeTheDance and that sorted the problem out for me straight away.
Thank you!

breeze29
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Dec 30, 2011 3:03 am

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby breeze29 » Wed Oct 28, 2015 10:14 am

Can someone provide step-by-step instructions for changing progressive cache to conservative in Joomla 3.4.x. I'm encountering the same error on a VirtueMart site. A solution is suggested here but it does mention how to implement. Any help is appreciated.

Aldinifish
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jun 07, 2011 9:06 pm

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby Aldinifish » Wed Oct 28, 2015 9:11 pm

You could try the following:
In the back end goto System>Global Cinfiguration>System Tab>Cache Settings
Then try changing the Cache to On - Conservative setting. Cache Handler to File. Cache Time to 5 mins. You can then try extending the cache time.

breeze29
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Dec 30, 2011 3:03 am

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby breeze29 » Tue Nov 03, 2015 11:25 pm

Thanks Aldinifish!

hcamelion
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Oct 18, 2007 7:27 pm

Re: Fatal error: Allowed memory size exhausted in Cache Stor

Postby hcamelion » Thu Nov 05, 2015 2:05 am

I know this is an old thread but I wanted to share the actual cause of this error in my particular case. I don't think just turning something off is ever a resolution to an error and one needs to always find the actual cause so I dug deeper. In our case it was the jevents plugin with a client's site:

https://www.jevents.net/forum/viewtopic ... 1&start=10

Search engine bot traffic in this case caused a massive amount of cache files to be created in the com_jevents cache folder due to a bug. The cache system ran out of memory trying to read the folder and you may get the error on the component front end as well like my client did.

Deleting the folder fixes it temporarily. Obviously turning off caching fixes it and changing to conservative cahcing probably slows it down but it still happens as a user mentioned.

The true fix is to upgrade your jevents to the latest version if this is your issue.

For others where they don't have jevents I would try and track down a particular component causing the issue so you don't have to turn off caching and lose the performance that caching provides.
Henry Weismann
Web Development Company Owner That Specializes in Joomla Development:
http://www.weismannweb.com/services/specialties/joomla


Return to “Performance - Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 3 guests