FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory - mongodb
<p>I have a admin portal where all the documents from database are configured and manipulated.</p>

<p>We have a collection for language translation which contains a lot of document.</p>

<p>And admin can modify all this document.</p>

<p>If admin opens any other collection it works fine. But when he opens this language translation collection the systems gets slower and after few mins I found this error.</p>

<pre>
&lt;--- Last few GCs --->

513530251 ms: Mark-sweep 1397.7 (1458.0) -> 1397.7 (1458.0) MB, 2719.4 / 2 ms [allocation failure] [
GC in old space requested].
513533054 ms: Mark-sweep 1397.7 (1458.0) -> 1397.7 (1458.0) MB, 2802.9 / 2 ms [last resort gc].
513535773 ms: Mark-sweep 1397.7 (1458.0) -> 1397.6 (1458.0) MB, 2718.9 / 2 ms [last resort gc].


&lt;--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000002D0BF1B4639 &lt;JS Object>
    1: new constructor(aka WritableState) [_stream_writable.js:88] [pc=0000036F0D0CA7F9] (this=00000
153740AD191 &lt;a WritableState with map 0000017D64825C01>,options=00000065E299D0F1 ,stream=00000153740ACFA1 )
    3: Writable [_stream_writable.js:143] [pc=0000036F0D0CA0C2] (this=00000153740ACFA1 &lt;a Socket with map 0000017D...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
</pre>

<p>Can anyone help me what can solve this issue???</p>

<p>I start my node with the following syntax.</p>

<p><code>set node_debug=foo&amp;&amp; node --max-old-space-size=8192 server.js</code></p>