From owner-freebsd-java Thu Aug 15 18:36:22 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B661437B400 for ; Thu, 15 Aug 2002 18:36:20 -0700 (PDT) Received: from mgr3.xmission.com (mgr3.xmission.com [198.60.22.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD18D43E70 for ; Thu, 15 Aug 2002 18:36:16 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr3.xmission.com with spam-scanned (Exim 3.35 #1) id 17fW2A-0005j8-00; Thu, 15 Aug 2002 19:36:14 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr3.xmission.com with esmtp (Exim 3.35 #1) id 17fW29-0005ij-00; Thu, 15 Aug 2002 19:36:14 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g7G1a9283716; Fri, 16 Aug 2002 11:06:09 +0930 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 16 Aug 2002 11:06:08 +0930 From: Greg Lewis To: Branden Root Cc: freebsd-java@FreeBSD.ORG Subject: Re: hanging threads with IDEAJ Message-ID: <20020816110608.A83681@misty.eyesbeyond.com> References: <200208151706.42905.branden@portentinteractive.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200208151706.42905.branden@portentinteractive.com>; from branden@portentinteractive.com on Thu, Aug 15, 2002 at 05:06:42PM -0700 X-Spam-Status: No, hits=-3.0 required=8.0 tests=IN_REP_TO,X_AUTH_WARNING,DOUBLE_CAPSWORD version=2.31 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 Thu, Aug 15, 2002 at 05:06:42PM -0700, Branden Root wrote: > I'm currently using IntelliJ's IDEA (java IDE), one of my favorite IDEs. I > have a sample class I wrote with it and I'm running into problems when I > execute it. The class simply gets a URL connection to a location and writes > the HTML to the console. It runs fine if I manually run java from the command > line. However, when I run it inside IDEA, it appears to hang. The IDE doesn't > hang, because I can kill the process ( or at least it thinks it killed it but > the process still runs). Here's the ps output from the threads that still > run, even when I shut down IDEA. I'm seeing the exact same problem in the JCK testing, but only sometimes. Roughly half (estimated) of the runtime failures are tests which run fine from the command line but go off into idle land when run from the Test Agent (if you want an idea of the impact, this is about 90 of 19k tests). Is your class fairly simple? So far I haven't got a simple test case I can post (since I can't post the tests themself). Can you get the same behaviour from a simple wrapper that just spawns a thread that executes the class? > I don't understand the underlying issues enough, so I don't know what this > "green_threads" is, or why its being used by IDE. Is this a jvm issue or an > issue with the IDE? Green threads is just the threading subsystem. Its the default one on FreeBSD, so its just used naturally. Its definitely a JVM issue. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message