WebFaction
Community site: login faq

Mongodb's mongod server seems to be making use of huge amount of RAM if available inside the machine and if OS's VM allows it to use the free RAM (in idle cases). This is expected because mongodb used memory-mapped files and the RAM would not get cleared up by OS unless some other processes inside the machine requests for resources. And with memory limit (80MB for my plan) in webfaction's shared hosting, my application's mongod process is getting killed eventually after growing more than 80MB.

Did anyone come across this issue? also, is anyone using mongodb for their application?

asked 27 Nov '10, 22:15

narxgun
111
accept rate: 0%

If you can tell how frequently your processes will get to 80MB you can run a cron job that restarts your MongoDB instance to keep your memory limit down.

(27 Nov '10, 23:31) klynton

The restarts will result in application downtimes. For an unexpected traffic, we then have to shutdown mongod forever.

My db data size is more than 80MB and since mongoDB uses memory mapped files, continuos access requests can fill up all the available memory without replacing. We too don't want the mongod process to use that much memory. Is it possible to implement a rule on specific process sizes inside the OS?

(28 Nov '10, 13:40) narxgun

You cannot set memory limits in the OS. It must be application level.

(28 Nov '10, 13:52) johns

We cannot set a memory usage limit on the application - MongoDB.

(28 Nov '10, 14:37) narxgun

In this case, it sounds like you're going to have a hard time using MongoDB on a shared host.

(28 Nov '10, 14:54) seanf
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×29

question asked: 27 Nov '10, 22:15

question was seen: 4,882 times

last updated: 28 Nov '10, 14:54

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM