Date: Sat, 20 Mar 2004 00:16:32 +1100 From: "Joe Shevland" <joe.shevland@e-wise.com> To: "Peter Schuller" <peter.schuller@infidyne.com>, <freebsd-java@freebsd.org> Cc: "C. Kukulies" <kuku@www.kukulies.org> Subject: RE: tomcat41 producing 28 java daemons Message-ID: <JDEJKBDPOMEJIPCEMEJFIEMPCFAA.joe.shevland@e-wise.com> In-Reply-To: <200403191407.55052.peter.schuller@infidyne.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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?JDEJKBDPOMEJIPCEMEJFIEMPCFAA.joe.shevland>