tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anirban Talukdar <>
Subject Re: How to get java process id of a user running tomcat
Date Wed, 02 Dec 2009 06:44:54 GMT
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 JNI.

If you found direct API in Java, please inform.

Thanks & Regards
Anirban Talukdar

On Wed, Dec 2, 2009 at 12:00 PM, 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 process id from the script itself. Please
> help me.
> Tomcat: jakarta-tomcat-5.0.28
> Java : j2sdk1.4.2
> OS: SunOS
> Thanks,
> Phani.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message