• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOSessionStore deadlock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOSessionStore deadlock


  • Subject: Re: WOSessionStore deadlock
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 7 May 2009 10:40:26 -0700

That does not tell us much. Didn't you implement a fix for exceptions thrown while generating the response?

Chuck


On Apr 29, 2009, at 2:26 PM, Kieran Kelleher wrote:

Funny ... I got my first session deadlock in a long while just a few minutes ago... had to kill the instance. Stack trace here:
http://67.78.26.66:81/~kieran/misc/deadlock-5183.txt


WO 5.3.3 BTW

On Apr 29, 2009, at 1:05 PM, Guido Neitzer wrote:

On Apr 29, 2009, at 9:58 AM, Chuck Hill wrote:

I have 3 threads like this, all waiting on the same monitor:

"WorkerThread15" prio=5 tid=0x08995400 nid=0x8995600 in Object.wait() [0xbf0dd000..0xbf0ddb80]
at java.lang.Object.wait(Native Method)
- waiting on <0x34000548> (a com.webobjects.appserver.WOSessionStore$TimeoutEntry)
at java.lang.Object.wait(Object.java:474)
at com .webobjects .appserver .WOSessionStore.checkOutSessionWithID(WOSessionStore.java:207)
- locked <0x34000548> (a com.webobjects.appserver.WOSessionStore $TimeoutEntry)
at com .webobjects .appserver.WOApplication.restoreSessionWithID(WOApplication.java: 1546)
at er .extensions .appserver .ERXApplication.restoreSessionWithID(ERXApplication.java:2028)
...


I noticed Wonder has something to detect session store deadlocks, but it works only when concurrent requests are off, and we have that feature turned on.

What can be causing a session to be checked out, but not checked in again?


Bad coding?  :-P

I can think of only four causes:

1. Exception thrown from sleep().
2. Exception thrown from terminate() (not 100% sure of that)
3. Exception thrown from WODirectAction.performAction() (though I am pretty sure this was fixed in WO 5.3)

It wasn't. At least not for everything.

cug


Thread t@57091: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
- java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
- com .webobjects .appserver.WOSessionStore.checkOutSessionWithID(java.lang.String, com.webobjects.appserver.WORequest) @bci=48, line=207 (Interpreted frame)
- com .webobjects .appserver.WOApplication.restoreSessionWithID(java.lang.String, com.webobjects.appserver.WOContext) @bci=9, line=1546 (Interpreted frame)
- er .extensions .appserver.ERXApplication.restoreSessionWithID(java.lang.String, com.webobjects.appserver.WOContext) @bci=83, line=2060 (Interpreted frame)
- com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication (com.webobjects.appserver.WOApplication, com.webobjects.appserver.WOContext, com.webobjects.foundation.NSDictionary) @bci=57, line=314 (Interpreted frame)
- com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(com.webobjects.appserver.WORequest) @bci=109, line=358 (Interpreted frame)
- com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(com.webobjects.appserver.WORequest) @bci=46, line=435 (Interpreted frame)
- com .webobjects .appserver .WOApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=41, line=1306 (Interpreted frame)
- er .extensions .appserver .ERXApplication .dispatchRequestImmediately(com.webobjects.appserver.WORequest) @bci=74, line=1769 (Interpreted frame)
- er .extensions .appserver .ERXApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=13, line=1734 (Interpreted frame)
- wk .webobjects .appserver .WKApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=2, line=95 (Interpreted frame)
- com.webobjects.appserver._private.WOWorkerThread.runOnce() @bci=729, line=173 (Interpreted frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=129, line=254 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

etc.


-- Chuck Hill Senior Consultant / VP Development

Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/

_______________________________________________
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


  • Follow-Ups:
    • Re: WOSessionStore deadlock
      • From: Kieran Kelleher <email@hidden>
References: 
 >Re: WOSessionStore deadlock (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: No snapshot for gid _EOIntegralKeyGlobalID
  • Next by Date: Virtual host deployment question
  • Previous by thread: Re: WOSessionStore deadlock
  • Next by thread: Re: WOSessionStore deadlock
  • Index(es):
    • Date
    • Thread