tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: [OT] How to obtain the id of the current process
Date Wed, 17 Nov 2010 22:02:11 GMT
2010/11/18 Leon Rosenberg <rosenberg.leon@gmail.com>:
> Is there another method to obtain the process id from within the process?

Of Tomcat process, or of something else?

You can set $CATALINA_PID in your bin/setenv.sh, and Tomcat's PID will
be written to that file.


If you need it for something else, ... these are the two first results
for 'java process PID' in Google::

[1] http://bugs.sun.com/view_bug.do?bug_id=4244896
(an RFE asking for tis feature, you can vote for it)

[2] http://blog.igorminar.com/2007/03/how-java-application-can-discover-its.html



Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message