From owner-freebsd-java@FreeBSD.ORG Sun Feb 24 16:43:48 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 03FB416A401 for ; Sun, 24 Feb 2008 16:43:48 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id B83F613C45B for ; Sun, 24 Feb 2008 16:43:47 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from localhost (localhost.morons.org [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 5407D170DA; Sun, 24 Feb 2008 08:43:47 -0800 (PST) X-DomainKeys: Sendmail DomainKeys Filter v0.6.0 turing.morons.org 5407D170DA DomainKey-Signature: a=rsa-sha1; s=selector1; d=spatula.net; c=nofws; q=dns; h=date:from:to:cc:subject:in-reply-to:message-id:references; b=kr/JF6Db9a3ave4uypMvtwDvG2mMrk/x7YQ4aw5gIE0YmZV0ewUiCPTF93l8oStO3 BZSpypt40E5gLdA54Wu+0u4SO6UPKKn2xFexZCPMgfoaJkCG5PssdNQCtn2l/WggsOq PyOfrubWZK0qYhb5tr57z+aZJI1UT78rABxweA0= X-DKIM: Sendmail DKIM Filter v2.4.2 turing.morons.org 5407D170DA DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=spatula.net; s=selector1; t=1203871427; bh=E9R54LI2pyxFCv2cJk1vxFuvzvw=; h=X-Virus-Scanned:Date:From:X-X-Sender:To:cc:Subject:In-Reply-To: Message-ID:References:MIME-Version:Content-Type; b=wGH5CYVoseZ2WNy gKjdVaUSKMaf6dT7tUaJHeqPzDF8/F7ngZvXR6Gq3AFyoqwEoBv/GXER9Ak3tsI2efD 2fNyyYCnMGVQjbFPVXE9R8nzb7JAizUr9HPpShsQHXW0QSAmLSqxfg30EtiVzWtX8Wc 3kYIhxmlM9evXlWgsoLa40= X-Virus-Scanned: amavisd-new at morons.org Received: from turing.morons.org ([127.0.0.1]) by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oOHOJ52j89bg; Sun, 24 Feb 2008 08:43:46 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by turing.morons.org (Postfix) with ESMTP; Sun, 24 Feb 2008 08:43:46 -0800 (PST) Date: Sun, 24 Feb 2008 08:43:45 -0800 (PST) From: Nick Johnson X-X-Sender: spatula@turing To: Andrey Slusar In-Reply-To: <47e01da70802240611s71d8a744p8dc622addf308eed@mail.gmail.com> Message-ID: <20080224083652.D2617@turing> References: <47C1655E.1020301@gmail.com> <47e01da70802240611s71d8a744p8dc622addf308eed@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Daniel Engberg , freebsd-java@freebsd.org Subject: Re: Java JDK 1.6p4 and Azureus 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: Sun, 24 Feb 2008 16:43:48 -0000 On Sun, 24 Feb 2008, Andrey Slusar wrote: > > I've tried both suggestions given (recompile kernel without IPv6 > > support) and adding -Djava.net.preferIPv4Stack=true without any > > difference. Azureus still connects to peers/seeds without any issues but > > doesnt download any pieces. Taking a stock kernel and adding IPv6 > > support to Java 1.6 gives this error message. > >[snip] > > On my RELENG_7 I386 this problem is reproduce too. In kernel ipv6 is > not found, when i'm run azureus with -Djava.net.preferIPv4Stack=true, > azureus is not download/upload - 0% for all torrents. If you send a kill -3 to the running Java process while it's in this hung state, does it give you any interesting information (to stderr) about where the running threads are stuck? Most of the threads you'll see in the thread dump will be either asleep or waiting on a condition, but it would be interesting to see if any are blocked on something networky. That might help isolate the actual call or calls getting stuck. In some cases a kdump to see what syscalls are being executed will help as well. Something like ktrace -di -t ci java whatever.classname.Mainclass and then let it run until it gets hung, ktrace -C or kill the process. Then kdump should show you what was going on with system calls and IO during the time it was hung. Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/