tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David kerber <dcker...@verizon.net>
Subject Re: PID file locked on Windows 2008 system
Date Tue, 04 Nov 2014 22:54:25 GMT
On 11/4/2014 5:25 PM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Anil,
>
> On 11/4/14 2:58 PM, Anil Ambati wrote:
>> We have a requirement to read the PID file created by the Tomcat
>> server process on Windows, but we are not able to using
>> RandomAccessFile or FileInputStream because the file seems to be
>> locked by the Tomcat process.
>>
>>
>> Why does the Tomcat server keep the PID file locked, preventing
>> other processes to even read the file? Is there a work around or
>> solution for this problem?
>
> You must be using commons-daemon's procrun, otherwise known as the
> Windows service wrapper. That process creates (and possibly locks) the
> PID file for Tomcat.

This is only peripherally related to the OP, but is there a situation 
where that file is not created, when using the windows service wrapper? 
  I run a dozen or so instances of TC 7.0.54 as separate services on 
Windows 2008 R2 using the included renamed version of procrun, and don't 
have any pid files anywhere that I can find on my file system.


>
> You may find users here who know the answer to your question, but you
> might have better luck posting to the commons mailing list to ask there.
>
> I suspect it's something silly like holding-open the PID file instead
> of writing to it and then closing it.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUWVJWAAoJEBzwKT+lPKRYo0UP/A/HW0TvHf24Esw4tK+wlbLG
> tOwruOGaSC+fwO+hSnSszwmrbRbgwcD6EKwPuueO7aUy3Gp5rCIjnqH13J34It8m
> /31oO8ILwawUpDpup+QZnPOdgxPUfvVBf0Sobiec5HNTNcfiCvqjF4qBB0Eedbt/
> SMmaRBzNSOzSog4LpBKskHaBJSlt65UqMUS0sk2DrbYO+aJRCYA6hv8f5w8gWB0d
> c6z6KOHncVweFiN3fl8PXabKcTWvSEiLh4c+TdXLfC6syMIAQxjo+w5GSOgzQsEU
> ujWh/aB1FSKltNzvW0/2AKABKBH4r6ODuG7bpjrrQ3xSWZch2j8pFGqYgyuCVBwB
> EHclh9d18RYba031r01I9o9tDHGlt1DewquccBgb5m0qRduESqtI0/LYRpr0QUTP
> 6kgR2CCwi81d2OR8ifk6Jhs58ChGzWq4lpeR8ZAd+xsN/1VozznU0XvOOzNd8E6s
> qjZMYbSjaoFFPNHJNXW1ZrfIXfTrFWXHwO4e29BxZrKFhB4I3pL84GrQqO7jOFpc
> 5jO+avhdOGnAb7I/A2mz3b+XKqVL1Ob+U7rfL3uaUeZbuxraNZEqZuvyhgxZ9c23
> Zwwyw5RoU0QOCpJJfhoTdsAlgPVSNAgcvhxPMChzQQepSIoGHAOg6cQi5pptNKgP
> 1TUe3h54UjuGqY1lJ0wO
> =sBXy
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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


Mime
View raw message