Re: How to get java process id of a user running tomcat

2009-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus, On 12/3/2009 12:09 PM, gerhardus.geldenh...@gta-travel.com wrote: > Me being the one who made the ridiculous suggestion of using ps, > am now enlightened and will be using jps -mlv and spreading the > word... I would still use CATALINA_PID

Re: How to get java process id of a user running tomcat

2009-12-03 Thread David kerber
gerhardus.geldenh...@gta-travel.com wrote: Thanks for the reply, Out of interest the man page for jps states: NOTE: This utility is unsupported and may not be available in future versions of the JDK. It is not currently available on Windows 98 and Windows ME platforms. This might just be a

RE: How to get java process id of a user running tomcat

2009-12-03 Thread Caldarale, Charles R
> From: gerhardus.geldenh...@gta-travel.com > [mailto:gerhardus.geldenh...@gta-travel.com] > Subject: RE: How to get java process id of a user running tomcat > > Out of interest the man page for jps states: > NOTE: This utility is unsupported and may not be available in fu

RE: How to get java process id of a user running tomcat

2009-12-03 Thread Gerhardus.Geldenhuis
utility is supported... and available in future versions. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 03 December 2009 17:37 To: users@tomcat.apache.org Subject: Re: How to get java process id of a user running tomcat On 03/12/2009 17:09, gerhardus.geldenh...@gta

Re: How to get java process id of a user running tomcat

2009-12-03 Thread Pid
to:ch...@christopherschultz.net] Sent: 02 December 2009 20:40 To: Tomcat Users List Subject: Re: How to get java process id of a user running tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phani, On 12/2/2009 1:30 AM, raj kumar wrote: When i ran tomcat and shut it down my java process is not closing along

RE: How to get java process id of a user running tomcat

2009-12-03 Thread Gerhardus.Geldenhuis
- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 02 December 2009 20:40 To: Tomcat Users List Subject: Re: How to get java process id of a user running tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phani, On 12/2/2009 1:30 AM, raj kumar wrote: > When i ran tom

Re: How to get java process id of a user running tomcat

2009-12-03 Thread Tobias Crefeld
Am Wed, 2 Dec 2009 12:00:06 +0530 schrieb raj kumar : > When i ran tomcat and shut it down my java process is not closing > along with shutdown.i need to kill it explicitly. So I would like to BTW: How much memory is reserved for your Tomcat-JVM ($JAVA_OPTS) and how much memory has your server a

TID 170878 Re: How to get java process id of a user running tomcat

2009-12-03 Thread Jess
> > wmic process where "commandline like '%java%'" get commandline, processid > > hope this helps someone out there > > > > > From: "Caldarale, Charles R" > To: Tomcat Users List > Sent: Wed, December

Re: How to get java process id of a user running tomcat

2009-12-03 Thread Michael Dockery
, Charles R" To: Tomcat Users List Sent: Wed, December 2, 2009 9:32:18 AM Subject: RE: How to get java process id of a user running tomcat > From: Pierre Goupil [mailto:goupilpie...@gmail.com] > Subject: Re: How to get java process id of a user running tomcat > > " jps -mlv &q

RE: How to get java process id of a user running tomcat

2009-12-02 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: How to get java process id of a user running tomcat > > But Chuck apparently got tired of simmering in the background, and > could stop himself no longer.. You confuse "tired of simmering" with "waki

Re: How to get java process id of a user running tomcat

2009-12-02 Thread André Warnier
Felix Schumacher wrote: Well, Chuck said the most important bit about finding the root of the problem. I really waited for André to rant about the perl parts...especially using tons of grep before an awk in a system call from perl. Cool :) Well, in my defense, I just turned off mentally about th

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix, On 12/2/2009 3:54 PM, Felix Schumacher wrote: > I really waited for André to rant about the perl > parts...especially using tons of grep before an awk in a system call > from perl. Cool :) Wesley's script was as elegant as it was necessary. I

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Felix Schumacher
Am Mittwoch, den 02.12.2009, 15:42 -0500 schrieb Christopher Schultz: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Felix, > > On 12/2/2009 5:48 AM, Felix Schumacher wrote: > > Have you tried to use the evironment variable CATALINA_PID? > > That variable should be set to a file(name) in w

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix, On 12/2/2009 5:48 AM, Felix Schumacher wrote: > Have you tried to use the evironment variable CATALINA_PID? > That variable should be set to a file(name) in which the pid of tomcat > will be stored. You can take a look at bin/catalina.sh for mo

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phani, On 12/2/2009 1:30 AM, raj kumar wrote: > When i ran tomcat and shut it down my java process is not closing along with > shutdown. See others' responses for why you should have to do this. Otherwise... > i need to kill it explicitly. So I wou

Re: How to get java process id of a user running tomcat

2009-12-02 Thread André Warnier
Caldarale, Charles R wrote: From: Pierre Goupil [mailto:goupilpie...@gmail.com] Subject: Re: How to get java process id of a user running tomcat " jps -mlv " will give you the PIDs of all running Java processes. Plus it's a part of the standard SUN JVM. But not for the OP, wh

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Tobias Crefeld
Am Wed, 2 Dec 2009 12:00:06 +0530 schrieb raj kumar : > Tomcat: jakarta-tomcat-5.0.28 > Java : j2sdk1.4.2 > OS: SunOS ps -fu TomcatsUsername |grep java |grep -v grep |cut -f2 -d" " If the release of your SunOS is as antique as the rest of your software it's possible that one of these commands do

RE: How to get java process id of a user running tomcat

2009-12-02 Thread Caldarale, Charles R
> From: Pierre Goupil [mailto:goupilpie...@gmail.com] > Subject: Re: How to get java process id of a user running tomcat > > " jps -mlv " will give you the PIDs of all running Java processes. Plus > it's a part of the standard SUN JVM. But not for the OP, who is run

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Pierre Goupil
>>> So I would like to know how to identify the java process of the logged in user who started the server " jps -mlv " will give you the PIDs of all running Java processes. Plus it's a part of the standard SUN JVM. Regards Pierre On Wed, Dec 2, 2009 at 7:30 AM, raj kumar wrote: > Hi friend

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Pid
On 02/12/2009 06:30, raj kumar wrote: Hi friends, When i ran tomcat and shut it down my java process is not closing along with shutdown.i need to kill it explicitly. So I would like to know how to identify the java process of the logged in user who started the server. so that i can kill the pro

RE: How to get java process id of a user running tomcat

2009-12-02 Thread Felix Schumacher
al Message- > From: raj kumar [mailto:bprajkumar...@gmail.com] > Sent: 02 December 2009 06:30 > To: users@tomcat.apache.org > Subject: How to get java process id of a user running tomcat > > Hi friends, > > When i ran tomcat and shut it down my java process is not closing al

Re: How to get java process id of a user running tomcat

2009-12-02 Thread Wesley Schwengle
On 02.12.09 07:30 raj kumar wrote: When i ran tomcat and shut it down my java process is not closing along with shutdown.i need to kill it explicitly. So I would like to know how to identify the java process of the logged in user who started the server. so that i can kill the process id from th

RE: How to get java process id of a user running tomcat

2009-12-02 Thread Gerhardus.Geldenhuis
kumar [mailto:bprajkumar...@gmail.com] Sent: 02 December 2009 06:30 To: users@tomcat.apache.org Subject: How to get java process id of a user running tomcat Hi friends, When i ran tomcat and shut it down my java process is not closing along with shutdown.i need to kill it explicitly. So I would

Re: How to get java process id of a user running tomcat

2009-12-01 Thread Anirban Talukdar
Have a look on the demo hello world program in JNI, you can find it over net, and instead of printing the Hello world message just return the process id, which can be found from the linux API. please find the article http://www.pacifier.com/~mmead/jni/cs510ajp/index.html Thanks & Regards Anirba

Re: How to get java process id of a user running tomcat

2009-12-01 Thread raj kumar
Thanks alot anirban for your help. No i want to get the java process id from linux only. Can you help me with some script to get the same? THanks, Phani. On Wed, Dec 2, 2009 at 12:14 PM, Anirban Talukdar < talukdar.anir...@gmail.com> wrote: > In java i don find any API that returns the id of the

Re: How to get java process id of a user running tomcat

2009-12-01 Thread Anirban Talukdar
In java i don find any API that returns the id of the process. Hopefully, It is because process ID is not standard for all the operating system. I am not sure about this. But in linux you can write a simple C/C++ function to get the process id. And that later can be integrated with java through JN

How to get java process id of a user running tomcat

2009-12-01 Thread raj kumar
Hi friends, When i ran tomcat and shut it down my java process is not closing along with shutdown.i need to kill it explicitly. So I would like to know how to identify the java process of the logged in user who started the server. so that i can kill the process id from the shutdown.sh script itse