-----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.

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to