ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Memory limit question

September 17, 2011 6:27pm

Subscribe [2]
  • #1 / Sep 17, 2011 6:27pm

    jonnyrapp

    21 posts

    Hi not sure if this is the right place to post, but have been getting some memory errors on an ee2 site - running the latest build. I checked through and disabled extensions and found that it was reverse relating entries that was causing the memory limit error, but have just noticed something that seems odd to me, but maybe someone can explain it.

    The error message I was getting was along the lines of:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 811 bytes) in…

    I never bothered looking at the allowed memory size until now, because when I first started building the site I was using the ajw datagrab module, and that had time-out issues, so I spoke with the hosting company and after multiple tries the memory limit was upped to 512M.

    I have checked in both phpinfo.php and in tools > Utilities > PHP Info and they both say the local value is 512M and the master value is 64M.

    But what I’m confused by is the 67108864 = 64 MB yeah? so is the 512 local value being ignored?

    Sorry to ask if this is a stupid question, am a designer really, not a developer, but does anyone have an idea about this? Can I overide or set the master value higher?

    I can disable the related entries for now, but would like to figure out the memory thing.

    Cheers Jonny Rapp

  • #2 / Sep 18, 2011 6:45pm

    Kevin Smith

    4784 posts

    Hi jonnyrapp,

    You’re right, 67108864 bytes equals 64 MB, which is the master php memory limit. My general recommendation here, of course, is to raise your PHP memory limit (and/or work to reduce the complexity of your templates).  Unfortunately, we’re not experts in server configuration, so it’s best to work with your host to determine how to raise your PHP memory limit.

  • #3 / Sep 19, 2011 2:19am

    jonnyrapp

    21 posts

    Ah cool, I just wanted to make sure before I emailed them, so even tho it does say the local value is 512M it does seem that its being ignored or not being used?

  • #4 / Sep 20, 2011 11:13am

    Kevin Smith

    4784 posts

    Right, it would seem so, at least in this instance.

    I’ll leave this thread open for a bit so that you can report back after you hear from your host. Your experience will likely be helpful to others in the community!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases