6

I am getting some errors on MongoDB side, the error is complaining that it reached the max allowed connections.

Wondering if there is anyway to increase the max number of allowed connections.

3
  • Related info here - groups.google.com/group/mongodb-user/browse_thread/thread/… Commented Oct 8, 2011 at 0:29
  • How many connections do you usually have open at once? How many do you want to have? Commented Oct 8, 2011 at 0:53
  • I am writing a mutlithreading app using mongoid, # max conn should around ~20-30.... or i shouldn't use multithreading with mongoid? Commented Oct 8, 2011 at 1:44

1 Answer 1

6

Check the MongoDB documentation:

http://www.mongodb.org/

use this command line argument:

--maxConns arg max number of simultaneous connections 

You might want to check this: http://blog.boxedice.com/2011/06/08/mongodb-connection-overhead/

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.