Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2002 11:06:08 +0930
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Branden Root <branden@portentinteractive.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: hanging threads with IDEAJ
Message-ID:  <20020816110608.A83681@misty.eyesbeyond.com>
In-Reply-To: <200208151706.42905.branden@portentinteractive.com>; from branden@portentinteractive.com on Thu, Aug 15, 2002 at 05:06:42PM -0700
References:  <200208151706.42905.branden@portentinteractive.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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