1

Forgive me if this is the wrong place; was unsure whether to post this on SO or here.

I'm getting the above error from a script, implying that I've reached the limit of 64mb of memory for the script. The problem is, I have the memory_limit in php.ini set to 128M; and according to phpinfo() that's what the memory limit is indeed set to. So why am I getting an error implying I'm hitting the 64m limit of memory when I have the limit set to 128m?

Server config:

  • Redhat Linux Enterprise 6.3
  • PHP 5.3.3
  • Apache 2.2.15
  • 8GB of RAM
4
  • Did you restart PHP? Commented Aug 14, 2015 at 20:28
  • yes. Restarted Apache as well. Commented Aug 14, 2015 at 20:30
  • 1
    OK, well, perhaps you could tell us something about your server. Commented Aug 14, 2015 at 20:37
  • Whoops, knew I forgot something. Server config added. Commented Aug 14, 2015 at 21:05

1 Answer 1

0

Never mind. Just finished a big refactor of the script; drastically reduced memory usage and am no longer getting the error.

I should note I was able to work around the error for a while with this php call:

ini_set('memory_limit','256M'); 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.