XML Sitemaps Generator

Author Topic: Fatal error: Allowed memory size of 25165824 ....  (Read 21946 times)

payments52

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

payments52

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
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.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

da_lyman

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 18
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?

da_lyman

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 18
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.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2