From owner-freebsd-java@FreeBSD.ORG Wed Sep 3 02:06:17 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E15B106566B for ; Wed, 3 Sep 2008 02:06:17 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-18.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:11::2]) by mx1.freebsd.org (Postfix) with ESMTP id D04CE8FC19 for ; Wed, 3 Sep 2008 02:06:16 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id m8326DZ2024815; Tue, 2 Sep 2008 22:06:14 -0400 (EDT) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.3/8.14.3) with ESMTP id m8326CUG007309; Tue, 2 Sep 2008 22:06:12 -0400 (EDT) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.3/8.14.3/Submit) id m8326BRg023798; Tue, 2 Sep 2008 22:06:11 -0400 (EDT) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to lists@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org, ssanders@opnet.com Date: Tue, 2 Sep 2008 22:06:10 -0400 User-Agent: KMail/1.9.9 References: <48BDC075.2060101@opnet.com> In-Reply-To: <48BDC075.2060101@opnet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809022206.11202.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Subject: Re: Possible Bug X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 02:06:17 -0000 On Tuesday 02 September 2008 6:38:45 pm Stephen Sanders wrote: > We have an application that fork/execs processes at a low frequency rate > ( ~1/minute). The system is under a reasonably heavy > processor/network/disk load as it is capturing data at 1Gbps+. > > At what appear to be random intervals, the parent process in the fork > starts consuming 100% CPU. It looks like the monitor thread in > UNIXProcess is the culprit. > > I've not been able to down load the diablo patches from the FreeBSD web > site, however, it appears OpenJDK that there may be a window for this > sort of thing to happen in UNIXProcess_md.c. > > In Java_java_lang_UNIXProcess_waitForExit(), waitpid() could very easily > fail returning an EINTR as there are no options to the waitpid call.. > This will could cause a tight loop. The error section of the man page > says that if WNOHANG is NOT set then unblocked signals or SIGCHLD will > cause EINTR errors. > > I'll attempt to get the patches from the eyesbeyond web site and verify > this claim. > > Thanks for your attention. > > You didn't mention which FreeBSD version you are running. If it is 6.3 you need to apply this errata to fix a pthread fork bug that exhibits the symptoms you have described: http://security.freebsd.org/advisories/FreeBSD-EN-08:01.libpthread.asc The need for this errata on 6.3 is described in the RELEASENOTE.txt file that comes with diablo. -Kurt