Esent error in the ravendb dev logs - not sure why

539 views
Skip to first unread message

Arun Noronha

unread,
Oct 22, 2014, 2:08:07 PM10/22/14
to rav...@googlegroups.com
Hi 

We have been seen degrading performance in our raven instances and are trying to troubleshoot why. 
I enabled raven debug logging by inserting the configuration file and saw an ESENT error. 

Would this be a contributor to the degradation issues that we are seeing.

Just a note: 

We have on the one raven server - 10 databases. 
Each database has about 50 indexes of which 25 are map reduce. 

_____________________________________________________________________________________________________

The folllowing is a snippet of the log : 

2014-10-22 13:48:46.7034,Raven.Storage.Esent.StorageActions.DocumentStorageActions,Warn,Error when trying to open a new DocumentStorageActions,"Microsoft.Isam.Esent.Interop.EsentInvalidInstanceException: Invalid instance handle
   at Microsoft.Isam.Esent.Interop.Session..ctor(JET_INSTANCE instance)
   at Raven.Storage.Esent.StorageActions.DocumentStorageActions..ctor(JET_INSTANCE instance, String database, TableColumnsCache tableColumnsCache, OrderedPartCollection`1 documentCodecs, IUuidGenerator uuidGenerator, IDocumentCacher cacher, EsentTransactionContext transactionContext, TransactionalStorage transactionalStorage)
   at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
   at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)"
2014-10-22 13:48:46.7034,Raven.Storage.Esent.StorageActions.DocumentStorageActions,Warn,Error when trying to open a new DocumentStorageActions,"Microsoft.Isam.Esent.Interop.EsentInvalidInstanceException: Invalid instance handle
   at Microsoft.Isam.Esent.Interop.Session..ctor(JET_INSTANCE instance)
   at Raven.Storage.Esent.StorageActions.DocumentStorageActions..ctor(JET_INSTANCE instance, String database, TableColumnsCache tableColumnsCache, OrderedPartCollection`1 documentCodecs, IUuidGenerator uuidGenerator, IDocumentCacher cacher, EsentTransactionContext transactionContext, TransactionalStorage transactionalStorage)
   at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
   at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)"
2014-10-22 13:48:46.7034,Raven.Storage.Esent.StorageActions.DocumentStorageActions,Warn,Error when trying to open a new DocumentStorageActions,"Microsoft.Isam.Esent.Interop.EsentInvalidInstanceException: Invalid instance handle
   at Microsoft.Isam.Esent.Interop.Session..ctor(JET_INSTANCE instance)
   at Raven.Storage.Esent.StorageActions.DocumentStorageActions..ctor(JET_INSTANCE instance, String database, TableColumnsCache tableColumnsCache, OrderedPartCollection`1 documentCodecs, IUuidGenerator uuidGenerator, IDocumentCacher cacher, EsentTransactionContext transactionContext, TransactionalStorage transactionalStorage)
   at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
   at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)"
2014-10-22 13:48:46.7034,Raven.Storage.Esent.StorageActions.DocumentStorageActions,Warn,Error when trying to open a new DocumentStorageActions,"Microsoft.Isam.Esent.Interop.EsentInvalidInstanceException: Invalid instance handle
   at Microsoft.Isam.Esent.Interop.Session..ctor(JET_INSTANCE instance)
   at Raven.Storage.Esent.StorageActions.DocumentStorageActions..ctor(JET_INSTANCE instance, String database, TableColumnsCache tableColumnsCache, OrderedPartCollection`1 documentCodecs, IUuidGenerator uuidGenerator, IDocumentCacher cacher, EsentTransactionContext transactionContext, TransactionalStorage transactionalStorage)
   at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
   at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)"
2014-10-22 13:48:46.7034,Raven.Storage.Esent.StorageActions.DocumentStorageActions,Warn,Error when trying to open a new DocumentStorageActions,"Microsoft.Isam.Esent.Interop.EsentInvalidInstanceException: Invalid instance handle
   at Microsoft.Isam.Esent.Interop.Session..ctor(JET_INSTANCE instance)
   at Raven.Storage.Esent.StorageActions.DocumentStorageActions..ctor(JET_INSTANCE instance, String database, TableColumnsCache tableColumnsCache, OrderedPartCollection`1 documentCodecs, IUuidGenerator uuidGenerator, IDocumentCacher cacher, EsentTransactionContext transactionContext, TransactionalStorage transactionalStorage)
   at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
   at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)"

Oren Eini (Ayende Rahien)

unread,
Oct 23, 2014, 4:49:45 AM10/23/14
to ravendb
What build are you on?
This usually indicate that there is a running thread that is running after the db was closed.


Hibernating Rhinos Ltd  

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

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

 


--
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.
For more options, visit https://groups.google.com/d/optout.

Arun Noronha

unread,
Oct 23, 2014, 9:20:43 AM10/23/14
to rav...@googlegroups.com
My apologies for not including that information 
We are on build 2.5.2935
We see a lot of IO and memory consumption from the raven process.
The raven instance consumes over 1.5G in some cases with a lot of read and writes and there isn't really that many concurrent users 2-4. 
So we are not sure what is causing these issues.

Thank you very much.
Arun

Oren Eini (Ayende Rahien)

unread,
Oct 23, 2014, 9:27:29 AM10/23/14
to ravendb

Indexing?

Arun Noronha

unread,
Oct 23, 2014, 12:54:04 PM10/23/14
to rav...@googlegroups.com
Thanks Oren, 
I will monitor the stats endpoint across all our instances and let you know ..... 
Appreciate the insight!! 
Arun
Reply all
Reply to author
Forward
0 new messages