From owner-freebsd-java@FreeBSD.ORG Fri Mar 19 05:07:59 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35CFC16A4CE for ; Fri, 19 Mar 2004 05:07:59 -0800 (PST) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5860F43D39 for ; Fri, 19 Mar 2004 05:07:56 -0800 (PST) (envelope-from peter.schuller@infidyne.com) Received: from thunderbolt.scode.org ([213.113.221.49] [213.113.221.49]) by mxfep02.bredband.com with ESMTP <20040319130755.BXTH25822.mxfep02.bredband.com@thunderbolt.scode.org>; Fri, 19 Mar 2004 14:07:55 +0100 Received: from localhost (localhost [127.0.0.1]) by thunderbolt.scode.org (Postfix) with ESMTP id: 07:55 +0100 (CET) From: Peter Schuller To: freebsd-java@freebsd.org Date: Fri, 19 Mar 2004 14:07:55 +0100 User-Agent: KMail/1.6 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403191407.55052.peter.schuller@infidyne.com> cc: Joe Shevland cc: "C. Kukulies" Subject: Re: tomcat41 producing 28 java daemons X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 13:07:59 -0000 > 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 ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org