-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David,

On 11/4/14 5:54 PM, David kerber wrote:
> On 11/4/2014 5:25 PM, Christopher Schultz wrote: 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.

Sure: if you don't specify a --PidFile argument in procrun, you won't
get a PID file.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUWV8WAAoJEBzwKT+lPKRYXj0P/jTfRf4NQ2ozxcgIz1kW5SHL
QiSy4lEZnMoN7U52rLDIOH40z4eSp3Q5RqZh5eFbsWGuQBHm0n9DEa1KcR0oXKMD
SYzUnYdelfwi/TeG9dPSzHowMjLPhKE4h5p/fKwNx1tfsuFTbZ2rfLAlEl9XH8Zz
nJ79cN+gxF2n3Dy9+JA86nwO/bACQyMToK1rVjtofSpNGD5Q87ehMDY3BviEh0TX
6Y+TeEzRsgSCyrrNBLw5brfJloqAqf94NEDklytDuWSbCbVA5Sru7/KRVHE/RUmr
TUppuaNgZ3zwS3X8k+24duTQbvRc0ADPu94MbBYjcrIyti1BUfhoZQ9yvVLIxZOo
IT2WkhT34u8l1aDQcdkYc3DX4Osag03kHkEpoJiC8ALe79RSy6b+h/5xFbIZ1gZ5
UgXEsGCylAVErXlsz2695Ogt31LeCBOqoqmbfu1kpmAdZUDrlqG19lXy/hKgTlyB
W5DlmvtgR1od95IiYM4qF02bXrE+PoscpWdsjvMXcJqEjm2g/y8tWD9vHYyjtakw
6kzwPZa/ew+EBmADh6G+SMkeS0826gnguHQXuuxq5GR24Ws7hT/QMhrK2AuPl5nd
dnYfZ9taBvX+4giV6ZBny/nZGxux88/ZJ9S4yfRB4GvQh1cupfohra/xxkBX8+F8
vJUqSoRROGc5k9NJePWW
=2WQg
-----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