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

2009-12-03 Thread Michael Dockery
...@unisys.com To: Tomcat Users List users@tomcat.apache.org 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 will give you

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

2009-12-03 Thread Jess
this helps someone out there From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List users@tomcat.apache.org 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

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 bprajkumar...@gmail.com: 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

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 tomcat

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

2009-12-03 Thread Pid
...@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
... and the 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 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 future versions of the JDK

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

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-02 Thread Gerhardus.Geldenhuis
Hi Have a look at the Redhat/Centos startup scripts to see how they do that. If you are running a other linux os then use ps and look for java processes. Normally the java process will have a catalina param somewhere so that is usefull to grep for. Regards -Original Message- From: raj

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

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

2009-12-02 Thread Felix Schumacher
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 more information. Bye Felix On Wed, 2 Dec 2009 08:57:45 -, gerhardus.geldenh...@gta-travel.com wrote:

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

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 bprajkumar...@gmail.com

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 running an unsupported version of Tomcat

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 bprajkumar...@gmail.com: 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

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, who is running

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 would

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 more

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 which the

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 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

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 waking up... (GMT-6 :-) - Chuck

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

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
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