celery-java icon indicating copy to clipboard operation
celery-java copied to clipboard

Too many opened connections

Open diego-iturriaga opened this issue 6 years ago • 2 comments

Hello, I'm using the library with a webservice but everytime I publish a message, a connection is opened and never closed. The thing is that after a few hours the RAM gets full because of too many connections and everything crashes.

Is it possible to persist one connections and handle channels?

Thank you, Diego

ps: sorry for my english

diego-iturriaga avatar Nov 28 '18 15:11 diego-iturriaga

Thanks for the report. How are you using the library? If you use just one client, I think the connection should be reused.

crabhi avatar Nov 28 '18 15:11 crabhi

Yes, I use only one client as a static field in my class (like a singleton). But I end up with like 10k connections.

diego-iturriaga avatar Nov 28 '18 16:11 diego-iturriaga