server instance pool was destroyed

2020-08-01 07:29发布

问题:

I Wrote a log service, nodejs + mongo (mongoose), then run for a period of time (7, 8 hours), there will be "server instance pool was destroyed" error, poolsize set to 2000.

回答1:

this happens when you accidentally call 'close()' on your client database and then try to access a collection for a query