I have this project where I am inserting some stuff into a firebase database but it seems whenever I am sending a Set/Push/Update etc. request the client opens a connection and never closes it.
So what I am doing is as follows.
On startup I create the Firebase Client and then I am using the same client for all my requests.
I am calling the API call and a job is executed.
Whenever I am doing a request I create the path to firebase and then the object I need to set or update.
Since I have logging in firebase as well I create logs whenever I insert something in firebase so I can use them in my APP logger.
I am running this in a docker image and I have a scheduler hitting those API Calls every so often.
After a while though the docker throws too many open files exception and using netstat I see that the connection requests sent into firebase never close and stay as CLOSE_WAIT but count as open files.
Hello all,
I have this project where I am inserting some stuff into a firebase database but it seems whenever I am sending a Set/Push/Update etc. request the client opens a connection and never closes it.
So what I am doing is as follows.
On startup I create the Firebase Client and then I am using the same client for all my requests. I am calling the API call and a job is executed. Whenever I am doing a request I create the path to firebase and then the object I need to set or update. Since I have logging in firebase as well I create logs whenever I insert something in firebase so I can use them in my APP logger.
I am running this in a docker image and I have a scheduler hitting those API Calls every so often.
After a while though the docker throws too many open files exception and using netstat I see that the connection requests sent into firebase never close and stay as CLOSE_WAIT but count as open files.
Any clue on how I can fix this?
Thank you in advance.