• Welcome to Sitemap Generator Forum.
 

Fatal error: Allowed memory size of 25165824 ....

Started by payments52, February 27, 2008, 10:14:55 AM

Previous topic - Next topic

payments52

Bought and installed XML Sitemaps today.

The following error was generated

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 524288 bytes) in /path/public_html/generator/pages/class.utils.inc.php(2) : eval()'d code on line 6

Please advise how to solve this
Regards
Adrian

XML-Sitemaps Support

Hello,
it looks like your server configuration doesn't allow to run the script long enough to create full sitemap. Please try to increase memory_limit and max_execution_time settings in php configuration at your host (php.ini file) or contact hosting support regarding this.

payments52

I have access to the php.ini, what is a safe memory limit? I tried 32M but that failed as well.

XML-Sitemaps Support

I'd suggest to set a larger value (like 128M or 256M), then execute sitemap generator and track current memory usage in progress window. Then you can decrease the limit to the highest memory usage value you got when generated sitemap.

da_lyman

My web server can not change the php.ini file, but they say i can put one @ my root folder that should work.  Can anybody email me a copy of a good php.ini file?

da_lyman

I have located a php.ini-dist file from the site php . net.  What are your recomendations for my site?  We have over 1 million links to crawl.  Thanks.

XML-Sitemaps Support

It's not possible to guesstimate the memory limit exactly, you can find it out by trial and error (you can always resume generation so that's not a problem).
For larger sites it's recommended to execute generator in command line via SSH though.