-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To whom it may concern,

On 7/23/12 4:37 PM, k9...@operamail.com wrote:
>> Try this:
>> 
>> $ ps afx
>> 
>> Then, look at the output for 'jsvc' and you should see *three*
>> linked processes. Since you only looked for 'jsvc' you aren't
>> seeing the expected 3rd process (which is actually the instance
>> of Tomcat you are so worried about).
> 
> I still see only two:
> 
> ps afx 20334 ?        Ss     0:00 jsvc.exec -user tomcat
> -java-home /etc/alternatives/java_sdk -pidfile
> /var/run/tomcat7/tomcat7.pid -classpath 
> /usr/local/tomcat7/build/bin/bootstrap.jar:/usr/local/tomcat7/build/bin/commons-daemon.jar:/usr/loca
>
> 
...
> 20335 ?        Sl     0:03  \_ jsvc.exec -user tomcat -java-home 
> /etc/alternatives/java_sdk -pidfile /var/run/tomcat7/tomcat7.pid 
> -classpath 
> /usr/local/tomcat7/build/bin/bootstrap.jar:/usr/local/tomcat7/build/bin/commons-daemon.jar:/usr/
>
> 
...
> 
> No other instance of 'java', 'jsvc' or 'tomcat' in the output.

Hm. Re-reading the commons-daemon page, it looks like maybe the
launcher process exits shortly after launch, leaving only two
long-running processes: the controlling process (the one in the
fork()/wait() loop) and the controlled process (the one that actually
launches the JVM).

At any rate, there is no concern, here, that two instances of Tomcat
have been launched.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlANv5cACgkQ9CaO5/Lv0PAv5QCgg147wMKReJsc6L6oHZa4iNUQ
YrsAn1UXN6du4wh5/p0rrLpPR0KcYE1j
=+9QX
-----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