I was trying to use smack in a client for load testing Openfire. When opening 2,000 connections, the client would choke on keep alive manager synchronization (some static synchronized methods). I went on, made a few changes and voila!, I’m now at 3,000 users and could probably go even higher. I don’t have a svn checkout (downloaded the source archive), so I can’t create a patch right now, so I’m attaching the whole file instead.
It’s not a big deal, I realize smack isn’t meant for highly concurrent usage, but if it can be easily improved, why not? Right?
KeepAliveManager.java.zip (3122 Bytes)