-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do i need to explicitly close connections? #65
Comments
You should not have to close connections. If they're leaking, then it's a bug in the client. Is there any more information you can provide that might help find the problem? A short program that reproduces would be ideal, but information about what calls you're making would help too. |
Hi Reproducing should be easy. Just load some queue with about 20K messages. On Sun, Sep 21, 2014 at 11:10 PM, Evan Shaw [email protected]
|
Hi There is some talk about this issue her A easy way of trying to solve the issue you could add That should close and bypass the caching of the connection. Best, 2014-09-22 6:04 GMT+02:00 Or Gal [email protected]:
|
@pax95 should
be on by default on the client? |
@Stephenitis It would be best if it could be configurable. Actually closing the connection would prevent the connection from being reused as a read it. On the other hand it would be nice if connection params could be configurable eg. close connection, read- and connection timeout. @orrgal1 you could try and see if conn.setRequestProperty("connection", "close"); fixes your problem ? |
Just tried it out on a load test with 1 producer and 1 consumer, with and without conn.setRequestProperty("connection", "close"). |
have not had a chance to try it out yet on a clean environment but if it helps my worker is running on an ec2 m1.large ubuntu machine. i have however downgraded my project to ironmq 0.0.8 in which i dont remember having this problem. ... and it looks like this version is behaving much better. i am currently processing with 5 threads and it looks like the number of open connections will rise to about 100 occasionally but then drop back to 9 or so. i'll wait a few more hours and update again. ... about 10 hours later and all is still well. so it looks like 0.0.8 is good. no leaking connections. does that help? |
bad news.. the problem exists in 0.0.8 as well when processing volume gets high |
hi
sometimes i notice that my process starts leaving many tcp connections in CLOSE_WAITING state. usually this happens when its processing a lot of messages off the queue. on a bad day this easily climbs up to the thousands. is there anything i should be doing to close the connections? is there something missing in the client to make sure the connections are closed?
thanks
The text was updated successfully, but these errors were encountered: