I'm using qpid 0.10 with the c# messaging lib and got a strange error after 500 established connections (depends on max-connections value):
Client max connection count limit exceeded: 500 connection refused
This seems to be a bug in the c# client in qpid version 0.8 and also in qpid version 0.10. This error may also occur in the c++ libs i think.
A major bug entry has been cased in the apache qpid issue tracker: https://issues.apache.org/jira/browse/QPID-3294
Showing posts with label Qpid. Show all posts
Showing posts with label Qpid. Show all posts
Wednesday, June 8, 2011
Tuesday, May 31, 2011
Apache-Qpid: Channel-Not-Attached Exception
We are using Apache Qpid in our company for some time but yesterday i got a strange error - no application were able to connect to the Qpid-service anymore - the log file showed me a strange error: "error Client max connection count limit exceeded: 500 connection refused"
This was the second time the error occured. First i checked the projects, if the connections would be safely closed in case of an error, but that was surely the case.
Second i checked the "channel exception: not-attached: channel 1 is not attached" - i counted the occurance of this message between my first 500 connections error message and the second and found out - this error happened exactly 500 times!
So i debugged the code in detail an realized, that the error occured exactly after using Acknowledge() of the Qpid-sender-class. So i removed the line and looked at the qpid-documentation a little bit deeper in detail. I found a good qpid-documentation created bei Red-Hat:
Since then i fixed the line the error never happend again.
This was the second time the error occured. First i checked the projects, if the connections would be safely closed in case of an error, but that was surely the case.
Second i checked the "channel exception: not-attached: channel 1 is not attached" - i counted the occurance of this message between my first 500 connections error message and the second and found out - this error happened exactly 500 times!
So i debugged the code in detail an realized, that the error occured exactly after using Acknowledge() of the Qpid-sender-class. So i removed the line and looked at the qpid-documentation a little bit deeper in detail. I found a good qpid-documentation created bei Red-Hat:
- Qpid API Documentation -- http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html/Programming_in_Apache_Qpid/chap-Programming_in_Apache_Qpid-Using_the_Qpid_Messaging_API.html
- Qpid Sample Application -- http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html/Programming_in_Apache_Qpid/sect-Programming_in_Apache_Qpid-Using_the_Qpid_Messaging_API-A_Simple_Messaging_Program_in_.NET_C.html
Since then i fixed the line the error never happend again.
