I am using mongo-java2.4jar for communicating with the mongo server.
In my webapp i am using mongo=new Mongo("serverIp","port")
where ever it is required and once the processing is complete, I am closing the mongo connection using mongo.close()
.
But after some time I am getting following exception :
java.net.SocketException: Too many open files
I think when I close the connection it is not closing the sockets. Please help me out figuring this issue.
Thanks!