| grep myapp | awk '{print $2}'
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> > >-Original Message-
> >
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> >
> > >Sent: Friday, June 14, 2002 11:41 AM
> > >
rint $2}'
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
>
> From: Turner, John [mailto:[EMAIL PROTECTED]]
>
> >Sent: Friday, June 14, 2002 11:41 AM
> >To: 'Tomcat Users List'
> >Subject: RE: Other question
>
4, 2002 11:41 AM
>To: 'Tomcat Users List'
>Subject: RE: Other question
>
>
>Just for clarification, doing "> tomcat.pid" wouldn't really work, because
>all you would get is the ps entry for that value. You'd have to use cut or
>awk and grab the act
p myapp" and redirect it to tomcat.pid.
John Turner
[EMAIL PROTECTED]
http://www.aas.com
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 10:45 AM
To: Tomcat Users List
Subject: RE: Other question
Howdy,
A relatively unix-flavor-independent way to
That's a good tip! Thanks!
John Turner
[EMAIL PROTECTED]
http://www.aas.com
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 10:45 AM
To: Tomcat Users List
Subject: RE: Other question
Howdy,
A relatively unix-flavor-independent way
[EMAIL PROTECTED]]
>> Gesendet: Freitag, 14. Juni 2002 13:59
>> An: Tomcat Users List
>> Betreff: Re: Other question
>>
>>
>> But it doesn't seem to be correct. It writes in tomcat.pid a
>> PID that doesn't seem to be correct: I have tried to do:
I tried to run Tim's original sh script under Solaris and it wouldn't
give me anything, so I wrote a version in Perl. My script looks like
this:
---
#!/usr/local/bin/perl
open (PIDFILE, "> logs/tomcat.pid");
print PID
Welcome to PID hell! I have this working on HPUX, if you are trying this
on another UNIX - I'm not sure what may happen but here are some hints
to track things down.
1) Make sure the directory you are starting tomcat you are typing
bin/startup.sh. This ensures you will write the the correct lo
Hi,
I have installed your code in my Tomcat (4.0.2 + apache).
But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't
seem to be correct: I have tried to do:
kill -9 PID (which is in the tomcat.pid)
and the system tells me:
bash: kill: (3977) - No such pid
Where is
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
I have mine in the , but it can also go other spots in
conf/server.xml according to the docs.
-Tim
Laura wrote:
> Hi,
>
> your code seems very interesting, but I haven't understood one thing: you says
>
>
>>Then add the follow
Hi,
your code seems very interesting, but I haven't understood one thing: you says
>Then add the following into server.xml
> --Begin server.xml snippet
>
> --End server.xml snippet
do you want to say conf/server.xml?
Can you put in the server.xml? Where do I have to put it in
the server.xml
For what its worth - I created (and use) a LifecycleListener that runs
on startup which logs the process ID into a file called tomcat.pid.
Which is created by a shell script called writepid.sh. Below is all the
code to get this to work. This code also assumes your current working
directory is
Under Solaris you have to use /usr/ucb/ps -ax |grep 'java*' to use the
Berkeley version of ps.
This gives a nice listing of the command line flags too.
Rick
- Original Message -
> hi Laura,
>
> when tomcat runs an instance of java is always running..try
>
> ps -ax | grep 'java*'
>
> it
Hi Laura,
Tomcat actually does have a pid. It is a java application. Under Solaris
if you do a ps -elf |grep nativ you will see a listing beginning with your
JAVA_HOME and ending with ../bin/sparc/nativ_t. That's the pid of the java
virtual machine. If you have multiple java apps running each
>
> I have one other question: If Tomcat shouts down for some cause, how can I know it?
I think the best method is (on linux systems)
# netstat -a -n | grep LISTEN
if tomcat work ok, you'll get:
tcp0 0 0.0.0.0:80010.0.0.0:*
LISTEN
tcp0 0 127.0.0.1:8005
t; <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 3:11 PM
Subject: Re: Other question
> Hey Ravi,
>
>
> Try doing ps auxwwwf
>
> it'll give you alot more detail
>
> the ps -ax won't l
Hey Ravi,
Try doing ps auxwwwf
it'll give you alot more detail
the ps -ax won't let you actually see what java is running
David
Ravishankar S wrote:
>hi Laura,
>
>when tomcat runs an instance of java is always running..try
>
>ps -ax | grep 'java*'
>
>it should give a bunch of java ins
hi Laura,
when tomcat runs an instance of java is always running..try
ps -ax | grep 'java*'
it should give a bunch of java instances depending on the no of
threadshere's what my redhat 6.2 said
21619 pts/3S 0:14
/usr/java/jdk1.3.1/bin/i386/native_threads/java -clas
21664 pts/3
Laura,
there are at least 2 ways...
have a look in the ps list - there should be mention of a process
running with a
name that includes Tomcat (?!!!)
The other way - far better as it actually tests that the system is
working ...
use wget or curl - use your fave and make an access to your si
19 matches
Mail list logo