You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Ch...@t-systems.com on 2017/04/12 09:57:03 UTC

UIMA AS 2.8.1 Bug: Service does not exit after quiesce via JMX

Hi all,

I think the functionality to quiesce a deployed AE via JMX is not implemented correctly.

I did the following steps:

-          Deploy AE via shell script

-          Enable JMX monitor by passing parameters to JVM -Duima.jmx.monitor.interval=60000 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8009 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

-          Connect via JConole and navigate to org.apache.uima -> ee.jms.service -> <Your Annotator Name> Uima EE Service -> Controller -> Operations

-          Run operation completeProcessingAndStop()

Result:

-          The Java process does not exit correctly, because the JMXMonitor thread is still running

Reason:

-          If you quiesce the service via console q + ENTER or s + ENTER the method stopMonitor in class UIMA_Service is explicit executed

-          If you quiesce the service via JMX and running operation StopNow() a System.exit(0) is executed, which kills the JMXMonitor thread

-          If you run operation completeProcessingAndStop() via JMX the JMXMonitor thread is not closed and this is the reason for the bug.


I hope this information will help you to test the behavior. Please feel free to contact me for further details and questions.


Regards,
Christopher Schulz.

Re: UIMA AS 2.8.1 Bug: Service does not exit after quiesce via JMX

Posted by Jaroslaw Cwiklik <cw...@apache.org>.
Christopher, thanks for submitting detailed description of the problem. I
will test the scenario and create a JIRA to fix it in the next release.

Jerry Cwiklik
UIMA

On Wed, Apr 12, 2017 at 5:57 AM, <Ch...@t-systems.com> wrote:

> Hi all,
>
> I think the functionality to quiesce a deployed AE via JMX is not
> implemented correctly.
>
> I did the following steps:
>
> -          Deploy AE via shell script
>
> -          Enable JMX monitor by passing parameters to JVM
> -Duima.jmx.monitor.interval=60000 -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=8009 -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote.ssl=false
>
> -          Connect via JConole and navigate to org.apache.uima ->
> ee.jms.service -> <Your Annotator Name> Uima EE Service -> Controller ->
> Operations
>
> -          Run operation completeProcessingAndStop()
>
> Result:
>
> -          The Java process does not exit correctly, because the
> JMXMonitor thread is still running
>
> Reason:
>
> -          If you quiesce the service via console q + ENTER or s + ENTER
> the method stopMonitor in class UIMA_Service is explicit executed
>
> -          If you quiesce the service via JMX and running operation
> StopNow() a System.exit(0) is executed, which kills the JMXMonitor thread
>
> -          If you run operation completeProcessingAndStop() via JMX the
> JMXMonitor thread is not closed and this is the reason for the bug.
>
>
> I hope this information will help you to test the behavior. Please feel
> free to contact me for further details and questions.
>
>
> Regards,
> Christopher Schulz.
>