Discussion:
Maximum lock count exceeded
Ted Yu ted_yu-/E1597aS9LQAvxtiuMwx3w@public.gmane.org [seajug]
2014-06-20 17:52:33 UTC
Permalink
Hi,
Has anyone encountered the error below ?
java.lang.Error: Maximum lock count exceeded at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.fullTryAcquireShared(ReentrantReadWriteLock.java:531) at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryAcquireShared(ReentrantReadWriteLock.java:491) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326) at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.tryLock(ReentrantReadWriteLock.java:873)
I am going over the calls of tryLock() in our code base and add missingĀ unlock() calls.

If you have suggestion on how to detect unreleased lock objects, that would help.

Thanks
Nimret Sandhu nimret-rf+Eeaps6PzQT0dZR+AlfA@public.gmane.org [seajug]
2014-06-20 18:30:27 UTC
Permalink
I'd recommend trying out http://chrononsystems.com/

profilers that display info on threads might provide some clues:
http://visualvm.java.net/threads.html
http://www.yourkit.com/
http://www.ej-technologies.com/products/jprofiler/overview.html

cheers,
-
Nimret Sandhu
http://www.nimret.org
Post by Ted Yu ted_yu-/***@public.gmane.org [seajug]
Hi,
Has anyone encountered the error below ?
java.lang.Error: Maximum lock count exceeded
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.fullTryAcquireShared(ReentrantReadWriteLock.java:531)
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryAcquireShared(ReentrantReadWriteLock.java:491)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326)
at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.tryLock(ReentrantReadWriteLock.java:873)
I am going over the calls of tryLock() in our code base and add missing unlock()
calls.
If you have suggestion on how to detect unreleased lock objects, that would help.
Thanks
dev danke devdanke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [seajug]
2014-06-20 18:40:26 UTC
Permalink
Good resources! Thanks
Post by Nimret Sandhu nimret-rf+Eeaps6PzQT0dZR+***@public.gmane.org [seajug]
I'd recommend trying out http://chrononsystems.com/
http://visualvm.java.net/threads.html
http://www.yourkit.com/
http://www.ej-technologies.com/products/jprofiler/overview.html
cheers,
-
Nimret Sandhu
http://www.nimret.org
Post by Ted Yu ted_yu-/***@public.gmane.org [seajug]
Hi,
Has anyone encountered the error below ?
java.lang.Error: Maximum lock count exceeded
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.fullTryAcquireShared(ReentrantReadWriteLock.java:531)
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryAcquireShared(ReentrantReadWriteLock.java:491)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326)
at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.tryLock(ReentrantReadWriteLock.java:873)
I am going over the calls of tryLock() in our code base and add missing unlock()
calls.
If you have suggestion on how to detect unreleased lock objects, that would help.
Thanks
Loading...