tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Waugh" <...@ic.net>
Subject Re: how to determine if tomcat is running
Date Sun, 24 Jun 2001 13:08:08 GMT
If tomcat is running it will be listening on the ports specified in the
Connectors in server.xml.

These will show up as listening in netstat, can be queried with lsof
or fuser. Even that is no guarantee that it is tomcat listening, but
it would be fairly trivial to retrieve a test page via a perl script
to verify if it is tomcat or not.

HTH,
-Jeff

----- Original Message -----
From: <100520.2367@gmx.de>
To: <tomcat-user@jakarta.apache.org>
Cc: "Thomas Fischer" <Thomas.Fischer@interservices.de>
Sent: Sunday, June 24, 2001 8:10 AM
Subject: Re: how to determine if tomcat is running


> thanks for your response, but this method is not working on all unix
> systems because some of them only show .../java as result of the ps
> command (even with the options you mentioned).
>
> does anybody know anything else how i can be sure if tomcat is running
> or not???
>
> thanks,
>
> thomas.
>
> Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:
>
> > You should have a java process running
> > 'org.apache.tomcat.startup.Tomcat'
> > when Tomcat is running. For example, when I run the 'ps' command I see
> > the
> > following:
> >
> > /usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
> >    -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
> >    -Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
> >    org.apache.tomcat.startup.Tomcat
> >
> > This is all on one line, of course, and I have to use 'ps awx
> > --cols=250'
> > (Linux) in order to see the entire command line.
> >
> > Hope this helps.
> >
> > Thanks,
> > --jeff
> >
> > ----- Original Message -----
> > From: "Thomas Fischer" <Thomas.Fischer@interservices.de>
> > To: <tomcat-user@jakarta.apache.org>
> > Sent: Saturday, June 23, 2001 10:34 AM
> > Subject: how to determine if tomcat is running
> >
> >
> >> i'm writing a script (on a unix-system) which should do different tasks
> >> wether tomcat is running or not. to do so the script has to figure out
> >> the status of tomcat. most daemons use .pid-files or anything similar.
> >> but i found nothing for tomcat.
> >>
> >> i've looked all through the documentation but found nothing about the
> >> runtime status of tomcat. how can i find out if tomcat is already
> >> running?
> >>
> >> thanks for any responses,
> >>
> >> thomas.
> >>
> >
>


Mime
View raw message