mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRMINA-1108) ThreadPoolExecutors should terminate faster
Date Wed, 15 May 2019 13:50:00 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840420#comment-16840420
] 

Emmanuel Lecharny commented on DIRMINA-1108:
--------------------------------------------

There is a 30 seconds keepalive parameter that explains why it takes 20 second to be shutdown.
Have you try calling the shutdownNow()}} method ?

> ThreadPoolExecutors should terminate faster
> -------------------------------------------
>
>                 Key: DIRMINA-1108
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1108
>             Project: MINA
>          Issue Type: Improvement
>    Affects Versions: 2.1.2
>            Reporter: Guus der Kinderen
>            Priority: Minor
>
> I've observed that the termination of {{org.apache.mina.filter.executor.PriorityThreadPoolExecutor}}
takes another 30 seconds after the last task was executed. More specifically, it takes 30
seconds "to long" before {{org.apache.mina.filter.executor.PriorityThreadPoolExecutor#awaitTermination}}
returns {{true}}.
> It is likely that this issue also applies to {{org.apache.mina.filter.executor.OrderedThreadPoolExecutor}},
and maybe {{org.apache.mina.filter.executor.UnorderedThreadPoolExecutor}}, as a lot of code
is shared between these implementations. I did not explicitly verify these implementations
though.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message