Hi, We were experiencing an issue with Tomcat shutdown where it would hang and require to be killed when the Orbeon web application was added.
I ran jstack on a failed tomcat shutdown process and identified two non daemon threads: "xforms.resources.data" prio=10 tid=0x00007fc87c290000 nid=0x32d8 waiting on condition [0x00007fc80ebed000] "xforms.state.data" daemon prio=10 tid=0x00007fc87c27f000 nid=0x32d7 waiting on condition [0x00007fc80ecee000] It turned out these threads were ehcache threads. Ehcache requires listeners to receive web application shutdown requests see http://ehcache.org/documentation/operations/shutdown so I added to Orbeon web.xml: <listener> <listener-class>net.sf.ehcache.constructs.web.ShutdownListener</listener-class> </listener> This seems to fix the shutdown issue so I thought I'd share. Regards, Ben |
Administrator
|
Thanks for sharing.
BTW this had been reported a while back and is on master since a while, and also in 3.9.1 PE: https://github.com/orbeon/orbeon-forms/commit/9884cfa702dac92dd84f87530b6c17f02f54d3cc -Erik On Thu, Jan 24, 2013 at 2:16 AM, benjamin.dougherty <[hidden email]> wrote: > Hi, We were experiencing an issue with Tomcat shutdown where it would hang > and require to be killed when the Orbeon web application was added. > > I ran jstack on a failed tomcat shutdown process and identified two non > daemon threads: > > "xforms.resources.data" prio=10 tid=0x00007fc87c290000 nid=0x32d8 waiting on > condition [0x00007fc80ebed000] > "xforms.state.data" daemon prio=10 tid=0x00007fc87c27f000 nid=0x32d7 waiting > on condition [0x00007fc80ecee000] > > It turned out these threads were ehcache threads. Ehcache requires listeners > to receive web application shutdown requests see > http://ehcache.org/documentation/operations/shutdown > > so I added to Orbeon web.xml: > > <listener> > <listener-class>net.sf.ehcache.constructs.web.ShutdownListener</listener-class> > </listener> > > This seems to fix the shutdown issue so I thought I'd share. > > Regards, > Ben > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Tomcat-shutdown-tp4656203.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |