V
V
Vas3K2011-02-11 19:02:51
MongoDB
Vas3K, 2011-02-11 19:02:51

How to limit the number of MongoDB workers?

Actually, the mongod process is very parallel, which is usually good, but in my case it starts to eat all the memory and sometimes crashes from a heavy load. It is necessary to somehow limit the number of workers (or the thread pool, whatever it has) so that, say, it never creates more than 5 and puts the rest in a queue. Can't find a setting option.

And it turns out like this and very gluttonous:
mongaa.png
I would like to moderate the ardor.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
TimTowdy, 2011-02-11
@Vas3K

Are you running mongo on separate servers? If not, then the problem is unlikely to be solved, mongo relies on the fact that he can eat all the memory and not give it away.

T
TravisBickle, 2011-02-12
@TravisBickle

Trololo. There is 1 process that generates a thread for each connection.

P
Puma Thailand, 2011-02-11
@opium

There is no such thing, at least in the documentation.
Maybe you have some jambs with the basic settings, tweak them and it will become a little easier, well, or optimize requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question