Menu

Memory limit

Help
macalter
2010-12-14
2013-05-30
  • macalter

    macalter - 2010-12-14

    Was trying to list all records attached to S9. I knew there were a lot and did get the "memory error". Wanted to check what my settings were and think they're not correct. "phpinfo script" file is 90MB as confirmed by my web host. However, when I check configuration's Advance tab, it says 64MB.

    Should I be changing the Advance tab setting for Memory Limit to 90MB? No idea if this will allow me to display all the records for this Source but at least I'll know when I get the error.

     
  • Stephen Arnold

    Stephen Arnold - 2010-12-15

    Mac
    Sorry I don't understand your question. As noted many times in these forums, there are two places where memory limits can be set:
    1) PHP.INI
    2) PGV's configuration

    What does Advance tab mean?

    Under Admin > PHP INfo > Core, you'll find Memory Limit:
    memory_limit xxxM xxxM

    The first is the amount of Local memory, and the second is the Master memory.  Your local memory can not exceed your master memory.

    I am assuming yours will read:
    memory_limit 64M 90M

    Change your configuration allocation to 90M to use the entire amount your host has enabled.
    -Stephen

     
  • macalter

    macalter - 2010-12-15

    I went to Admin > Configuration > #4 Site Configuration / Advanced and tried to change Memory Limit to 90M but it doesn't save. (config.php is 777) . Don't know about a php.ini file or where it lives to change it there.

    I didn't use search of forums but did try Wiki and am hopeless at using the search to find anything.

     
  • Stephen Arnold

    Stephen Arnold - 2010-12-15

    Mac
    GUI tells you whether it is able to write to CONFIG.PHP. If not, it has bright red letters in a warning.
    You can always simply change the one line in the CONFIG.PHP and save this change rather than going through all the GUI steps.

    Searching these forums is easy. FORUMS tab, SEARCH and enter your terms. Don't use too many - keep it simple.
    As I said earlier, you can check your assigned values on the CORE > memory limit line in the phpinfo under Admin.

    You should study your server setup and know your php.ini location as there are many tweaks available, however - if the phpinfo gives a master value of 90M, it is doubtful you need to make any change there.  The line is above:
                                   local       master
    memory_limit 64M 90M

    -Stephen

     
  • macalter

    macalter - 2010-12-15

    memory_limit 64M 90M (php.ini file, I do have the URL for it)

    So, I assume via the Admin > Configuration, I should have the setting at 90M?

     
  • Gerry Kroll

    Gerry Kroll - 2010-12-16

    Mac:
    Yes.  The memory limit is within Configuration Step 4, "Advanced Settings" tab.  Be sure to continue clicking "Next" until you're told that the configuration has been saved.

    The need to continue clicking "Next" has been mentioned several times in the Help forums.  This annoyance is not very likely to be corrected any time soon.

     
  • Gerry Kroll

    Gerry Kroll - 2010-12-16

    Mac:
    It's not likely that you're running out of memory when you're trying to produce the Source list.  It's much more likely that you've reached the maximum execution time.

     
  • macalter

    macalter - 2010-12-18

    canajun2eh:
    If I've " maximum execution time", what alternative do I have to produce reports such as Sources and others?

     
  • Gerry Kroll

    Gerry Kroll - 2010-12-19

    Mac:
    You need to determine what limit your ISP has placed on the execution time.  You do this by logging is as Admin, accessing the Admin menu, and clicking on the "PHP Information" option. 

    Look for a line that says something like "max_execution_time".  You'll see two values on this line.  The left value is what you currently have PhpGedView set to, and the right value is the time limit set by your ISP.

    If the two values are different, it's probable that the left value is less than the right value.  In this case, you can increase the execution time limit in PGV.  You do this by accessing the GEDCOM configuration.  The PHP time limit is the last option in the first option group (GEDCOM Basics).

    It's also possible that your ISP allows you to override the default time limit.  In this case, you can just enter a larger value for the PHP time limit.

     
  • macalter

    macalter - 2010-12-19

    PHP Information:
    max_execution_time 60 30

     
  • Stephen Arnold

    Stephen Arnold - 2010-12-19

    Mac
    As we have said, the left is LOCAL (PGV) and the right the MASTER (server). In this case you have attempted to override the 30 second limit by setting your PGV config to greater than what your ISP has allowed. You will need to contact your ISP/Host to increase your time, if you need more.
    -Stephen

     

Log in to post a comment.