Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43DAF200BE8 for ; Fri, 23 Dec 2016 15:21:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4283C160B3B; Fri, 23 Dec 2016 14:21:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8D030160B1E for ; Fri, 23 Dec 2016 15:20:59 +0100 (CET) Received: (qmail 29328 invoked by uid 500); 23 Dec 2016 14:20:58 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 29255 invoked by uid 99); 23 Dec 2016 14:20:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 14:20:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0039AC080E for ; Fri, 23 Dec 2016 14:20:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id rECZ594phRLZ for ; Fri, 23 Dec 2016 14:20:56 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4FA935F613 for ; Fri, 23 Dec 2016 14:20:56 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id t196so139127000lff.3 for ; Fri, 23 Dec 2016 06:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4doGzCZWPgw8IpG23mpkwZVYWnX9qEoo4cuWu8oYZEc=; b=XmvR0ljHTofterPSsHuM+ppv/UFVKINPzmd7Ix7m2fUcYxh7oUXDpHhvTZjujzIpKp UIlyhbfTCu+A0OAK07+9imNixtreMozm6lcWkOCOeYrEQw18Uvn7LSqlhZU/3xO+mCym AchAq75umgz44nbzO/s1EIhd09rZT1bIBg1JT0HRHYYNhuU+8BGFsrRxm4HBlreGkDh7 dGHO37xCQtfg7jTKUZn2p9wmSzOvfyUiI/E+vW+T2GwocKJk06ZtbhKdF6dhwSp65IaQ Y78d7ArVnE72XjZp7O+IOQbf0Ox5q2Jtvr3VX/G3YO3q6DwmvhrWynI7FzFLAhdqExvC JWJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4doGzCZWPgw8IpG23mpkwZVYWnX9qEoo4cuWu8oYZEc=; b=Jdi8HtuRFDDD01F4gSTTq6kkWBwM12CfmUZMLkar6LEF/9N2gmgPOCXSt29kTWZ9b1 bVpuE2vDk+SqMXHiqKir7Gex8/CHaOysfp8eaJdsBBgIL8NvM2mI1Kg8qx7aJ5uVVI+D MDPII+DVNOJcLlkT8AzvrbmWX9abSqVwlCgBl2UNLY3gQLHeHonV2jGhCBLSH1bb3tW/ Q260YT8XgNilxya8kLXf8UadSHzh/CAxzMt612NeOhsoZn4PZzPt0STROl0bpi4ThbZZ z57ujw6C0Yn3oQWzvlkgv6pMQV8Xsf9+8blHSDrE8LbTuR8nf4ra7w4Rq+Gr4U6zY5Fl xw1g== X-Gm-Message-State: AIkVDXJftmZOKp/0JvzFpOQ82IXtwScCotxV/Y0xKST/ttM7V2XTuFekiS0/DbvSUY3uN6Wa8ErBGvQuZDWvUg== X-Received: by 10.46.69.69 with SMTP id s66mr6447086lja.71.1482502850000; Fri, 23 Dec 2016 06:20:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.78.138 with HTTP; Fri, 23 Dec 2016 06:20:49 -0800 (PST) In-Reply-To: References: From: Jaroslaw Cwiklik Date: Fri, 23 Dec 2016 09:20:49 -0500 Message-ID: Subject: Re: Using optional argument -Duima.as.enable.jmx=false To: user@uima.apache.org Content-Type: multipart/alternative; boundary=001a114b07e4c0ba2505445417ce archived-at: Fri, 23 Dec 2016 14:21:00 -0000 --001a114b07e4c0ba2505445417ce Content-Type: text/plain; charset=UTF-8 Nelson, thanks for pointing this out. This parameter (-Duima.as.enable.jmx=false) disables ActiveMQ JMX port when running UIMA-AS extended tests. Per JIRA https://issues.apache.org/jira/browse/UIMA-5166 the fix addresses this scenario only. The fix was motivated by a complaint from Apache infra team which noticed an open RMI port while running UIMA-AS Jenkins regression tests. The UIMA-AS 2.9.0 README comments are misleading and suggest that this flag can disable JMX port of the service.I need to rewrite the comment to reflect the truth. Will open JIRA for this. As far as I know there is no way in java code to override these -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false These settings take effect before the jvm hands off control to a user code. The java JMX Agent's registry which opens the port is not accessible for the purpose of stopping the port once it is started. So bottom line the comments are wrong and need to be fixed. I will address this soon. To manage service jmx port use the above 4 -Dcom.sun.management.. settings - Jerry Cwiklik With the above there is no way to disable the RMI port as far as I know. The -D's are On Thu, Dec 22, 2016 at 2:49 PM, nelson rivera wrote: > I am testing recent uima-as 2.9.0 release. I try deploy a service > uima-as, with the new argument uima.as.enable.jmx with value "false", > i expected that the UIMA-AS will start with no JMX support and no port > will not be opened, but a port continue opening and Providing JMX > statistics of processing. > > What should be the behavior of this argument? > > This is the complete set of arguments JMX configured in the uima-as > service start: > > -Duima.as.enable.jmx=false > -Duima.as.enable.jmx=false -Dcom.sun.management.jmxremote > -Dcom.sun.management.jmxremote.port=$PORT > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.ssl=false > --001a114b07e4c0ba2505445417ce--