Server Lock Manager

1,052 views
Skip to first unread message

deepa...@gmail.com

unread,
Oct 12, 2011, 3:08:40 PM10/12/11
to ATG_Tech
Our server lock manager is showing locked items while viewing 'Display
Lock Table' through dyn/admin. As per my understanding SLM doesn't
perist lock info to DB. Is there a way to release/kill the lock
without restarting the server?

Thanks,
Deepa

Shailendra Pateria

unread,
Oct 12, 2011, 3:13:48 PM10/12/11
to atg_...@googlegroups.com
Deepa, can you please elaborate a bit more, Lock manager indeed manage locks on the db items, some for "read" and some for "write" and it controls which thread was first and which thread gets the next lock on a particular db item.


--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en



--
Best Regards,
Shailendra Pateria

deepa...@gmail.com

unread,
Oct 12, 2011, 3:37:44 PM10/12/11
to ATG_Tech
There was a scenario where the search config repository of two
environments were pointing to same DB. The lock issue came up when we
triggered search indexing from both environments simultaneously. A
snippet from thread dump is as follows:

Thread 24467: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
-
atg.service.lockmanager.ClientLockEntry.acquireWriteLock(atg.service.lockmanager.ClientLockManager,
java.lang.Object, java.lang.Object, long, boolean) @bci=264, line=399
(Interpreted frame)
-
atg.service.lockmanager.ClientLockManager.acquireWriteLock(java.io.Serializable,
java.lang.Object) @bci=118, line=1137 (Interpreted frame)
-
atg.repository.search.indexing.ConfigStatePersister.acquireLock(java.lang.Thread,
boolean) @bci=11, line=1399 (Interpreted frame)
- atg.repository.search.indexing.ConfigStatePersister
$IndexingReadLockedTransactionAction.doWithTransaction

Whats the best way to release the locks ?

Shailendra Pateria

unread,
Oct 12, 2011, 3:52:33 PM10/12/11
to atg_...@googlegroups.com
Do you also have a back up lock server? Did you try restarting the ServerLockManager component?

--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en

deepa...@gmail.com

unread,
Oct 12, 2011, 4:32:45 PM10/12/11
to ATG_Tech
Yes we do have a secondary SLM. So going for a restart of primary SLM.

Thanks for your help.

-Deepa
Reply all
Reply to author
Forward
0 new messages