Skip to content
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

Way too many MongoDB connections opened #266

Open
manjufy opened this issue Jun 9, 2021 · 1 comment
Open

Way too many MongoDB connections opened #266

manjufy opened this issue Jun 9, 2021 · 1 comment

Comments

@manjufy
Copy link

manjufy commented Jun 9, 2021

Hi,
Have been using Molecular with MongoDB adapter, and MongoDB connection handling is very similar to

what's in the examples
https://github.com/moleculerjs/moleculer-examples/blob/master/conduit/mixins/db.mixin.js#L15

The concern is that molecular services open up way too many mongo connections and max our the RAM freezing the server for further processing any requests.

Here is a glimpse of the server processes

Screenshot 2021-06-09 at 9 07 23 AM

Is there a way to reduce the number of connections by reusing them instead?

@0x0a0d
Copy link
Contributor

0x0a0d commented Jun 17, 2021

module mongodb does not spawn mongod process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants