What is the size of the data you are working with, and what is the working set size?
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/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...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
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/65c969c9-2d36-4a5a-b0de-1c8f748943e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Laszlo,
I have a Digital Ocean VPS with 512 MB RAM
The WiredTiger default cache size is set to the larger value of:
By using only 0.5 GB of RAM, you have a severely under-provisioned server. In this case, you will run into memory issues, OOM killer (which you have already seen), and performance issues.
There are a couple of suggestions that you may be able to implement:
--wiredTigerEngineConfigString="cache_size=xxxM" to start mongod. I would recommend changing the xxx to no more than 256 given your memory size, and you may find a lower value more appropriate depending on your application and server use case.Having said that, to solve the memory issue, ideally you need to provision a larger memory for your server.
Best regards,
Kevin
Hi Laszlo,
I have a Digital Ocean VPS with 512 MB RAM
The WiredTiger default cache size is set to the larger value of:
- 60% of RAM minus 1 GB, or
- 1 GB
By using only 0.5 GB of RAM, you have a severely under-provisioned server.
--wiredTigerEngineConfigString, is not listed on the MongoDB documentation pages, or in the options listed with mongod --help.