My Bayesian filter keeps getting screwed up and causing mail flow to
stop. The problem seems to be expiring tokens out of the database. My
expiry setting is set to 200,000. I've tried many different settings for
this but they all seem to behave about the same. Auto learn is also on.
When this happens the mysqld service eats up loads of CPU and stops
responding to requests from Amavisd-new. Since Amavisd-new is expecting
information from mysqld it stops the mail flow. I attached the output
from the 'show processlist' command, one query seems to have been ran
for 12hours without stopping.
Is there other useful information I should get from the server? I have a
script set up to fix this state, collecting other information would not
be difficult. Using default MySQL settings (probably going to start
playing with that today).
Any suggestions would be greatly appreciated, my experience with MySQL
is very limited.
Thanks,
Curtis
ÿþI d U s e r H o s t d b C o m m a n d
T i m e S t a t e I n f o
5 1 2 6 2 5 b a y e s l o c a l h o s t b a y e s
Q u e r y 4 4 8 7 8 S e n d i n g d a t a
S E L E C T c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 7 9 6 4 b a y e s l o c a l h o s t b a y e s
Q u e r y 1 6 0 3 S e n d i n g d a t a
S E L E C T c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 8 5 3 4 b a y e s l o c a l h o s t b a y e s
Q u e r y 1 3 0 3 S e n d i n g d a t a
S E L E C T c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 9 0 0 7 b a y e s l o c a l h o s t b a y e s
Q u e r y 9 9 6 S e n d i n g d a t a S E L E C T
c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 9 3 8 5 b a y e s l o c a l h o s t b a y e s
Q u e r y 6 9 5 S e n d i n g d a t a S E L E C T
c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 9 6 8 6 b a y e s l o c a l h o s t b a y e s
Q u e r y 3 9 2 S e n d i n g d a t a S E L E C T
c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 9 9 0 5 b a y e s l o c a l h o s t b a y e s
Q u e r y 9 0 S e n d i n g d a t a S E L E C T
c o u n t ( * ) \ n F R O M
b a y e s _ t o k e n \ n W H E R E i d =
' 1 ' \ n A N D a t i
5 6 9 9 4 2 b a y e s l o c a l h o s t b a y e s
Q u e r y 0 U p d a t i n g U P D A T E
b a y e s _ t o k e n S E T a t i m e = ' 1 2 6 8 1 4 4 6 2 1 '
W H E R E i d = ' 1 ' A N D t o k e n I N
( ' ) >