From owner-freebsd-java@FreeBSD.ORG Fri Nov 18 19:16:58 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 8B373106566B; Fri, 18 Nov 2011 19:16:54 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@freebsd.org Date: Fri, 18 Nov 2011 14:16:41 -0500 User-Agent: KMail/1.6.2 References: <4EC69EAC.80308@rawbw.com> In-Reply-To: <4EC69EAC.80308@rawbw.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111181416.45289.jkim@FreeBSD.org> Cc: Yuri Subject: Re: Java process not killed by java plugin and keep hanging out after the web page using it is closed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2011 19:16:58 -0000 On Friday 18 November 2011 01:06 pm, Yuri wrote: > Hi, > > I have Java browser plugin insgtalled following the handbook: > openjdk6-b23_1 + icedtea-web-1.1.4 + symbolic link. > After using some page with Java plugin in firefox (like > http://websdr.sp3pgx.uz.zgora.pl:8901) and closing it, I still see > java process like this: > 74450 ?? S 0:04.99 /usr/local/openjdk6/jre/bin/java > -Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar:/usr/local/ >share/icedtea-web/plugin.jar -c > Java process disappears after closing firefox. > > When reopening the same page, I see this java process reused. > So it looks like java stays as a dormant child when nobody uses it. > There is no reason to keep java process hanging since it can grow > very large (in my case it's size/res=2489M/164M) and web browser > usually is a long lived process. This is a design decision made by IcedTea-Web author(s), AFAIK. Basically, they prefer faster applet loading. Jung-uk Kim