Re: WebObjects application instances hanging - Deadlocks occurring
Re: WebObjects application instances hanging - Deadlocks occurring
- Subject: Re: WebObjects application instances hanging - Deadlocks occurring
- From: Ralf Schuchardt <email@hidden>
- Date: Mon, 17 Nov 2014 15:03:44 +0100
Hi,
Am 17.11.2014 um 13:33 schrieb Raghavender Bokka <email@hidden>:
> Hi Team,
>
> Some of our WebObjects application instances are hanging when some user load (around 1000 users) are testing, when we look into the java process thread dump there are deadlocks occurring. The following is the thread dump:
[...]
> "WorkerThread24" prio=3 tid=0x00e42800 nid=0x31 waiting on condition [0xd49fe000]
> java.lang.Thread.State: WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for <0xdc3837c8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
> at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
> at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
> at com.webobjects.eocontrol.EOEditingContext.lock(EOEditingContext.java:4617)
> at er.extensions.eof.ERXEC.lock(ERXEC.java:480)
> at com.webobjects.appserver.WOSession._awakeInContext(WOSession.java:835)
> at com.webobjects.appserver.WOApplication.restoreSessionWithID(WOApplication.java:1917)
> at er.extensions.appserver.ERXApplication.restoreSessionWithID(ERXApplication.java:2093)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:324)
> at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
> at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
> - locked <0xdbc631d0> (a java.lang.Object)
> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
> at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
> at Application.dispatchRequest(Application.java:670)
> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
> at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
> at java.lang.Thread.run(Thread.java:619)
This stack trace seems to indicate, that the defaultEditingContext was not unlocked in the previous request. Do you see an exception prior to the deadlock?
If you have code in a Session.sleep() method, make sure to catch all exceptions there.
Ralf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden