[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [vps-mail] sa-learn gets Out of memory!
Can anyone tell me where "bayes_path //.spamassassin/bayes R/W" is?
-----Original Message-----
From: owner-vps-mail@xxxxxxxxxxxx [mailto:owner-vps-mail@xxxxxxxxxxxx] On
Behalf Of Abigail Marshall
Sent: Wednesday, December 31, 2003 5:50 PM
To: Brian Haines
Subject: Re: [vps-mail] sa-learn gets Out of memory!
BH> I am starting to get "Out of memory!" messages when I run sa-learn
BH> and now I get "Cannot open bayes_path //.spamassassin/bayes R/W:
BH> File exists" for the first time. Any ideas?
Some tips - this is for SA 2.54 on a VPS1:
1. Check your path to the bayes files. If you see lock
files in the directory or a file with an extension like
.new, it means that the bayes database has become corrupted. There is a
possibility that you can fix this manually, but my experience has been that
it is best to delete everything and start over.
2. In the directory where the bayes files are stored, look
at the size of bayes_seen. With SA 2.54 this will simply
grow over time; however, because of limitations on memory in the VPS
environment, there is a point at which it grows too large for sa-learn to
run efficiently. (What is "too large" may depend on your specific
environment). I have no fix for this other than to start over - for this
reason I do keep some spam/ham corpus files available.
3. If sa-learn is run with a cron job, it does need to be
run with the ulimit command.
4. It is best and easiest to run sa-learn with a cron job on
a regular basis with small files (and then rotate or delete
the files already learned), than to let a large file
accumulate - again because of potential memory issues.
"small" is something you need to determine for yourself over time, but the
system shouldn't have a problem with files 1 meg. and under.
-Abigail
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
Main Index |
Thread Index