cancel
Showing results for 
Search instead for 
Did you mean: 

Locking Problems with application

Former Member
0 Kudos

Hi everyone,

we have implemented an application and it works fine, but sometimes by importing mass datas to

our sap portal we get a lot of log-entries likes these below.

Caused by: com.sap.engine.frame.core.locking.LockException: Cannot lock [2011121321005208000000sabayap0006................1722

87750, !J2EE_CONFIGURATION_MANAGER, 2dca72/6fb1073f/810dfaeb/1885d/444bcfc5/32/@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, X]; it is in use by another owner. The lock collision occurred w

ith user <internal>.

at com.sap.engine.core.locking.impl3.LockingManagerImpl.lockInternal(LockingManagerImpl.java:257)

at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:425)

at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:455)

at com.sap.engine.core.locking.ServerInternalLockingImpl.lock(ServerInternalLockingImpl.java:42)

at com.sap.engine.core.configuration.impl.ServerEnvironment.addLock(ServerEnvironment.java:312)

... 35 more

It seems, that the locks couldn't be released anymore ... But what can we do?

Any ideas ?

Thanks for your help in advance

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Andreas,

It is unlikely that the lock can not be released.

The more likely cause of the exception is that the application that created the lock is performing a task with long duration, and keeps the lock during that time. Thus when the lock is requested by something else, the exception that you found is thrown. This is probably the case on your system, since you mentioned importing large quantities for data of the time of the error.

You could use Telnet Administrator to observe and manage the locks. Here is how:

http://help.sap.com/saphelp_nw70ehp1/Helpdata/EN/48/0e3c335c2f25cde10000000a42189c/frameset.htm

Also you could trigger thread dumps at the time of the heavy load to see if there any activities with long duration. Here is how:

http://wiki.sdn.sap.com/wiki/display/TechTSG/(JSTTSG)(Deploy)Thread+Dump

Regards,

Ventsi Tsachev

Answers (1)

Answers (1)

former_member193379
Active Contributor
0 Kudos