From owner-freebsd-java@FreeBSD.ORG Fri Mar 19 05:16:26 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 2C9E716A4CE for ; Fri, 19 Mar 2004 05:16:26 -0800 (PST) Received: from smta03.mail.ozemail.net (smta03.mail.ozemail.net [203.103.165.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7181643D2D for ; Fri, 19 Mar 2004 05:16:25 -0800 (PST) (envelope-from joe.shevland@e-wise.com) Received: from AMADAN ([203.102.246.65]) by smta03.mail.ozemail.net with SMTP id <20040319131446.MWBV11826.smta03.mail.ozemail.net@AMADAN>; Fri, 19 Mar 2004 13:14:46 +0000 From: "Joe Shevland" To: "Peter Schuller" , Date: Sat, 20 Mar 2004 00:16:32 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <200403191407.55052.peter.schuller@infidyne.com> 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:16:26 -0000 Ah OK; yep I'd better show my ignorance up front... but anyway, quite keen to check it out given the large gap ahead of me. > -----Original Message----- > From: Peter Schuller [mailto:peter.schuller@infidyne.com] > Sent: Saturday, 20 March 2004 12:08 AM > To: freebsd-java@freebsd.org > Cc: Joe Shevland; Yuri Khotyaintsev; C. Kukulies > Subject: Re: tomcat41 producing 28 java daemons > > > > 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 > >