Reputation: 197
I am working on the messaging framework that listem and publish to the Rabbitmqserver in java following is the code
ConnectionFactory factory = new ConnectionFactory();
factory.setHost(hostName);
factory.setPort(portNumber);
factory.setVirtualHost(virtualHost);
factory.setUsername(username);
factory.setPassword(password);
return factory.newConnection();
Is there any limit on how many connection I could make ? I am not able to find our any limit in the rabbit documentation . when i try to make more than 137 connection it looks like it does not work. I am not able to find ny error in the Rabbitmq logs or in the application logs.when I try to debug it looks like last line just wait. my next step to go and figure out what is going on in the RABBITMQ java client code.
Any help or direction would be helpful and greatly appreciated.
Upvotes: 5
Views: 10756
Reputation: 197
Ok so it looks like my Rabbitmq server ras running out of socket and it dosn't throw an error just wait for another connection to be free. I was using Mac OS where default ulimit is 256 it ends up giving 156 file handlers and 138 connection. all i did is just changes the ulimit to the 1024.
Upvotes: 3