crabhi / celery-java

Java implementation of Celery client and worker
MIT License
97 stars 27 forks source link

Too many opened connections #18

Open diego-iturriaga opened 5 years ago

diego-iturriaga commented 5 years ago

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

crabhi commented 5 years ago

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

diego-iturriaga commented 5 years ago

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