Menu

Memory size exhausted

Help
Jules
2009-10-31
2013-05-30
  • Jules

    Jules - 2009-10-31

    On Version 4.22 I get the following error:

    "Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 35 bytes) in H:\GedView\includes\functions\functions_print_lists.php on line 61" while searching a person.

    Adding memory in config.php doesn't help anything.
    I must add that the database contains approx. 17000 (seventeenthousand) individuals.

    Any ideas?

    EJF

     
  • Greg Roach

    Greg Roach - 2009-10-31

    There are two memory limits.  The one in config.php, and a server-wide one in php.ini.

    The lower applies.  Edit php.ini and set the memory limit to something like 128M or 256M.  Restart your webserver (apache/iis) for the change to take effect.

     
  • Jules

    Jules - 2009-11-01

    Thanks! Both files are set to 512M now but the error remains still the same. Is there an other tweak somewhere?

     
  • Greg Roach

    Greg Roach - 2009-11-01

    <<Both files are set to 512M>>

    If your error is the same (i.e. you have reached a 32M limit), then I guess you haven't updated the right PHP.INI setting.

     
  • Jules

    Jules - 2009-11-01

    The PHP Information (Version 5.2.10) in PGV tells me it has a memory limit of 512M. So the PHP.INI file should be OK.

    What about the "post_max_size" of 8M? Anything to do with the problem?

     
  • Greg Roach

    Greg Roach - 2009-11-01

    You said <<the error remains still the same>>

    The error was <<memory size of 335544320 bytes exhausted>>

    Are you saying that you are still getting this *exact* error, or whether you are getting a different error, say at 536870912 bytes?

     
  • Greg Roach

    Greg Roach - 2009-11-01

    Also, the PHP information page shows *two* limits.  Are these *Both* 512M

     
  • Jules

    Jules - 2009-11-01

    The error message is now

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16 bytes) in H:\GedView\includes\functions\functions_print_lists.php on line 61

    and yes, both limits are set to 512M.

     
  • Stephen Arnold

    Stephen Arnold - 2009-11-01

    Jules 
    Either your server is especially slow, or there must be something wrong with your GEDCOM. My RAM is set to 256mb and my GEDCOM exceeds 50mb, yet we're able to import without incident and certainly don't exhaust the available memory. 

    That said, its looking for only a bit more, so increase it to 640MB or so and try it again. 
    -Stephen

     
  • Stephen Arnold

    Stephen Arnold - 2009-11-01

    Sorry,  I meant to also say that it would seem you probably don't have your DB properly set up - most likely a collation problem. There are numerous posts in HELP and OPEN DISCUSSION forums about slow results and memory issues.  Check the DB first and make sure it is optimized and properly collated. Then perhaps reimport your GEDCOM. 
    =Stephen

     
  • Jules

    Jules - 2009-11-02

    Thanks everybody!

    The good idea was to reimport the GEDCOM File and - wow - all problems are gone.

    A fine start in a fine week.

    EJF

     

Log in to post a comment.