[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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



Reply to: