You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tor Arne Benjaminsen <to...@chello.no> on 2001/09/25 13:27:43 UTC

Tomcat spawning multiple processes under Linux

I've tried both 3.2.3 and 4.0, and both spawn a varying number of processes, usually between 10 and 25, like this:

root      1908  0.0 34.7 209804 19116 pts/2  S    13:01   0:00 /usr/local/jdk1.3
.1_01/bin/i386/native_threads/java -classpath /usr/local/jakarta-tomcat-4.0/bin/
bootstrap.jar:/usr/local/java/lib/tools.jar -Dcatalina.base=/usr/local/jakarta-t
omcat-4.0 -Dcatalina.home=/usr/local/jakarta-tomcat-4.0 org.apache.catalina.star
tup.Bootstrap start

Could anyone explain to me why this is happening?




Re: Tomcat spawning multiple processes under Linux

Posted by Graham Leggett <mi...@sharp.fm>.
Tor Arne Benjaminsen wrote:

> I've tried both 3.2.3 and 4.0, and both spawn a varying number
> of processes, usually between 10 and 25, like this:

They aren't processes, they are threads. Within Linux, threads and
processes are treated in very similar ways which is why you see them
listed like that, but the most important difference between them being
that threads share the same memory space - which to you means that
tomcat can do 25 things at once, rather than take up 25 times as much
RAM as needed for one.

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."