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 46174DD47 for ; Thu, 20 Sep 2012 13:25:54 +0000 (UTC) Received: (qmail 66903 invoked by uid 500); 20 Sep 2012 13:25:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66851 invoked by uid 500); 20 Sep 2012 13:25:50 -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 66837 invoked by uid 99); 20 Sep 2012 13:25:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 13:25:50 +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 (nike.apache.org: domain of brett.dellegrazie@gmail.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 13:25:44 +0000 Received: by oagn12 with SMTP id n12so2765333oag.18 for ; Thu, 20 Sep 2012 06:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=hfZXqf/nUD6hyKc3UGCwYYAiCH53eMEsWmckg6VOvxU=; b=I9Khoaz57g9ZRyid0DRUlcruhGmJBNSqq7vC6yERLnskUjn0yvpK3wAOsmjKjMnmeD 5ic5vh60fx2v3s7EU5BXHcPnWcZDq4f9sDcJCxITbPPY0blxJgwl6UVGIg0BXCspy0Bp dCLAxoMf+7YrLV+p244Q1oHP7fI/drpNYSJO5tyMgquHvr6D90N3eEIcIky7mx7VKqYy bnH80RzXIrBqr4V6NdIrZ0rTOrR0ebiKABqqxeoe43miMtc9UufduFoIvvH6s7iX2ylH CbSSOzft+/5Wnf21bqdQthRo2MUsLvQj/5YFAI9mGms1Po8bDTS2OOVh1QBgy7AziX8s X6Sw== MIME-Version: 1.0 Received: by 10.60.7.104 with SMTP id i8mr1263740oea.31.1348147523130; Thu, 20 Sep 2012 06:25:23 -0700 (PDT) Received: by 10.76.69.168 with HTTP; Thu, 20 Sep 2012 06:25:23 -0700 (PDT) Reply-To: bdellegrazie@iee.org In-Reply-To: <29af860f9da21432779254625f072dde@tau.ceti.pl> References: <6C6196C0-1EF5-4738-81A3-35ECCC210B2E@rampageinc.com> <29af860f9da21432779254625f072dde@tau.ceti.pl> Date: Thu, 20 Sep 2012 14:25:23 +0100 Message-ID: Subject: Re: Setting JVM Parameters in Windows Service for Tomcat7 From: Brett Delle Grazie To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 On 20 September 2012 13:53, Mikolaj Rydzewski wrote: > On 20.09.2012 14:49, Patrick Flaherty wrote: > >> I sent a question out a few days ago that I could *not* get the JVM >> Parameters set via the command-line using //US//. >> >> Can you give me an example of the syntax that worked for you ? I'm >> just looking to set the min/max heap sizes. > > > http://commons.apache.org/daemon/procrun.html > > Syntax is not so easy to use. > The easiest way is to use tomcatw.exe - unless you have to use CLI. http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html The default service name is 'Tomcat7' so presuming %CATALINA_HOME% represents the tomcat home directory: Note that for updating the service via command line you need to use tomcat7.exe not tomcat7w.exe so to increase your default heap size from 256 to 512 Mb you would use: %CATALINA_HOME%/bin/tomcat.exe //US//Tomcat7 --JvmMx=512 > > -- > Mikolaj Rydzewski > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > -- Best Regards, Brett Delle Grazie --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org