Kryonet server memory issue

I’m working on a game with kryonet and every time someone connects to the server the server uses more memory, becouse the server allocates memory for each connection.
The problem is when the player disconnects the memory usage doesn’t go down. After some time the memory usage gets really high.
If someone could tell me how to clear the allocated memory in kryonet i would really appreciate it