lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@cs.put.poznan.pl>
Subject Re: [JENKINS] Lucene-Solr-4.x-Linux (32bit/jdk1.6.0_37) - Build # 3089 - Failure!
Date Fri, 07 Dec 2012 13:19:29 GMT
Yeah, I'll add it; will try to do it over the weekend.

Dawid

On Fri, Dec 7, 2012 at 2:07 PM, Uwe Schindler <uwe@thetaphi.de> wrote:
> The child process can get ist own PID and print it on startup:
>
> ManagementFactory.getRuntimeMXBean().getName()
>
> This returns an undefined name of the virtzual machine, but in windows and all UNIX it
contains the PID. Looks like pid@localhost. But this is enough to prevent user error when
killing and signaling JVMs.
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>> Of Dawid Weiss
>> Sent: Friday, December 07, 2012 2:03 PM
>> To: dev@lucene.apache.org
>> Subject: Re: [JENKINS] Lucene-Solr-4.x-Linux (32bit/jdk1.6.0_37) - Build #
>> 3089 - Failure!
>>
>> > The PID of the own Java process can be retrieved from the child by the
>> > javax.Management API! I have to lookup the code!
>>
>> PIDs are generally not available, supposedly because on some platforms they
>> may not be available... they're currently adding them in JDK8.
>>
>> What you're referring to is the hack that everyone's using but it doesn't
>> guarantee what you'll get is actually a PID.
>>
>> Dawid
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message