Internal Server Error when generating sitemap
« on: July 07, 2013, 07:56:49 PM »
Hi guys,

I have an issue with the standalone sitemap generator - it is producing an internal server error when it is mid generation.

Looks like it is getting about 70% of the way through the scan before it stops like this.

Could someone help me to troubleshoot this issue?

thanks in advance

Dave
Re: Internal Server Error when generating sitemap
« Reply #1 on: July 08, 2013, 05:54:37 PM »
update: I has completed, but it produced the same error several times, Im wondering if there is some sort of memory issue?

the sitemap is quite big - 4864 pages. But also the server is quite capable as well - Quad core AMD with 8GB ram.

Any ideas?
Re: Internal Server Error when generating sitemap
« Reply #2 on: July 08, 2013, 10:13:34 PM »
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: Internal Server Error when generating sitemap
« Reply #3 on: July 16, 2013, 08:27:46 AM »
tried these values and they did not help - checked and they had taken effect - they show up if I spill a php config page.

memory_limit   1024M
max_execution_time   600

However, when I checked the sitemap generation execution time, it said 16 minutes, so Im wondering if the max execution variable still wasnt long enough.

Assuming thats seconds, I have changed it to 20 x 60 (20 minutes) = 1200

And I am just re-running the generator now.
Re: Internal Server Error when generating sitemap
« Reply #4 on: July 16, 2013, 08:39:42 AM »
failed again:

Time passed: 0:08:04
 Time left: 0:00:05
 Memory usage: 3,721.9 Kb

Maybe that memory usage is the issue?