You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Fischer <Th...@interservices.de> on 2001/06/23 19:34:44 UTC

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.


Re: how to determine if tomcat is running

Posted by .
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" <Th...@interservices.de>
> To: <to...@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.
>>
>

Re: how to determine if tomcat is running

Posted by Jeff Kilbride <je...@kilbride.com>.
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" <Th...@interservices.de>
To: <to...@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.
>