asp.net - 2nd level cache off, still get Cache item expired while locked? -


we have web application notice lot of problem following errors:

nhibernate.cache.readwritecache - item expired cache while locked (increase cache timeout) 

these lines followed random entities supposed persisted db. occasionally, these seem fail persist, or lack fields should have been set, giving major headache.

the weirdest thing still see if 2nd level cache turned off, surprises me. server running on has 64 gb ram , usage lies around 55-60 gb mark, because hosts multiple sites.

why seeing when 2nd level cache supposed off? first level cache shouldn't expire this, right? have tried set cachepriority never expire entities, still show in logs.

what doing wrong? misinformed?

we getting same message entities read/write caching enabled when no 2nd level cache provider set in configuration.

setting provider in nh config file enough rid of message, if query , 2nd level caching disabled provider (use_second_level_cache = off, use_query_cache = off).

we use memcache , how our nh configuration file looks when don't want 2nd level caching @ same time avoid log message:

<property name="cache.provider_class">nhibernate.caches.memcache.memcacheprovider,nhibernate.caches.memcache</property> <property name="cache.use_second_level_cache">false</property> <property name="cache.use_query_cache">false</property> 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -