How to limit the number of workerb MongoDB?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
3 views
In fact, the mongod process is very much paralleled, which is usually good, but in my case, starts to eat all memory and from a large load and sometimes crashes. Need to limit the number of sarkerov (or thread pool, what's he got) to, say, more than 5 is never created and put the rest in turn. Can't find the setting.

And it turns out so much voraciously:
image
I would like to settle down.
by | 3 views

3 Answers

0 like 0 dislike
And you have Mongo on separate servers spinning? If not, then it is unlikely that the problem is solved, Mongo relies on the fact that he can eat all the memory and not give it to you.
by
0 like 0 dislike
Trololo. There is 1 process, which generates up the thread on each connection.
by
0 like 0 dislike
There is no such, at least in the official documentation.
Maybe you have some stocks with basic settings, tweak them and become a little easier, or requests to optimize.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 23, 2019 by tgpglstbc
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,966 users