Hi,

I'm new to jabberd2, and am having some performance problems when  
moving mysql to an separate machine.

I installed jabberd-2.14 on the same machine as mysql 5.0, such that  
jabberd2 communicates with mysql via the unix /tmp/mysql.sock. Things  
are running nice and fast, load testing using Tsung easily gets over  
3500 concurrent users.

I changed the sm.xml configuration to use an IP rather than  
localhost, and suddenly there is a huge drop in performance. I can't  
get more than a couple hundred concurrent users.

When I monitor mysql ("mysqladmin extended"), it's only handling  
about 40 queries per second when using TCP, whereas with the unix  
socket it handles thousands per second. If I look at vmstat, with  
mysql unix socket, there is 0% iowait, but with mysql tcp connection  
vmstat is at 25% (more specifically: 100% on 1 of 4 CPUs).

I've run the mysql benchmarking programs and performance is nearly  
the same with TCP or unix socket, which suggests to me there's  
something wrong with my jabberd setup.

Any suggestions as to what might be going on?

thanks!
- Michiel
_______________________________________________
Jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com

Reply via email to