Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 14:07:55 +0100
From:      Peter Schuller <peter.schuller@infidyne.com>
To:        freebsd-java@freebsd.org
Cc:        "C. Kukulies" <kuku@www.kukulies.org>
Subject:   Re: tomcat41 producing 28 java daemons
Message-ID:  <200403191407.55052.peter.schuller@infidyne.com>
In-Reply-To: <JDEJKBDPOMEJIPCEMEJFIEMICFAA.joe.shevland@e-wise.com>
References:  <JDEJKBDPOMEJIPCEMEJFIEMICFAA.joe.shevland@e-wise.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Really, every Java spawned thread is a separate process with the Linux JDK?
> (Or is that just how it appears?). Sorry, I shouldn't come out of my lurker
> mode, but that must be expensive?

They do show up as separate processes and they are since kernel threads are 
non-existence on Linux. However they do share the same memory so you aren't 
wasting gigs and gigs of memory if that's what you're worried about.

And if you were thinking it must be expensive to launch a JVM for each thread 
- that's not what's going on either. I dunno *exactly* how it works but the 
JVM is forking/cloning for each thread. Unless you use green threads, but I 
don't think hardly anyone is doing that nowadays - but it was popular back 
when native threads weren't stable (particularly on platforms not supported 
by Sun).

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey@scode.org
E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403191407.55052.peter.schuller>