Getting "Version store out of memory" when saving documents

475 views
Skip to first unread message

Ido Ben Ari

unread,
Sep 12, 2017, 12:32:15 AM9/12/17
to RavenDB - 2nd generation document database
Hi,
For 2 hours the system was throwing the error below whenever the code tried to store (update) a document.
Evenetaully restarting ravedb service seem to resolve the problem. But I am not sure what happened and worried it will happen again.
Could you please help me to find out what happened and why?

Server Build #35191

Microsoft.Isam.Esent.Interop.EsentVersionStoreOutOfMemoryException: Version store out of memory (cleanup already attempted)
   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.JetPrepareUpdate(JET_SESID sesid, JET_TABLEID tableid, JET_prep prep)
   at Microsoft.Isam.Esent.Interop.Update..ctor(JET_SESID sesid, JET_TABLEID tableid, JET_prep prep)
   at Raven.Database.Storage.Esent.StorageActions.DocumentStorageActions.AddDocument(String key, Etag etag, RavenJObject data, RavenJObject metadata, InvokeSource source)
   at Raven.Database.Actions.DocumentActions.<>c__DisplayClass19_0.<Put>b__0(IStorageActionsAccessor actions)


Thanks,
Ido

Tal Weiss

unread,
Sep 12, 2017, 1:01:59 AM9/12/17
to RavenDB - 2nd generation document database
There is a configuration option to increase the version store size please try to double its value. You are probably running too many concurrent requests and esent is running out of space to store the snapshots

--
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.

Ido Ben Ari

unread,
Sep 12, 2017, 1:09:02 AM9/12/17
to RavenDB - 2nd generation document database
Thanks Tal.
Is that Raven/Esent/MaxVerPages?
I currently don't have it in the config file, so I assume it's the default value which is 512 per the documentation.
In such case:
<add key="Raven/Esent/MaxVerPages" value="1024" /> under appsettings?


Thanks,
Ido
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Sep 12, 2017, 1:26:14 AM9/12/17
to ravendb
Yes

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Ido Ben Ari

unread,
Sep 12, 2017, 1:29:16 AM9/12/17
to RavenDB - 2nd generation document database
Thanks, 
I will do that.

By the way, why hasn't the db recovered from the error (until restarted)?  Even if I stopped almost all calls to DB it persisted across the board.

Thanks,
Ido

Tal Weiss

unread,
Sep 12, 2017, 3:17:23 AM9/12/17
to RavenDB - 2nd generation document database
There was probably some kind of read operation that was ongoing.
Are you using stream queries or incremental backup?

In general Esent is different on each windows KB and its internal implementation is known to change between them this is why we developed Voron so we can better control the internals.

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.



--

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Tal Weiss l Core Team Developer Mobile:+972-54-802-4849

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

RavenDB paving the way to "Data Made Simplehttp://ravendb.net/ 

Vincent Liu

unread,
Aug 18, 2020, 6:03:03 AM8/18/20
to RavenDB - 2nd generation document database
Hello,

I am having a very low  DatabaseTransactionVersionSizeInMB of 0,0 on the store database. How and mostly where do I add the config you just said? Hope you can help. 

Oren Eini (Ayende Rahien)

unread,
Aug 18, 2020, 6:08:46 AM8/18/20
to ravendb

--
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
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
  
Reply all
Reply to author
Forward
0 new messages