Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8DAEC5B4 for ; Mon, 3 Jun 2013 11:32:00 +0000 (UTC) Received: (qmail 73088 invoked by uid 500); 3 Jun 2013 11:31:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 72906 invoked by uid 500); 3 Jun 2013 11:31:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 72891 invoked by uid 99); 3 Jun 2013 11:31:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 11:31:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 11:31:51 +0000 Received: by mail-ob0-f176.google.com with SMTP id v19so6919846obq.21 for ; Mon, 03 Jun 2013 04:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=a5fEHnrMZVBgNTNDX43Wy33Spx3oqGHIwXMumNaVtKE=; b=xCE/M9E3aVyt/9rmaXTlGtn5LNTYYzyfs5btNeYNuA2G6FZYc3hY/E0kvNCfNoqb43 KwXQf3ayKz7Qy6ejdO4dFRU+OsOtu6u3MkClg3uXQSAA7w6R2CQD5MtoIHhN1gm9hYe+ qoqXt4+ScojzU1wx74JcA2RkawqL/Y8y55QILisV7JmLvncHB7KNCKFZjF++M+0gChBU iP7QELNPBrYWXNpespyWmjxoZa11qiPbKZDw9MouG/q1TXMqaXJd9RcTTCPrKKXyYUzV 4eMHPgsL+oGYmeIMgvL8NUWz181W6UmEHv/CW35f+BwIO8LtWG4e15ssEkQSfjjnsxjS JcPw== MIME-Version: 1.0 X-Received: by 10.60.131.104 with SMTP id ol8mr9703617oeb.104.1370259089713; Mon, 03 Jun 2013 04:31:29 -0700 (PDT) Received: by 10.76.117.165 with HTTP; Mon, 3 Jun 2013 04:31:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Jun 2013 15:31:29 +0400 Message-ID: Subject: Re: Tomcat 6 and Windows Service From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2013/6/3 > > Hi, > > I'm running tomcat as Windows service. > > Now I like to add JMX support to the process: > > -Dcom.sun.management.jmxremote.port=3D10150 > -Dcom.sun.management.jmxremote.ssl=3Dfalse > -Dcom.sun.management.jmxremote.authenticate=3Dfalse > > Configuring the service > > > > added the above options to the Java options. The start is then working fi= ne and JMX is working fine. But since I made this service the stop operatio= n is not working anymore. When I run via console, then I see that the stop = is complaining on port (used by JMX), already in use. This is propably the = root cause of the stop not working. Is there a way to specify JVM arguments= for only the start operation? The service wrapper comes from Apache Commons Daemon project. http://commons.apache.org/proper/commons-daemon/ You are better to ask there. The things that I would try: a) add those "-D,.." to "start arguments" setting. (The one that contains a single argument "start" by default). Maybe it works, maybe not. b) add those properties to conf/catalina.properties file It would not work if JVM reads them at startup (before the Bootstrap class runs), but should work if it reads them at a later time. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org