是的,你没有看错,是300K, 不是30K,根据DJabberd的作者Brad的blog,DJabberd 使用 1GB 内存单处理器可以支持 300K 连接。
最近听到 DJabberd 是由于 LiveJournal 采用 jabber 的关系, DJabberd, "XMPP server where everything is a plugin."
“DJabberd just did 25,200 (fully setup) connections with 97 MB of RAM before my Xen instance ran out of memory. It's now 3.4kB of overhead per connection (contrast to 30kB this morning) but there's still obvious ways to trim it down. Should be able to get it down to 2kB. The big win was when I implemented a [forget design pattern name] system where libxml parsers are shared, returned, kept on a freelist, etc.
From what Artur and I can tell, this is better than most/all the other jabber servers out there.
It means with 1GB of ram we can do 300k connections per process. (8GB of RAM boxes, 2x 2x core)”
上文主要是说 DJabberd 在测试中使用97M内存支持了 25,200 连接,每个用户大概 3.4K内存,而且打算继续优化到2K
Brad 说从目前的情况来说,djabberd 在这方面是所有的 jabber/xmpp 服务器中表现是最好的。
DJabberd 采用异步的 event-driven 的模式,不知道在大量请求的情况下性能怎样。
详细数字在这里
http://brad.livejournal.com/2230083.html
这里有 DJabberd 的背景
http://brad.livejournal.com/2200148.html
DJabberd 的主页上也没看到有DJabberd License的说明,但是作者已经可以让你获取源代码了,地址如下,是 Perl 的
http://code.sixapart.com/svn/djabberd/