Coherence .NET THROWS SYSTEM.THREADING.LOCKRECURSIONEXCEPTION WITH HIGH CPU
Last updated on JULY 05, 2017
Applies to:Oracle Coherence - Version 184.108.40.206 to 220.127.116.11 [Release AS10g]
Information in this document applies to any platform.
Coherence for .NET is throwing System.Threading.LockRecursionException and utilizing High CPU. Customer recently upgraded their COH server and client dll's from 18.104.22.168 to 22.214.171.124. There were no other client updates. Customer was using .NET 4 version with both 126.96.36.199 and 188.8.131.52. After the upgrade to 184.108.40.206, they observed lot of CPU spikes on Clients and when digged deeper found the stack traces from Coherence.
Exception type: System.Threading.LockRecursionException
Message: Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms