Limit memory usage

46 views
Skip to first unread message

Mircea Chirea

unread,
Mar 6, 2018, 7:39:48 AM3/6/18
to RavenDB - 2nd generation document database
Is there a way to put a hard limit to the memory usage? The community edition for 4.0 has a limit of 6 GB, but I would like to limit the memory usage to 2 GB instead.

Oren Eini (Ayende Rahien)

unread,
Mar 7, 2018, 6:53:07 AM3/7/18
to ravendb
No, there isn't a way to limit it downward.
You can call SetMaxWorkingSetSize on Windows if you really want to, and run in a limited namespace on Linux, but these are OS level settings.

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Tue, Mar 6, 2018 at 2:39 PM, Mircea Chirea <chirea...@gmail.com> wrote:
Is there a way to put a hard limit to the memory usage? The community edition for 4.0 has a limit of 6 GB, but I would like to limit the memory usage to 2 GB instead.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mircea Chirea

unread,
Mar 7, 2018, 10:23:13 AM3/7/18
to RavenDB - 2nd generation document database
Well then how does the license limit it?


On Wednesday, March 7, 2018 at 1:53:07 PM UTC+2, Oren Eini wrote:
No, there isn't a way to limit it downward.
You can call SetMaxWorkingSetSize on Windows if you really want to, and run in a limited namespace on Linux, but these are OS level settings.

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Tue, Mar 6, 2018 at 2:39 PM, Mircea Chirea <chirea...@gmail.com> wrote:
Is there a way to put a hard limit to the memory usage? The community edition for 4.0 has a limit of 6 GB, but I would like to limit the memory usage to 2 GB instead.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Mar 7, 2018, 11:04:40 AM3/7/18
to ravendb
We also call to SetMaxWorkingSet. However, there is no way to provide a smaller value.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Mircea Chirea

unread,
Mar 8, 2018, 1:23:06 AM3/8/18
to RavenDB - 2nd generation document database
Alright, thank you!

I suppose I need to build it myself in order to add the option to call SetWorkingSet with a custom value :)

Oren Eini (Ayende Rahien)

unread,
Mar 8, 2018, 1:49:43 AM3/8/18
to ravendb
You can actually do that externally via a script :-)

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--

Oren Eini (Ayende Rahien)

unread,
Mar 8, 2018, 1:51:05 AM3/8/18
to ravendb
 (ps RavenDB).MaxWorkingSet = $maxSize

Mircea Chirea

unread,
Mar 18, 2018, 6:10:59 PM3/18/18
to RavenDB - 2nd generation document database
Great idea, thank you!
 (ps RavenDB).MaxWorkingSet = $maxSize
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages