Thanks Chris.

In this case is a bug in the (old version of the) Axis2 library we use to build and run a web service client.

I have upgraded Axis2 and waiting to see if the issue resurfaces.

The idea to use a new thread to manage the session event handles doesn't apply here cause of application constraints and because operations are quite simple.

But thanks for the advice.

Cheers

Il 26/07/2021 23:15, Christopher Schultz ha scritto:
Ivano,

On 7/23/21 02:20, Ivano Luberti wrote:
I have found the issue: one of the webapps has several thread locked on a MultiThreadedHttpConnectionManager during sessionUnbound and unboundEvents.

So the background process killing the sessions is stuck as well.

This is a very easy problem to encounter. Session event-handlers really need to be bulletproof and execute very quickly.

If you need a long-running process to trigger, use an executor service or something where you can capture the information to be used and off-load it onto another thread. Remember that the session cannot be used after the event-handler completes, so capture whatever information you need from the session FIRST, then dispatch to another thread, then return from the event-handler.

-chris

Il 21/07/2021 18:13, Mark Thomas ha scritto:
On 21/07/2021 16:00, Ivano Luberti wrote:

Il 21/07/2021 16:44, Mark Thomas ha scritto:
Take 3 thread dumps 5 seconds apart and post them here.

How to take thread dumps?

  kill -3 <pid> ?

That will work. There are lots of ways. This is most of them:

https://www.baeldung.com/java-thread-dump

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 2003 n. 196
per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa <http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>

dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/

Reply via email to