tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [OT] How to obtain the id of the current process
Date Fri, 19 Nov 2010 19:55:00 GMT
Leon Rosenberg wrote:
> On Thu, Nov 18, 2010 at 6:11 PM, André Warnier <> wrote:
>> Christopher Schultz wrote:
>> Maybe we should turn the problem around though.
>> If Leon wanted the PID, it was obviously to do something with it later.
>> What do you do with a PID ?  Usually, one uses it to send a signal to a
>> process.
> actually in the very first line, i wanted to find out if an instance
> of the process was already running.
Ha.  So maybe you could just check if some well-known port is open for business ?
Like that JVM's JMX port for instance ?
That would even have the advantages that it works at a distance, and is really multi-platform.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message