tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cooper man <michael.coo...@spika.com>
Subject Re: catalina_pid file contains +1 pid number instead of correct pid
Date Thu, 27 Oct 2011 12:36:07 GMT

Hi Raghu,

My guess is that you have changed the logging to use cronolog and as such
the PID being written is actually the logging process and not the catalina
process. Check your catalina.sh file 
If you see something like this 

org.apache.catalina.startup.Bootstrap "$@" start 2>&1 |/usr/bin/cronolog
"$CATALINA_BASE"

Then there is your answer


Raghu GS wrote:
> 
> Thanks for showing your interest in helping me resolve the issue.
> Do you want me to post bash/shell output or catalina.out file's output?
> 
> 
> Christopher Schultz-2 wrote:
>> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Raghu,
>> 
>> On 9/29/2011 1:30 AM, Raghu GS wrote:
>>>>> I have recently enabled catalina_pid functionality using
>>>>> environment variable. The PID file got created and contains +1
>>>>> PID number.
>> 
>> So, when you look at the PID file you get, say "1235" but when you run
>> a "ps" you see your JVM process is PID "1234"?
>> 
>> I'm surprised that's the case. I would buy that the pid of the
>> /script/ was "1234" and that the JVM is "1235" but I guess strange
>> things can sometimes happen.
>> 
>>> Actually the PID number in the PID file is not wildly incorrect. 
>>> So, please suggest me an easy to implement solution.
>> 
>> We're not entirely sure of the problem, so coming up with a solution
>> isn't going to be terribly easy.
>> 
>> Can you show us what happens when you do this:
>> 
>> $ bin/shutdown.sh
>> $ bin/startup.sh
>> $ cat "$CATALINA_PID"
>> $ ps aux | grep 'java\PID'
>> 
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> 
>> iEYEARECAAYFAk6EkTQACgkQ9CaO5/Lv0PCXPQCfbsvgBvgDP85OKgFVrkJ9Lb6L
>> EWgAn2zBw4rPnqAkMKvP19gzI11ZGSCq
>> =zVEw
>> -----END PGP SIGNATURE-----
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/catalina_pid-file-contains-%2B1-pid-number-instead-of-correct-pid-tp32521407p32731093.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message