Sunday, 07 September 2008
 
Post Your News Here FREE!                                                                          
  Latest News
 





Lost Password?
No account yet? Register
Main Menu
Latest News
US News
World News
Politics
Sports
Business
Health
Science
Technology
Gaming
Entertainment
Press Releases
Opinion
- - - - - - -
Search For Stories
Contact Us
What Is PingPost?
WordPress Plugin
Feeds
 
Google Sitemap Generator MemoryError Workaround Fix
Pings: 1 - Written by Jafo Wednesday, 06 February 2008 
If you have ever used the Google Sitemap Generator python script on a busy Linux/Unix server where your access logs grow huge, chances are you have run into this error: MemoryError Basically, the script is calling the entire log file into memory before parsing it, and depending on your log file size and amount of memory on your machine, this could just be too much for it.  So what do you do now? Myself, I did what I assume you are doing right now and began Googling for answers, and other than an old fix for an older version (which didn't work for the latest), nothing fixed the issue. I just sat there wondering how I was going to shrink this log file down so the script could handle this, especially when I wasn't there to monitor it (i.e. a cron job).  I asked myself, "I wish I could just split it into smaller files"... Finally, the light came on: Duh, isn't this one of the reaso...

Comments

Only registered users can write comments.
Please login or register.

 
< Prev   Next >