Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Java (http://www.linux-archive.org/debian-java/)
-   -   Bug #449176: azureus: Downloads very slowly with GIJ (http://www.linux-archive.org/debian-java/1812-bug-449176-azureus-downloads-very-slowly-gij.html)

"Shaun Jackman" 11-21-2007 01:48 AM

Bug #449176: azureus: Downloads very slowly with GIJ
 
Running the bit torrent client Azureus, downloading progresses
terribly slowly with the
java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
thoughts on why this might be the case, or has some time to
investigate, I'd appreciate the help in solving this bug.

http://bugs.debian.org/449176

Cheers,
Shaun


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Andrew Haley 11-21-2007 12:31 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
Shaun Jackman writes:
> Running the bit torrent client Azureus, downloading progresses
> terribly slowly with the
> java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
> thoughts on why this might be the case, or has some time to
> investigate, I'd appreciate the help in solving this bug.
>
> http://bugs.debian.org/449176

What is the CPU meter doing?

If the CPU is pegged at 100%, I'd do some profiling. Also, starting
with the vm option -verbose:class will tell you if, by some accident,
you aren't using the precompiled classes.

Andrew.

--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

"Shaun Jackman" 11-21-2007 05:14 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
On Nov 21, 2007 6:31 AM, Andrew Haley <aph@redhat.com> wrote:
>
> Shaun Jackman writes:
> > Running the bit torrent client Azureus, downloading progresses
> > terribly slowly with the
> > java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
> > thoughts on why this might be the case, or has some time to
> > investigate, I'd appreciate the help in solving this bug.
> >
> > http://bugs.debian.org/449176
>
> What is the CPU meter doing?
>
> If the CPU is pegged at 100%, I'd do some profiling. Also, starting
> with the vm option -verbose:class will tell you if, by some accident,
> you aren't using the precompiled classes.

Hello Andrew,

I can confirm that the CPU usage is <5% and that the precompiled
classes are being used. Lots of messages like
[Loaded (pre-compiled) java.lang.ClassLoader from <no code source>]

I do see messages like this:

DEBUG::Wed Nov 21 11:05:54 GMT-07:00
2007::com.aelitis.azureus.core.networkmanager.impl .tcp.VirtualChannelSelectorImpl::select::586:
VirtualChannelSelector: No progress for op 1: listener = class
com.aelitis.azureus.core.clientmessageservice.impl .NonBlockingReadWriteService$2,
count = 300, socket: open = true, connected = true
VirtualChannelSelector::select::332,NonBlockingRea dWriteService$1::runSupport::82,AEThread::run::69

Perhaps it's related. Which version of Azureus has RedHat packaged?

Cheers,
Shaun


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Andrew Haley 11-21-2007 05:30 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
Shaun Jackman writes:
> On Nov 21, 2007 6:31 AM, Andrew Haley <aph@redhat.com> wrote:
> >
> > Shaun Jackman writes:
> > > Running the bit torrent client Azureus, downloading progresses
> > > terribly slowly with the
> > > java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
> > > thoughts on why this might be the case, or has some time to
> > > investigate, I'd appreciate the help in solving this bug.
> > >
> > > http://bugs.debian.org/449176
> >
> > What is the CPU meter doing?
> >
> > If the CPU is pegged at 100%, I'd do some profiling. Also, starting
> > with the vm option -verbose:class will tell you if, by some accident,
> > you aren't using the precompiled classes.
>
> Hello Andrew,
>
> I can confirm that the CPU usage is <5% and that the precompiled
> classes are being used. Lots of messages like
> [Loaded (pre-compiled) java.lang.ClassLoader from <no code source>]

OK, so you never see

Loaded (bytecode) ?

with azureus classes

> I do see messages like this:
>
> DEBUG::Wed Nov 21 11:05:54 GMT-07:00
> 2007::com.aelitis.azureus.core.networkmanager.impl .tcp.VirtualChannelSelectorImpl::select::586:
> VirtualChannelSelector: No progress for op 1: listener = class
> com.aelitis.azureus.core.clientmessageservice.impl .NonBlockingReadWriteService$2,
> count = 300, socket: open = true, connected = true
> VirtualChannelSelector::select::332,NonBlockingRea dWriteService$1::runSupport::82,AEThread::run::69
>
> Perhaps it's related. Which version of Azureus has RedHat packaged?

Cc: Anthony Green for comments.

Andrew.

--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

"Shaun Jackman" 11-21-2007 05:39 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
On Nov 21, 2007 11:30 AM, Andrew Haley <aph@redhat.com> wrote:
> Shaun Jackman writes:
> > On Nov 21, 2007 6:31 AM, Andrew Haley <aph@redhat.com> wrote:
> > >
> > > Shaun Jackman writes:
> > > > Running the bit torrent client Azureus, downloading progresses
> > > > terribly slowly with the
> > > > java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
> > > > thoughts on why this might be the case, or has some time to
> > > > investigate, I'd appreciate the help in solving this bug.
> > > >
> > > > http://bugs.debian.org/449176
> > >
> > > What is the CPU meter doing?
> > >
> > > If the CPU is pegged at 100%, I'd do some profiling. Also, starting
> > > with the vm option -verbose:class will tell you if, by some accident,
> > > you aren't using the precompiled classes.
> >
> > Hello Andrew,
> >
> > I can confirm that the CPU usage is <5% and that the precompiled
> > classes are being used. Lots of messages like
> > [Loaded (pre-compiled) java.lang.ClassLoader from <no code source>]
>
> OK, so you never see
>
> Loaded (bytecode) ?
>
> with azureus classes

Oh, yes I do. Sorry, I thought it was the precompiled GCJ classes that
were important. I also see for Azureus...
[Loaded (bytecode) org.gudy.azureus2.ui.common.Main from
(file:/usr/share/java/Azureus2.jar <no certificates>)]
... and for SWT...
[Loaded (bytecode) org.eclipse.swt.SWT from
(file:/usr/share/java/swt.jar <no certificates>)]

Cheers,
Shaun


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Andrew Haley 11-21-2007 05:42 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
Shaun Jackman writes:
> On Nov 21, 2007 11:30 AM, Andrew Haley <aph@redhat.com> wrote:
> > Shaun Jackman writes:
> > > On Nov 21, 2007 6:31 AM, Andrew Haley <aph@redhat.com> wrote:
> > > >
> > > > Shaun Jackman writes:
> > > > > Running the bit torrent client Azureus, downloading progresses
> > > > > terribly slowly with the
> > > > > java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
> > > > > thoughts on why this might be the case, or has some time to
> > > > > investigate, I'd appreciate the help in solving this bug.
> > > > >
> > > > > http://bugs.debian.org/449176
> > > >
> > > > What is the CPU meter doing?
> > > >
> > > > If the CPU is pegged at 100%, I'd do some profiling. Also, starting
> > > > with the vm option -verbose:class will tell you if, by some accident,
> > > > you aren't using the precompiled classes.
> > >
> > > Hello Andrew,
> > >
> > > I can confirm that the CPU usage is <5% and that the precompiled
> > > classes are being used. Lots of messages like
> > > [Loaded (pre-compiled) java.lang.ClassLoader from <no code source>]
> >
> > OK, so you never see
> >
> > Loaded (bytecode) ?
> >
> > with azureus classes
>
> Oh, yes I do. Sorry, I thought it was the precompiled GCJ classes that
> were important. I also see for Azureus...
> [Loaded (bytecode) org.gudy.azureus2.ui.common.Main from
> (file:/usr/share/java/Azureus2.jar <no certificates>)]
> ... and for SWT...
> [Loaded (bytecode) org.eclipse.swt.SWT from
> (file:/usr/share/java/swt.jar <no certificates>)]

OK, so you're not picking up the precompiled classes for some reason.
Not good, but the fact that the CPU is only at 5% indicates that isn't
the core problem.

Andrew.

--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

"Shaun Jackman" 11-21-2007 05:54 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
On Nov 21, 2007 11:42 AM, Andrew Haley <aph@redhat.com> wrote:
> Shaun Jackman writes:
> > On Nov 21, 2007 11:30 AM, Andrew Haley <aph@redhat.com> wrote:
> > > Shaun Jackman writes:
> > > > On Nov 21, 2007 6:31 AM, Andrew Haley <aph@redhat.com> wrote:
> > > > >
> > > > > Shaun Jackman writes:
> > > > > > Running the bit torrent client Azureus, downloading progresses
> > > > > > terribly slowly with the
> > > > > > java-gcj-compat JVM and works fine with Sun's JVM. If anyone has any
> > > > > > thoughts on why this might be the case, or has some time to
> > > > > > investigate, I'd appreciate the help in solving this bug.
> > > > > >
> > > > > > http://bugs.debian.org/449176
> > > > >
> > > > > What is the CPU meter doing?
> > > > >
> > > > > If the CPU is pegged at 100%, I'd do some profiling. Also, starting
> > > > > with the vm option -verbose:class will tell you if, by some accident,
> > > > > you aren't using the precompiled classes.
> > > >
> > > > Hello Andrew,
> > > >
> > > > I can confirm that the CPU usage is <5% and that the precompiled
> > > > classes are being used. Lots of messages like
> > > > [Loaded (pre-compiled) java.lang.ClassLoader from <no code source>]
> > >
> > > OK, so you never see
> > >
> > > Loaded (bytecode) ?
> > >
> > > with azureus classes
> >
> > Oh, yes I do. Sorry, I thought it was the precompiled GCJ classes that
> > were important. I also see for Azureus...
> > [Loaded (bytecode) org.gudy.azureus2.ui.common.Main from
> > (file:/usr/share/java/Azureus2.jar <no certificates>)]
> > ... and for SWT...
> > [Loaded (bytecode) org.eclipse.swt.SWT from
> > (file:/usr/share/java/swt.jar <no certificates>)]
>
> OK, so you're not picking up the precompiled classes for some reason.
> Not good, but the fact that the CPU is only at 5% indicates that isn't
> the core problem.

If by precompiled classes you mean compiled to native code using GCJ,
Debian doesn't have native binaries for Azureus, and it isn't set up
to use the native binaries for SWT. I agree with you that I don't
think that's the core issue though. Perhaps Azureus is using some
unusual networking API that perhaps GIJ/classpath doesn't support.
It's odd to me that it does run, and does download a few bytes, only
excruciatingly slowly.

Cheers,
Shaun


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Anthony Green 11-21-2007 06:56 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
Andrew Haley wrote:

OK, so you're not picking up the precompiled classes for some reason.
Not good, but the fact that the CPU is only at 5% indicates that isn't
the core problem.




I believe that the problem lies in our NIO implementation. I don't know
exactly what the problem is. It has been discussed a few times on some
of our mailing lists (GNU Classpath, java@gcc.gnu.org).


FWIW, there have been many bug reports against azureus in Fedora about
this. Now that we have IcedTea I've closed all of these bug reports
just asking people to not use gcj. IcedTea runs azureus just fine.


AG


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

"Shaun Jackman" 11-21-2007 07:09 PM

Bug #449176: azureus: Downloads very slowly with GIJ
 
On Nov 21, 2007 12:56 PM, Anthony Green <green@redhat.com> wrote:
> Andrew Haley wrote:
> > OK, so you're not picking up the precompiled classes for some reason.
> > Not good, but the fact that the CPU is only at 5% indicates that isn't
> > the core problem.
>
> I believe that the problem lies in our NIO implementation. I don't know
> exactly what the problem is. It has been discussed a few times on some
> of our mailing lists (GNU Classpath, java@gcc.gnu.org).
>
> FWIW, there have been many bug reports against azureus in Fedora about
> this. Now that we have IcedTea I've closed all of these bug reports
> just asking people to not use gcj. IcedTea runs azureus just fine.

Great! Glad to hear it. I'm waiting for IcedTea to come to Debian.
There are people working on it, but it hasn't yet arrived:
http://lists.debian.org/debian-java/2007/08/msg00028.html

Cheers,
Shaun


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Andrew Haley 11-22-2007 09:57 AM

Bug #449176: azureus: Downloads very slowly with GIJ
 
Anthony Green writes:
> Andrew Haley wrote:
> > OK, so you're not picking up the precompiled classes for some reason.
> > Not good, but the fact that the CPU is only at 5% indicates that isn't
> > the core problem.
> >
> >
>
> I believe that the problem lies in our NIO implementation. I don't know
> exactly what the problem is. It has been discussed a few times on some
> of our mailing lists (GNU Classpath, java@gcc.gnu.org).
>
> FWIW, there have been many bug reports against azureus in Fedora about
> this. Now that we have IcedTea I've closed all of these bug reports
> just asking people to not use gcj. IcedTea runs azureus just fine.

It would be nice to find out what the problem really is, but I can't
think of a way to find out. At least, a way that doesn't involve
punching a hole in my firewall and allowing God Only Knows what
peer-to-peer traffic through.

Andrew.

--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 04:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.