You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rasputin <ra...@idoru.mine.nu> on 2002/12/19 13:37:28 UTC
Re: [OFF-TOPIC] RE: Na?ve question about root
* Ben Ricker <br...@wellinx.com> [1231 20:31]:
> On Wed, 2002-12-18 at 12:26, Matt Harris wrote:
> > Apache normally runs multiple processes to handle multiple simoultaneous
> > user requests. This can be configured in your httpd.conf. Tomcat runs
> > multiple processes, which it calls "workers". Since tomcat is in java
> > and not a truly binary-compiled language (like C or C++) it runs under
> > java which is part of your JRE (java runtime environment).
Is that right? I thought these were multiple threads, not processes
(see below).
> Another small tidbit: Linux's 'ps' command shows threads as processes.
> Apache runs multiple processes, but Java runs one processes with
> multiple threads. Can't remember why Linux does that...
<geek>
Linux uses a model called 'process threads', where a single
process with multiple threads in it gets mapped to one system process
per thread. Technically this breaks POSIX compatibility, because threads
in a single process are supposed to have the same PID.
Solaris uses a totally different threading model called
'schedular activations' which is far too complicated to discuss here.
The BSDs use a different model again.
So generally you only see the
'lots of threads look like lots of processes' bug under Linux.
</geek>
> Anyway, we run our Tomcats on Solaris and there is only one java process
> per Tomcat instance listed in 'ps'.
--
Rasputin :: Jack of All Trades - Master of Nuns
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>