To my knowledge (as a HornetQ developer) I am not aware of any arbitrary limit which the broker enforces on the number of connections. My feeling is this is an environmental issue. Have you tried to reproduce this problem in a different environment?
Thanks for your response.
I was able to simulate this issue in UAT yesterday, via the following ( I used apache bench tool )
ab -n 2900 -c 2900 http://UATSERVERNAME:UATPORT/
I got the below response when I ran the above - notice the too many open files !
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
socket: Too many open files (24)
When I saw open files error , I looked for the max open files allowed on the OS - and got
cat /proc/sys/fs/file-max -- 601850
I also checked for the number of open file handlers using -- lsof |wc -l .
Is there anything I could check ?
Unfortunately as we move further from the broker my ability to help declines. Perhaps a Linux specific forum or mailing list would be a better place to ask such questions.