camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Papke (JIRA)" <>
Subject [jira] [Created] (CAMEL-9738) Thread leak for camel-mina2 consumers
Date Tue, 22 Mar 2016 10:55:25 GMT
Thomas Papke created CAMEL-9738:

             Summary: Thread leak for camel-mina2 consumers
                 Key: CAMEL-9738
             Project: Camel
          Issue Type: Bug
          Components: camel-mina2
    Affects Versions: 2.16.2
            Reporter: Thomas Papke

The camel-mina2 consumer ({{org.apache.camel.component.mina2.Mina2Consumer.doStart()}}) internally
start a Mina2 IoAcceptor ({{org.apache.mina.core.service.IoAcceptor}}), but the {{org.apache.camel.component.mina2.Mina2Consumer.doStop()}}
do not invoke {{acceptor.dispose(true);}} to release the threadpool started by Mina2.

*Current behavior:* While stopping the web application, the threadpool started by Mina2 IoAcceptor
will not be stopped, so we have several thread which do not properly shutdown.

*Current workaround:* I create custom CamelShutdownStrategy and collect all Mina2Consumer
and invoke Mina2consumer.getAcceptor.dispose(true); OR as an alternative create a dedicated
consumer and overwrite the stop method of the Mina2 consumer as seen here:

*Suggested bugfix:* In {{org.apache.camel.component.mina2.Mina2Consumer.doStop()}} call the
IoAcceptor dispose(true) method after unbind from the address.

This message was sent by Atlassian JIRA

View raw message