Page 1 of 1

Problem with configuration performance

Posted: 2010-01-04 12:50
by snico
Hello,

Here is my configuration :
Windows 2003 standard 64 bits
Xeon Quad 2.83ghz / 8 Go ram / 750Go sata Raid1 : http://www.ovh.co.uk/products/eg_best_of.xml
I have a 100Mbits internet connexion
Hmailserver 5.3 B1617 with sql express 2005 32bits
I have 5 domains, and 600 accounts.
Around 300 users work with IMAP, and there are 500 000 mails / 200Go for this 300 accounts.
I Use an external server to tag spam : http://www.ovh.co.uk/items/distribution ... l?sort=gnu

When I set performance threading to this value :
Max number of command threads : 15
Delivery threads : 15
Max number of asynchronous task threads : 15
Worker thread priority : Normal

The server is going very slowly, and nobody can connect to it.


When I set performance threading to this value :
Max number of command threads : 4
Delivery threads : 4
Max number of asynchronous task threads : 4
Worker thread priority : Normal

The server is going faster.

I see on this forum some people who set this value max number of command threads to 500
Why can't I set more than 10 ?
Performance should be better with a greater value for the max number of threads.
How can I configure my server for the best performance ?

Nicolas

Re: Problem with configuration performance

Posted: 2010-01-04 13:10
by sheffters
Make sure your anti-virus isn't crappy ... it might be that its taking up a CPU per mail, and hence with 15 threads its trying to use 15 CPUs and so slowing the thing to a crawl.

ClamWin is bad at this - i.e. doesn't work on heavily loaded servers ... try TBBs ClamAV windows port (see off topic forum) if you got a heavily loaded server.

S.

Re: Problem with configuration performance

Posted: 2010-01-04 13:22
by snico
Thank you for your answer.

I don't use an antivirus.

Re: Problem with configuration performance

Posted: 2010-01-04 13:30
by sheffters
What database do you use?

Maybe it needsa bit of fie tuning if people on webmail a lot etc and its doing a lot of sorts etc?

S.

Re: Problem with configuration performance

Posted: 2010-01-04 14:13
by dzekas
http://www.hmailserver.com/forum/viewto ... 10&t=16916

Turn off message indexing, if you still can connect to admin interface.

If you don't have it turned on, check your webmail clients and make sure that they don't have large mailboxes or mailbox sorting is not turned on.

Re: Problem with configuration performance

Posted: 2010-01-04 14:37
by snico
Hello,

I use sql express 2005 SP3.
I turn off the message indexing.
I set performance threading to 15 / 15 / 15 instead of 4 / 4 / 4

I wait 1 day to see if it's fater.

thank you

Re: Problem with configuration performance

Posted: 2010-01-04 14:47
by dzekas
snico wrote: I wait 1 day to see if it's fater.
If indexing is turned off, webmail clients with large sorted mailboxes will overload your server.

If you turn it on, message indexing will overload hMailServer 5.3.0 + MS SQL Compact Ed. Get better SQL server. If you have database separated from hMailServer, your setup might be able to use more than one core or cpu. Or I made mistake about your setup and SQL Express is not same thing that you get in default hMailServer package.

Re: Problem with configuration performance

Posted: 2010-01-04 15:36
by sheffters
Elo,

Express and compact edition are different (I think).

Express is a free download from MS that is supposed to be as good as real SQL Server, just with a max size limitation.

http://www.microsoft.com/Express/SQL/

http://www.microsoft.com/Sqlserver/2005 ... mpact.aspx

I'd be tempted to go for MySQL rather than anthing else.

S.