About maximum number of users

What is the maximum number of users of spark and openfire? I heard that if the number of users is more than 900, the service performance becomes very low. Is there any solution to solve this problem? Like using Jconsole? What is the maximum number of users after optimized. Need some suggestion and materials.

For now my server (jabber.kg) contains 1259 users and works excellent.