• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Tomcat(jdk1.3.1) - Win2k service - GC output

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have set up Tomcat 4.1.27(with jdk 1.3.1) as a service on a Win2k machine using the following script -

tomcat -install "Apache Tomcat" "%JAVA_HOME%\jre\bin\server\jvm.dll"
-verbose:gc -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar"
-Djava.endorsed.dir="%CATALINA_HOME%\common\endorsed"
-Dsun.io.useCanonCaches=false -Dcatalina.home="%CATALINA_HOME%" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
"%CATALINA_HOME%\logs\stderr.log"

I wanted to see the GC ouput, so, I added the -verbose:gc flag. When I see
the registry, I can see this has gone in as a JVM option. But in the log
file, I cannot see any GC output at all. When I try the -verbose:gc in the
console mode(putting it in the catalina.bat file), I can see the GC output
on the console. Am I doing it correctly? If not, what am I doing wrong? Where does Tomcat put the GC output?

Thanks
-Manoj Pooleery.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is the jvm option on it's own line in the registry?

like:

JVM Option Number 0 -> -verbose:gc
JVM Option Number 1 -> etc, etc...

oh.. and is JVM Option Count the correct count ?
[ July 19, 2004: Message edited by: Mike Curwen ]
 
Manoj Pooleery
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I have specified the number of JVM options correctly. Here are the registry values -


In the stderr.log, there is everything except the GC output. Right now, I'm literally Does Tomcat put the GC output in a separate file? If so, where?

Thanks
-Manoj.
[ July 20, 2004: Message edited by: Manoj Pooleery ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have run into several problems with Tomcat 4.1 logging when it is ran as a service. I have discovered that if you use the org.apache.catalina.startup.Bootstrap for your start and stop classes my issues went away. This may solve your issues as well.

You can change the start and stop services in your registry:
hkey_local_machine\system\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\[start class & stop class]

Hope this helps,
Chow
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic