randy

*
  • *
  • 30
Memory Error?
« on: June 05, 2012, 03:49:33 AM »
Hello,

I have just moved to a new shared/semi-dedicated server and this is the first time to run on this server and I get this error.

Quote
<---SNIP!--->5697 | 8 | 24,730.4 | 1:19:25 | 0:00:06 | 4 | 5,307.8 Kb | 5670 | 0 | 0
5698 | 7 | 24,730.4 | 1:19:25 | 0:00:05 | 4 | 5,308.1 Kb | 5671 | 0 | 1
5699 | 6 | 24,730.4 | 1:19:25 | 0:00:05 | 4 | 5,308.2 Kb | 5672 | 0 | 0
5700 | 5 | 24,730.4 | 1:19:25 | 0:00:04 | 4 | 5,308.4 Kb | 5673 | 0 | 0
5701 | 4 | 24,730.4 | 1:19:29 | 0:00:03 | 4 | 5,308.7 Kb | 5674 | 0 | 0
5702 | 3 | 24,730.4 | 1:19:29 | 0:00:02 | 4 | 5,308.9 Kb | 5675 | 0 | 0
5703 | 2 | 24,730.4 | 1:19:29 | 0:00:01 | 4 | 5,309.1 Kb | 5676 | 0 | 1
5704 | 1 | 24,730.4 | 1:19:29 | 0:00:00 | 4 | 5,309.3 Kb | 5677 | 0 | 0
5705 | 0 | 24,730.4 | 1:19:29 | 0:00:00 | 5 | 4,223.3 Kb | 5678 | 0 | -1086
<h4>Completed</h4>Total pages indexed: 5678
<br>Creating sitemaps...
 and calculating changelog...
<div id="percprog"></div>
<br />
<b>Fatal error</b>:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 1261607 bytes) in <b>/home/jturbowa/other_domains/satxweather.com/generator/pages/class.utils.inc.php</b> on line <b>102</b><br />

It appears as if I am out of memory, but it also says it completed. Is there a way to better manage the memory? Or what is the fix?
**********
Re: Memory Error?
« Reply #1 on: June 07, 2012, 05:11:47 PM »
Hello,

looks like memory limit is exceeded at last step when sitemap is created, you need to increase memry_limit settig in php.ini file.

randy

*
  • *
  • 30
Re: Memory Error?
« Reply #2 on: June 07, 2012, 10:35:17 PM »
Increased from 64 to 96 to 128 to 512... still get the error. Do I just keep increasing it more and more till it doesn't fail anymore?

Quote
Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 74 bytes) in /home/jturbowa/other_domains/satxweather.com/generator/ pages/class.xml-creator.inc.php on line 382
**********

randy

*
  • *
  • 30
Re: Memory Error?
« Reply #3 on: June 07, 2012, 11:48:34 PM »
Sorry, I entered this topic in the wrong section... Feel free to move to the Unlimited Section
**********

randy

*
  • *
  • 30
Re: Memory Error?
« Reply #4 on: June 08, 2012, 12:21:38 AM »
Memory limit set to 700... How do I fix this? Here is the error:

Quote
1962 | 2 | 1,380.8 | 0:12:43 | 0:00:00 | 3 | 3,109.7 Kb | 1959 | 0 | 0
1963 | 1 | 1,380.8 | 0:12:43 | 0:00:00 | 3 | 3,110.0 Kb | 1960 | 0 | 1
1964 | 0 | 1,380.8 | 0:12:43 | 0:00:00 | 4 | 2,645.6 Kb | 1961 | 0 | -465
<h4>Completed</h4>Total pages indexed: 1961
<br>Creating sitemaps...
 and calculating changelog...
<div id="percprog"></div>
<br />
<b>Warning</b>:  fopen(/home/jturbowa/other_domains/satxweather.com/generator/) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Is a directory in <b>/home/jturbowa/other_domains/satxweather.com/generator/pages/class.utils.inc.php</b> on line <b>102</b><br />
<br />
<b>Warning</b>:  fclose(): supplied argument is not a valid stream resource in <b>/home/jturbowa/other_domains/satxweather.com/generator/pages/class.xml-creator.inc.php</b> on line <b>322</b><br />
**********
Re: Memory Error?
« Reply #5 on: June 09, 2012, 03:03:30 PM »
Hello,

please let me know your generator URL/login in private message to check this.

randy

*
  • *
  • 30
Re: Memory Error?
« Reply #6 on: June 13, 2012, 04:00:19 PM »
Login info sent via pm.
**********

randy

*
  • *
  • 30
Re: Memory Error?
« Reply #7 on: June 14, 2012, 03:17:55 PM »
Thank you, Oleg, for correcting the "save sitemap to" settings.

I really appreciate your help.
**********