Fatal error: Allowed memory size of 25165824 ....
« on: February 27, 2008, 10:14:55 AM »
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
Re: Fatal error: Allowed memory size of 25165824 ....
« Reply #1 on: February 28, 2008, 12:44:35 AM »
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.
Re: Fatal error: Allowed memory size of 25165824 ....
« Reply #2 on: February 29, 2008, 02:30:38 AM »
I have access to the php.ini, what is a safe memory limit? I tried 32M but that failed as well.
Re: Fatal error: Allowed memory size of 25165824 ....
« Reply #3 on: February 29, 2008, 11:20:16 PM »
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.
Re: Fatal error: Allowed memory size of 25165824 ....
« Reply #4 on: March 08, 2008, 12:16:55 AM »
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?
Re: Fatal error: Allowed memory size of 25165824 ....
« Reply #5 on: March 08, 2008, 12:33:13 AM »
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.
Re: Fatal error: Allowed memory size of 25165824 ....
« Reply #6 on: March 09, 2008, 08:55:56 PM »
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.