Problem with configuration performance

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
snico
New user
New user
Posts: 27
Joined: 2010-01-04 12:18

Problem with configuration performance

Post by snico » 2010-01-04 12:50

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
Nicolas Cavaré
hMailServer 5.4.1 B1951 external MSSQL 2008 r2
Windows 2008 r2 | 2 x Intel Xeon E5-2650v2 | 64 Go DDR3 | 2 x Intel SSD 600go

User avatar
sheffters
Senior user
Senior user
Posts: 453
Joined: 2009-07-01 20:46
Contact:

Re: Problem with configuration performance

Post by sheffters » 2010-01-04 13:10

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.

snico
New user
New user
Posts: 27
Joined: 2010-01-04 12:18

Re: Problem with configuration performance

Post by snico » 2010-01-04 13:22

Thank you for your answer.

I don't use an antivirus.
Nicolas Cavaré
hMailServer 5.4.1 B1951 external MSSQL 2008 r2
Windows 2008 r2 | 2 x Intel Xeon E5-2650v2 | 64 Go DDR3 | 2 x Intel SSD 600go

User avatar
sheffters
Senior user
Senior user
Posts: 453
Joined: 2009-07-01 20:46
Contact:

Re: Problem with configuration performance

Post by sheffters » 2010-01-04 13:30

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.

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Problem with configuration performance

Post by dzekas » 2010-01-04 14:13

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.
Last edited by dzekas on 2010-01-04 14:37, edited 1 time in total.

snico
New user
New user
Posts: 27
Joined: 2010-01-04 12:18

Re: Problem with configuration performance

Post by snico » 2010-01-04 14:37

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
Nicolas Cavaré
hMailServer 5.4.1 B1951 external MSSQL 2008 r2
Windows 2008 r2 | 2 x Intel Xeon E5-2650v2 | 64 Go DDR3 | 2 x Intel SSD 600go

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Problem with configuration performance

Post by dzekas » 2010-01-04 14:47

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.

User avatar
sheffters
Senior user
Senior user
Posts: 453
Joined: 2009-07-01 20:46
Contact:

Re: Problem with configuration performance

Post by sheffters » 2010-01-04 15:36

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.

Post Reply