0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

PHP Memory limit, and rockzoom, and radical solution to mem.

  • PHP Memory limit, and rockzoom, and radical solution to mem.

    Posted 16 years 5 months ago
    • Hello evrybody,
      I have a Joomla site and I'm consuming Firenzi template.
      While I'm creating the content of my website, I encounter, from time to time, an error of type :
      "Fatal error: Allowed memory size of 8388608 bytes exhausted.."
      I spoke with the support team of my host company and they told me there is no way to allow the increase of the 8MB limit and they rather told me I have to deal with my unoptimized scripts.

      The following are samples of the errors I encounter :
      Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /home/potatoso/public_html/plugins/content/rokzoom/imagehandler.php on line 352

      Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /home/potatoso/public_html/plugins/content/rokzoom/imagehandler.php on line 318

      Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /home/potatoso/public_html/plugins/content/rokzoom/imagehandler.php on line 489

      Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /home/potatoso/public_html/plugins/content/rokzoom/imagehandler.php on line 352

      I understood from the frequent errors that the bottleneck is because of the rockzoom plugin. So I disabled it. Then it appeard that pagebreak plugin consumes alot of memory,etc..
      Now I understand the need to make a radical solution to the problem. It is not an issue of a plugin or a particular component, rather the additive sum of all.

      The problem is very dangerous becuase the error can happen in the middle of a transaction : For instance it appeared one time testing with registration, which caused inconsistensis in the database.

      Today I came with an idea, but I am not sure. The idea is to have all the media files put in another host server (for example flickr). The essential media directory would be the style directory in the Firenzi template directory. It contains images for header, footer,etc. Dear Sir, is it possible to put all these in another server ? Will that solve the problem ? Is there any radical optimization I can make ?

      Thank you in advance.
    • --
      Ahmed Charfeddine
      Chess Programmer, www.potatosoftware.com
      Batch Document, on the road : www.batchdocument.com
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: PHP Memory limit, and rockzoom, and radical solution to mem.

    Posted 16 years 5 months ago
    • Most shared hosting providers set the php.ini file to 8MB by default but do allow users to increase the memory as needed.

      I think you're going to run into this problem with any template you use now or in the future.

      I don't know if your solution would work or even if it's plausible.

      IMO, the best solution would be to insist your host increase the memory limit to 32MB, or start looking for another host.
    • Thanks,
      jim
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: PHP Memory limit, and rockzoom, and radical solution to mem.

    Posted 16 years 5 months ago
    • It's true, and Joomla itself uses up alot more memory in J1.5 than it did in J1.0. It's not really the template that's at fault, it's the fact that Joomla is just more memory hungry now. However, 16M or 32M should be adequate. 8M is just ridiculously small, Joomla documentation should really have this recommendation.

Time to create page: 0.084 seconds