Jump to content

[SOLVED] HOw do I avoid "Fatal error: Allowed memory size of 8388608 bytes exhausted "


Recommended Posts

I get this on a page

 

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes) in /home/rl/public_html/sandbox/functions.php on line 359

 

I know its running a lot of stuff, but it needs to.

I figured out how to increase, but I am trying to reduce its useage.

Let me expalin what I am doing

 

I am using IMAP to open a mail box

Then find all unseen messages

then from there read the messages extract data based on sender and then off to mysql

 

Any ideas?

So i solved it, I had an email I tried to read as html and it wasn't html so it ended up workin on the whole message instead of a 40 byte string 100 times so it did about 50000 times the work.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.