Too many chats in one client instance?

Hi,

we are facing the problem to have no possibility to end a Chat. That’s why a single instance of smack starts consuming more and more memory without releasing it.

It starts getting lazy at about 2000 Chats.

Now, you might think this is an missusage problem? Well, we want to have many clients acting passivly and writing mesurement data to their disc, and once a day, we want to ask them for their data. We are planning to have thousands and thousands of clients recording data beeing connected to Openfire. And then, get the data from ONE client (beeing a database/webserver or something) from ALL of the others. So we need thousands of thousands chats…dont’t we?

What could we do now?