List Info

Thread: Question about expire times




Question about expire times
country flaguser name
United States
2008-03-07 19:27:18
Started the expire-quarantine-cache.pl script, with --debug
on it to see
what happens.

First it happily put this on the screen:
2008-03-06 16:40:13 Maia: [expire-quarantine-cache]
Starting
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
Suspected
Non-Spam                 : Yes
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
Suspected Spam
: Yes
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
Viruses/Malware
: Yes
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
items with
Invalid Mail Headers    : Yes
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
items with Banned
File Attachments : Yes
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
Confirmed
Non-Spam                 : No
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expire
Confirmed Spam
: No
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expiring
Suspected Spam
items [S] older than 14 days
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expiring
Virus/Malware
items [V] older than 14 days
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expiring
Invalid Mail
Header items [B] older than 14 days
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expiring
Banned File
Attachment items [F] older than 14 days
2008-03-06 16:40:13 Maia: [expire-quarantine-cache] Expiring
Suspected
Non-Spam items [H] older than 4 days

Note the date/time

This the next line:
2008-03-06 17:04:47 Maia: [expire-quarantine-cache] Deleting
Suspected
Non-Spam references to mail item 834712

1st question, why 24 minutes until the 1st message is
deleted?

More of those follow, this is the last deleted message:
2008-03-06 17:11:09 Maia: [expire-quarantine-cache] Deleting
mail item
846523

Okay, so it took 7 min to actually delete the messages then
it follows with:

2008-03-06 17:11:09 Maia: [expire-quarantine-cache] Expiring
Orphaned items
(mail with no recipients) older than one hour
2008-03-06 17:12:47 Maia: [expire-quarantine-cache] Expiring
Stray
References (recipient references with no mail items)

Sits here for a while (3 hours), then:

2008-03-06 20:29:58 Maia: [expire-quarantine-cache]
Recalculating statistics

Then this LONG pause

2008-03-07 02:48:51 Maia: [expire-quarantine-cache] Expiring
Tokens due
toexpire now
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] 0
Suspected Spam
itemsexpired
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] 0
Virus/Malware
itemsexpired
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] 0 items
with InvalidMail
Headers expired
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] 0 items
with Banned
FileAttachments expired
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] 1563
Suspected
Non-Spamitems expired
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] Current
Cache
AfterExpiration:
2008-03-07 02:48:51 Maia: [expire-quarantine-cache]
Suspected Spam items:
831297
2008-03-07 02:48:51 Maia: [expire-quarantine-cache]
Virus/Malware items:
1064
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] Items
with Invalid
MailHeaders    :      2307
2008-03-07 02:48:51 Maia: [expire-quarantine-cache] Items
with Banned
FileAttachments :        25
2008-03-07 02:48:51 Maia: [expire-quarantine-cache]
Suspected Non-Spam
items:     82266

And DONE!  10 hours?
10?!? 

2nd question.  Why?  What have I got wrong?  Maia eats all
its mail just
fine, the mailq sits at nothing all day long, Mysql is happy
most of the
time, so what is taking so long to expire?  And can it be
fixed?  Mysql
needs to be faster?  Method of indexing "stats" is
just too slow?  Do we
really need stats?  Help?

Dave Overton, Owner
SYIX.COM

davesyix.com
(530) 755-1751 x101
Fax (530) 751-8871
800-988-SYIX

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Question about expire times
country flaguser name
United States
2008-03-07 20:42:44
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Mar 7, 2008, at 7:27 PM, Dave Overton wrote:
> And DONE!  10 hours?
> 10?!?
>
> 2nd question.  Why?  What have I got wrong?  Maia eats
all its mail  
> just
> fine, the mailq sits at nothing all day long, Mysql is
happy most of  
> the
> time, so what is taking so long to expire?  And can it
be fixed?   
> Mysql
> needs to be faster?  Method of indexing
"stats" is just too slow?   
> Do we
> really need stats?  Help?


Most of those pauses are the database running the query to
find all  
the appropriate rows, and then it starts up again as it
deletes one  
message set at a time.

Finding all the messages to expire can be a big job - say,
one day's  
worth of mail if you run it once a day.

That said, if it's abnormally slow, it's probably a memory
or index  
issue.  Check the mysql schema and make sure that your
indexes match -  
especially on maia_mail and maia_mail_recipients.

next, assuming you are using innodb, check your innodb
paramaters -  
you need to dedicate a lot of memory to it.  search the
mailing list  
for mysql innodb tuning, there's been some discussions very
recently.

David Morton
Maia Mailguard http://www.maiamailguard
.com
mortondadgrmm.net



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFH0f0kUy30ODPkzl0RAiM5AJ4i8buBi/SI9I/18qxFdC4OyHpcWwCg
gsa6
ffHdsROU/NBZsbmV8eJrhso=
=Y1lg
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )