Issue with TomEE shutdown

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with TomEE shutdown

Dignesh
Hi,
I am using 7.0.2 version of TomEE plus.When I invoke the shutdown.bat, it hangs and never gets shutdown.
I have taken the threaddump and I see lot of Worker threads in waiting state. Is there any additional configuration to be done to happen a clean shutdown ?

Attaching the thread dump Threaddump.txt

Can anyone help me on this ?

Thank you,
Dignesh,
Reply | Threaded
Open this post in threaded view
|

Re: Issue with TomEE shutdown

Romain Manni-Bucau
Hi

seems there is a ScheduledThreadPoolExecutor not shutdowned. Is it in your
application or dependency stack?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-02-21 12:42 GMT+01:00 Dignesh <[hidden email]>:

> Hi,
> I am using 7.0.2 version of TomEE plus.When I invoke the shutdown.bat, it
> hangs and never gets shutdown.
> I have taken the threaddump and I see lot of Worker threads in waiting
> state. Is there any additional configuration to be done to happen a clean
> shutdown ?
>
> Attaching the thread dump  Threaddump.txt
> <http://tomee-openejb.979440.n4.nabble.com/file/n4681128/Threaddump.txt>
>
> Can anyone help me on this ?
>
> Thank you,
> Dignesh,
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Issue-with-TomEE-shutdown-tp4681128.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Issue with TomEE shutdown

Dignesh
Hi Romain,

I made the changes in my code closing the threadpoolexecutor . I am still seeing the issue more often now.

I have attached the latest thread dumps captured.threaddump-latest.txt


Thank you very much in advance

-Dignesh-
Reply | Threaded
Open this post in threaded view
|

Re: Issue with TomEE shutdown

Romain Manni-Bucau
pool-21-thread-1@6 is still not closed.


Did you identify where it is coming from?


Le 23 mars 2017 05:06, "Dignesh" <[hidden email]> a écrit :

> Hi Romain,
>
> I made the changes in my code closing the threadpoolexecutor . I am still
> seeing the issue more often now.
>
> I have attached the latest thread dumps captured. threaddump-latest.txt
> <http://tomee-openejb.979440.n4.nabble.com/file/n4681363/
> threaddump-latest.txt>
>
>
> Thank you very much in advance
>
> -Dignesh-
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Issue-with-TomEE-shutdown-tp4681128p4681363.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Issue with TomEE shutdown

Dignesh
Thank you Romain.
There was a threadpool which was not being closed in our application. I have fixed it and now TomEE shutdowns normally.
Thank you very much for your help :)