XML Sitemaps Generator

Author Topic: Amount of memory required?  (Read 33413 times)

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Amount of memory required?
« on: July 24, 2007, 07:00:34 AM »
I am using a max. of 64 MB PHP memory.

I am getting stuck at about 2XXX pages at depth 3. Sometimes I get an error like "Out of memory (allocated 443285504)".

My settings for "Make a delay between requests, X seconds after each N requests:" is 3s every 50 requests. Maximum execution time = 0, Save the script state, every X seconds: = 30, Maximum pages: = 0, Maximum depth level: = 0,

I only selected the Yahoo sitemaps as the only additional sitemap to create. Don't understand how much resources this script is going to need to complete 1 sitemap generation run and how much it is going to need to update the sitemap daily for my site.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Amount of memory required?
« Reply #1 on: July 24, 2007, 02:19:38 PM »
I increased my max php memory to 128 mb..

Links depth: 2
Current page: ----
Pages added to sitemap: 2680
Pages scanned: 2680 (192,330.4 Kb)
Pages left: 3798 (+ 6015 queued for the next depth level)
Time passed: 10:50
Time left: 15:22
Memory usage: -
Resuming the last session (last updated: 2007-07-24 10:14:06)
Fatal error: Out of memory (allocated 685244416) (tried to allocate 1833823 bytes) in pages/class.grab.inc.php(2) : eval()'d code on line 300

-------------

I really don't get it..... How much more RAM do I need for this script to work properly on my site? I have already created a database driven sitemap page to import the links to the XML Sitemaps script.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Amount of memory required?
« Reply #2 on: July 24, 2007, 09:11:48 PM »
Hello,

try to restart Apache, it looks like your php config changes did not take effect.
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.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Amount of memory required?
« Reply #3 on: July 25, 2007, 03:09:09 AM »
I did restart.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Crawler is stuck and can't restart
« Reply #4 on: July 25, 2007, 03:23:54 AM »
My crawler went dead after a while and I clicked on the interrupt link and nothing much happened. I tried to start a new manual crawl without resuming but it just won't start.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Crawler is stuck and can't restart
« Reply #5 on: July 25, 2007, 03:35:29 AM »
I think I found the problem. I set the saving option at 30 s and the script seems to hang at exactly 30 s every time.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Amount of memory required?
« Reply #6 on: July 25, 2007, 03:51:15 AM »
I am finally generating more than 3000 pages but I had to turn off the "Save every X seconds" option to make it work. It was causing the script to stop at every X seconds instead of saving it and continuing.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Crawler is stuck and can't restart
« Reply #7 on: July 26, 2007, 12:22:54 AM »
Hello,

you should increase max_execution_time setting in php configuration to solve that.
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.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Crawler is stuck and can't restart
« Reply #8 on: July 26, 2007, 02:17:33 AM »
Ok, I shall increase max execution time. I managed to crawl over 20,000 pages in a period of about 12 hours + but nothing was saved in the end when the crawler crashed.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Crawler is stuck and can't restart
« Reply #9 on: July 26, 2007, 03:27:09 AM »
I extended my max execution time to 80s and told the script to save every 60s but it still stops at 60s.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Amount of memory required?
« Reply #10 on: July 26, 2007, 03:34:15 AM »
Running this script without saving is stupid. But I can't run this script properly if I enable saving. What can I do now? My max ram = 64 MB, max execution = 80 seconds. What more must I do??

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Crawler is stuck and can't restart
« Reply #11 on: July 26, 2007, 03:40:43 AM »
I get the error out of memory when my script reaches the save point. My save point is still way below the max execution time limit so I don't get it. If I turn off the save mode, I can run the script beyond my previous save point. Therefore, I do not think this is an issue with the max php memory or max execution time limit.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Crawler is stuck and can't restart
« Reply #12 on: July 26, 2007, 03:51:42 AM »
I just tested the script to save every 10 seconds and after the 1st 10 seconds was over, the script crashed with an out of memory error. This does not make sense. I have 64 mb max memory right now and 80s max execution time.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Crawler is stuck and can't restart
« Reply #13 on: July 26, 2007, 10:55:48 AM »
Hello,

please PM me with server access details for troubleshooting.
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.

virtualdude

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 20
Re: Amount of memory required?
« Reply #14 on: July 28, 2007, 03:53:35 PM »
I have given you FTP access to my sitemap folder and the username/password to the script. What have you discovered and how do I resolve this problem?

 

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