Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3065
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java GC options for tomcat6 service |
| Date | 2011-04-14 18:41 -0400 |
| Organization | albasani.net |
| Message-ID | <io7t6q$or3$1@news.albasani.net> (permalink) |
| References | <13ada6b2-3e95-409a-aba4-7fd265b20ff2@j9g2000prj.googlegroups.com> |
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: <http://tomcat.apache.org/tomcat-6.0-doc/setup.html> <http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html> 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
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
java GC options for tomcat6 service "Gerard H. Pille" <ghpille@gmail.com> - 2011-04-14 13:53 -0700
Re: java GC options for tomcat6 service Lew <noone@lewscanon.com> - 2011-04-14 18:41 -0400
Re: java GC options for tomcat6 service "Gerard H. Pille" <ghpille@gmail.com> - 2011-04-14 23:07 -0700
Re: java GC options for tomcat6 service Lew <noone@lewscanon.com> - 2011-04-15 07:15 -0400
Re: java GC options for tomcat6 service "Gerard H. Pille" <ghpille@gmail.com> - 2011-04-16 13:46 -0700
csiph-web