Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: java GC options for tomcat6 service Date: Thu, 14 Apr 2011 18:41:44 -0400 Organization: albasani.net Lines: 36 Message-ID: References: <13ada6b2-3e95-409a-aba4-7fd265b20ff2@j9g2000prj.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net ZIzhzBfC7uB+JMkBb64unuWdzLifMWCJ7rNlTQRD2IALTDpaCOqFzs1X8N1z+mMDghh/vc+V73AibQvo0WiBuAdZ8/pDz/uaTt4jIGk1pEUfc+yeCg8DJ5UQRye20SQu NNTP-Posting-Date: Thu, 14 Apr 2011 22:41:30 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="IyUzawQn7NGuP9eyTMr2ZQgLf9Y1VYHCGWXBfX88FAEBq2b8e1FSsgCeItKGSWcnEwhfj1KlIimgt8hGRqC5nZ23XUdig3q3bbTJqfWrBLf4aCRLhgh9XEbqZdM2uFHO"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: <13ada6b2-3e95-409a-aba4-7fd265b20ff2@j9g2000prj.googlegroups.com> Cancel-Lock: sha1:INwRCrcHPAqorsUry7yMD+zMuK8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3065 On 04/14/2011 04:53 PM, Gerard H. Pille wrote: > I'd like to pass some java [sic] GC options when starting a tomcat6 [sic] service > on a windows [sic] server, eg. [sic] -Xloggc -XX:+UnlockExperimentalVMOptions -XX: > +UseG1GC > > Tomcat (or the jvm [sic]) seems to disregard my options, or has trouble with > them, like "-XX:+PrintGCTimeStamps" would fail with "unknown option > +PrintGCTimeStamps". The GC-log is never created. If it's an unknown option, that means that that version of the JVM doesn't support that option. You might have to research available options for the JVM that Tomcat's using. > I'm entering these options in the gui [sic]: > > tomcat6w //ES//tomcat6 > > > I know my options are correct, when I start a TestGCThread with them, > they have the desired effect. > > Any idea what I could be doing wrong? Do you have more than one version of Java on the system that's running Tomcat? If so, which version is Tomcat using? References to help answer these questions and yours: It looks like you need options "--JavaHome" or "--Jvm" as well as "--JvmOptions". -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg