Database busy |
Post Reply
|
| Author | |
Stupid
Senior Member
Joined: 28 November 2005 Status: Offline Points: 127 |
Post Options
Thanks(0)
Quote Reply
Topic: Database busyPosted: 15 October 2007 at 12:52pm |
|
I am getting this "database busy" problem very often now and quarantine stops because of this. I am running:
SPF v.3.5.4.704 MySQL 5.0 I have nothing but SPF connected to the MySQL. Is there anything I can do? |
|
![]() |
|
LogSat
Admin Group
Joined: 25 January 2005 Location: United States Status: Offline Points: 4106 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 October 2007 at 7:17pm |
|
The latest pre-release build of SpamFilter, by popular request
, queues all emails that are to be quarantined if the database is unavailable. When the DB comes back online, SpamFilter will insert all pending emails.
|
|
![]() |
|
Stupid
Senior Member
Joined: 28 November 2005 Status: Offline Points: 127 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 October 2007 at 10:24am |
|
What caused it? I am interested in how to prevent this. It's not normal for a database behaves this way when only SPF is connected.
|
|
![]() |
|
atifghaffar
Senior Member
Joined: 31 May 2006 Location: Switzerland Status: Offline Points: 104 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 October 2007 at 5:17pm |
|
can you please give some specs of your mysql database.
hardware, software (OS, what else is running on this machine) some stats on daily volume in tblquarantine, etc |
|
|
best regards
Atif |
|
![]() |
|
Stupid
Senior Member
Joined: 28 November 2005 Status: Offline Points: 127 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 October 2007 at 6:28pm |
|
The machine is Dell poweredge 1425 with 2GB memory. I am also running a Blackberry enterprise server and websense filtering on there. It usually has 700M memory left.
I typically have 20-30K items in tblquarantine. |
|
![]() |
|
DavidF
Newbie
Joined: 07 September 2006 Location: New Zealand Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 October 2007 at 4:17pm |
|
I had the same sort of problems with SF v.3.5.4.704 and MySQL 4.1. On a fairly regular basis I had to stop and restart MySQL. I have found with SF 3.5.4.718 the problem has gone away. The one thing that I did do in addition to installing the lastest version of SF was modify the ini file settings for PDF scanning so I can't say for certain what has caused the problem to go away although the whole SF system seems to run a lot smoother with version 718 of SF.
|
|
![]() |
|
Pignet
Newbie
Joined: 08 December 2007 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 1:05am |
|
I see this issue on 718.
We are using SQL 2005 Ent, on a Dual processor HP server, with 3.5gb ram.
Our volume is 400,000+ into quarantine
We have a 7 day rentention
Our current database is up to 10GB
Today we have over 210,000 Database is busy messages...
I have not research if they do get inserted later, I am concerned we are dropping them...
Is there a way to see the reason why that message is returned? Our SQL server is running 3 other small databases that work fine and the server has plenty of free memory and processor.
Thanks for the help...
|
|
![]() |
|
Desperado
Senior Member
Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 10:35am |
|
Pignet,
210K errors sounds very excessive. However, some of us run SQL "Jobs" to do the expire from the DB and set SpamFilter to not do that task and I have not seen a DB Busy error since. BUT ... as I said, 210K errors really sounds like something else is going on. Curious though, what is your "DeleteExpiredEmailInterval" set to in the ini file?
|
|
|
The Desperado
Dan Seligmann. Work: http://www.mags.net Personal: http://www.desperado.com |
|
![]() |
|
jerbo128
Senior Member
Joined: 06 March 2006 Status: Offline Points: 178 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 4:30pm |
|
Pignet -
We have almost the same setup - but receive about 750K emails a day. Our quarantine runs about 5-7GB. We keep them for 7 days too.
We had the same issues several months ago also. At that time, Roberto had me try the following settings so prevent spamfilter from doing the cleanup:
interval in minutes to delete expired items in quarantine=0
days to store quarantined emails=30
I now clean our database using sql scripts that are set to run automatically every 5 mintues.
I have not had any issues with this problem since.
If you want a copy of the scripts email me. jerbo128 - hotmail
Jeremy
Edited by jerbo128 - 19 December 2007 at 4:32pm |
|
![]() |
|
Desperado
Senior Member
Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 4:38pm |
|
Jeremy,
I also set the following: DeleteExpiredEmailInterval=0
This should prevent SpamFilter from doing the actual message removal (I believe) and lets my SQL stored procedure do it. My cleanup procedure runs every 15 minutes and once in a while, one of my "steps" fails but it completes the next run. I have a grand total of ZERO database busy errors over the last 30 days. Edited by Desperado - 19 December 2007 at 4:40pm |
|
|
The Desperado
Dan Seligmann. Work: http://www.mags.net Personal: http://www.desperado.com |
|
![]() |
|
Pignet
Newbie
Joined: 08 December 2007 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 December 2007 at 12:57am |
|
Thank you for the suggestions. I will implement the ideas and look forward to less errors.
|
|
![]() |
|
Desperado
Senior Member
Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 December 2007 at 11:40am |
|
Pignet,
Did anyone get some SQL Stored Procedures to you for scheduling SQL to do the cleanup?
|
|
|
The Desperado
Dan Seligmann. Work: http://www.mags.net Personal: http://www.desperado.com |
|
![]() |
|
dcook
Senior Member
Joined: 31 January 2005 Location: United States Status: Offline Points: 174 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 December 2007 at 9:07am |
|
With Msql, we run innoDB storage engine. That helped us a bunch. Just curious are you also running innoDB and still getting these issues? |
|
|
Dwight
www.vividmix.com |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.203 seconds.


Topic Options
Post Options
Thanks(0)


, queues all emails that are to be quarantined if the database is unavailable. When the DB comes back online, SpamFilter will insert all pending emails.
