|
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...
Only registered users can write comments. Please login or register. |