PassMark Logo
Home » Forum

memory - Allowed memory size exhausted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johan
    Member
    • Sep 2013
    • 40

    #1

    memory - Allowed memory size exhausted

    Hi,

    My host seems to be messing with its memory allocation and I now get

    Code:
    mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/plat-linnas01/e/extreme-macro.co.uk/user/htdocs/search/search.php on line 1586, referer: http://extreme-macro.co.uk/
    I can cure this by adding

    Code:
    // Get as much memory as possible as this can be big.
    @ini_set('memory_limit', '256M');
    into lines 22-23 of search.php, but of course this gets autouploaded each night from the original, which doesn't have my lines.

    Any suggestions fellas?

    Thx
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    See this FAQ for other solutions.
    http://www.wrensoft.com/zoom/support...hp_outofmemory

    Comment

    • johan
      Member
      • Sep 2013
      • 40

      #3
      Thx, appreciated

      Comment

      • johan
        Member
        • Sep 2013
        • 40

        #4
        Options 1 and 2 are not open to me - with 3, problem is I autogenerate and autoftp each 24hrs, which overwrites my changes to search.php with the original, which doesn't add @ini_set('memory_limit'. Is there a way to run the script each night without replacing search.php?

        Comment

        • David
          Administrator
          • Dec 2004
          • 4714

          #5
          In the "Advanced" configuration window, you can select your own custom script to upload.

          The risk however is that your script then doesn't get bug fixes and improvements as we release them.

          Comment

          • johan
            Member
            • Sep 2013
            • 40

            #6
            Ahhh thanks, I'll try that. Appreciated

            Comment

            Working...