Re: MongoException

From: Wan Bachtiar <wan.bachtiar@xxxxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Thu, 5 May 2016 18:16:38 -0700 (PDT)
Why ads?


Could you please tell me how to put that information into the configuration 
file? 

Hi, 

You can specify cursorTimeoutMillis in the configuration file like so:

setParameter:
    cursorTimeoutMillis: 30000

Then run mongod pointing to the configuration file: 

mongod --config /path/mongod.conf

To check the parameter value via mongo shell 
<https://docs.mongodb.com/manual/reference/program/mongo/>: 

use admin
db.runCommand({getParameter:1, cursorTimeoutMillis:1})
{
  "cursorTimeoutMillis": 30000,
  "ok": 1 
}

The above was tested on MongoDB v3.0.11 and v3.2.6.
You may also find the following useful:

   - MongoDB configuration file options 
   <https://docs.mongodb.com/manual/reference/configuration-options/#configuration-file-options
   - MongoDB Server Parameters 
   <https://docs.mongodb.com/manual/reference/parameters/#mongodb-server-parameters>
   . 

Regards, 

Wan





-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/eee8d1f9-4775-407c-8f31-5f33969e86df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?