From owner-freebsd-java Wed Jun 5 19:43:28 2002 Delivered-To: freebsd-java@freebsd.org Received: from mgr3.xmission.com (mgr3.xmission.com [198.60.22.203]) by hub.freebsd.org (Postfix) with ESMTP id ED49337B404 for ; Wed, 5 Jun 2002 19:43:24 -0700 (PDT) Received: from mail by mgr3.xmission.com with spam-scanned (Exim 3.35 #1) id 17FnFA-0007WC-00; Wed, 05 Jun 2002 20:43:20 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr3.xmission.com with esmtp (Exim 3.35 #1) id 17FnF9-0007Vy-00; Wed, 05 Jun 2002 20:43:19 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g562hF838769; Thu, 6 Jun 2002 12:13:15 +0930 (CST) (envelope-from glewis) Date: Thu, 6 Jun 2002 12:13:15 +0930 From: Greg Lewis To: "Robert F. Ross" Cc: freebsd-java@FreeBSD.ORG Subject: Re: green vs. native threads Message-ID: <20020606121315.A38750@misty.eyesbeyond.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rross@recourse.com on Wed, Jun 05, 2002 at 09:48:46AM -0700 X-Spam-Status: No, hits=-4.4 required=8.0 tests=IN_REP_TO version=2.20 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jun 05, 2002 at 09:48:46AM -0700, Robert F. Ross wrote: > On the suggestion from people here about using native threads instead of > green threads I tried running the VM with -native. I never managed to get > select() or poll() behaving right through JNI with green threads. With > native threads, they appear to behave exactly as they should. The problem > is, with native threads my java process eats 100% CPU. When I try to > attach with gdb to see where this is happening, it appears to always > attach with a backtrace of: Have you tried running it under GDB rather than just attaching to the process? This is quite simple to do -- just set the environment variable DEBUG_PROG to gdb. I'd also recommend trying to duplicate the problem with java_g rather than java, you'll get much more useful gdb information that way. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message