Memory maxes out, regardless what I set it at
« on: October 03, 2008, 06:58:04 PM »
Initially I set it to 0. It maxed out. then I set it to 100M. It maxed out. Then I set it to 4M, and it maxed out with an error: Fatal error: Allowed memory size of 4194304 bytes exhausted (tried to allocate 87 bytes) in /home/pljmagaz/public_html/xml-sitemaps/pages/class.grab.inc.php(2) : eval()'d code on line 343

It maxed out trying to allocate 87 bytes?!? What's the deal?!?
Re: Memory maxes out, regardless what I set it at
« Reply #1 on: October 04, 2008, 12:09:08 AM »
Hello,

you should increase memory_limit, not decrease it. It exceeds the limit by allocating 87 bytes since there was only 86 bytes or less free at that point out of total allowed memory.
Re: Memory maxes out, regardless what I set it at
« Reply #2 on: October 04, 2008, 01:06:11 PM »
What exactly is the next size up from unlimited?
Re: Memory maxes out, regardless what I set it at
« Reply #3 on: October 06, 2008, 03:06:12 PM »
I installed this software on Saturday.  Got good email replies when I was purchasing and for the download,
BUT once I ran this and received the following error.  I haven't heard back at all.  And from what I'm reading in this forum, this software has a serious problem with memory. 

I have over 100 websites to do and I can't even get the first one to work.  If anyone has a solution or another program that can do this please let me know.  I also use Host Gator and their memory limit is 40mb.  I set the configuration to 35mb hoping this would solve the problem but it didn't.

Links depth: 4
Current page: tshirts/I-m-The-Tokin--Black-Guy-T-Shirt.html
Pages added to sitemap: 6316
Pages scanned: 7480 (95,488.4 KB)
Pages left: 1212 (+ 33484 queued for the next depth level)
Time passed: 3:00
Time left: 0:29
Memory usage: 18,363.7 Kb
Resuming the last session (last updated: 2008-10-04 13:40:03)
Fatal error: Allowed memory size of 36700160 bytes exhausted (tried to allocate 5893996 bytes) in /home/amazingb/public_html/generator/pages/class.utils.inc.php(2) : eval()'d code on line 6

J Muniz
Amazing Butterflies
Re: Memory maxes out, regardless what I set it at
« Reply #4 on: October 06, 2008, 03:48:14 PM »
Quote
What exactly is the next size up from unlimited?
In some server configurations unlimited option is not allowed (as you see from the error message) and in this case you should increase memory_limit instead.
Re: Memory maxes out, regardless what I set it at
« Reply #5 on: October 06, 2008, 05:47:45 PM »
If the server that this is running on only allows 40mb and I set it to 40mb it still crashes.
I've tried 30, 35, 40, 1000 ....   So what should I set it at for it to run?
J Muniz
Amazing Butterflies
Re: Memory maxes out, regardless what I set it at
« Reply #6 on: October 06, 2008, 08:12:33 PM »
This is the reply that I received from my hosting company....

Unfortunately the script is hitting the server-allowed 64MB php memory limit.
 Most, if not all, sitemap scripts are going to exceed this if you are indexing 40,000 pages.

If you can possible break this script up to run 2 or more instances with less pages indexed per
run that may do the trick though.


Can this be done?
J Muniz
Amazing Butterflies