Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 09:07:29 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        "C. Kukulies" <kuku@www.kukulies.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: tomcat41 producing 28 java daemons
Message-ID:  <20040319160729.GA2605@misty.eyesbeyond.com>
In-Reply-To: <200403191102.i2JB2RKx027479@www.kukulies.org>
References:  <200403191102.i2JB2RKx027479@www.kukulies.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 19, 2004 at 12:02:27PM +0100, C. Kukulies wrote:
> when running tomcat41 (ports, 5.2.1) I'm getting about
> 28 of these:
> 782  p3  I      0:08.76 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   783  p3  S      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   784  p3  S      0:01.26 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   785  p3  I      0:00.01 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   786  p3  I      0:00.02 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   787  p3  S      0:00.11 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   788  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   789  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   790  p3  I      0:01.60 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   795  p3  S      0:00.03 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   797  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   798  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   799  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   800  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   801  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
>   802  p3  I      0:00.00 /usr/local/linux-blackdown-jdk1.4.1/bin/java -jar -Dc
> 
> Is this normal?

Yes.  The linux emulator emulates the clone() based threads of Linux
kernels from 2.2 through 2.4 (NPTL of 2.6 would only show up as one
thread).  In that approach each thread shows up as a separate process.
If you don't want this then switch to the native 1.4.2 JDK and you'll
only see the one process.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



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