FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 01-26-2009, 11:44 AM
Mary Ellen Foster
 
Default Very slow Eclipse on F10

Before I file this in bugzilla, I wanted to check if it's just my
problem ... Lately, in Eclipse (3.4.1 on Fedora 10), I've been
noticing that it takes several seconds to open a new editor. So if I
click on a Java source file (in Java perspective), the new tab appears
immediately, but it takes several seconds for the actual editor to
finish rendering. In the meantime, the tab just says "Java editor".
Similar things happen with the Ant buildfile editor.

I have several third-party plugins installed that I don't want to
remove unless I have to, which is why I wanted to check first -- is
anyone else seeing similar symptoms?

Thanks,

MEF

--
Mary Ellen Foster -- http://homepages.inf.ed.ac.uk/mef/
Informatik 6: Robotics and Embedded Systems, Technische Universität München
and ICCS, School of Informatics, University of Edinburgh

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-26-2009, 11:48 AM
Andrew Haley
 
Default Very slow Eclipse on F10

Mary Ellen Foster wrote:
> Before I file this in bugzilla, I wanted to check if it's just my
> problem ... Lately, in Eclipse (3.4.1 on Fedora 10), I've been
> noticing that it takes several seconds to open a new editor. So if I
> click on a Java source file (in Java perspective), the new tab appears
> immediately, but it takes several seconds for the actual editor to
> finish rendering. In the meantime, the tab just says "Java editor".
> Similar things happen with the Ant buildfile editor.
>
> I have several third-party plugins installed that I don't want to
> remove unless I have to, which is why I wanted to check first -- is
> anyone else seeing similar symptoms?

It depends on which Java you have installed. Try this:

$ alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java

If you're on x86, select openjdk. If you don't see openjdk,

yum install java-1.6.0-openjdk-devel

Andrew.

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-26-2009, 12:03 PM
Andrew Overholt
 
Default Very slow Eclipse on F10

* Mary Ellen Foster <foster@in.tum.de> [2009-01-26 07:44]:
> I have several third-party plugins installed that I don't want to
> remove unless I have to, which is why I wanted to check first -- is
> anyone else seeing similar symptoms?

No. This should be fun to track down

Andrew

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-26-2009, 12:34 PM
Mary Ellen Foster
 
Default Very slow Eclipse on F10

On Mon, Jan 26, 2009 at 2:03 PM, Andrew Overholt <overholt@redhat.com> wrote:
> * Mary Ellen Foster <foster@in.tum.de> [2009-01-26 07:44]:
>> I have several third-party plugins installed that I don't want to
>> remove unless I have to, which is why I wanted to check first -- is
>> anyone else seeing similar symptoms?
>
> No. This should be fun to track down

I just tried with a fresh ~/.eclipse directory and a fresh workspace
-- and with both OpenJDK and GCJ -- and it still takes a very
perceptible amount of time to open files. Here's a video:
http://www6.informatik.tu-muenchen.de/~foster/eclipse.ogg

Using the fresh ~/.eclipse should have got rid of the third-party
plugins, but I still have a few Fedora plugins -- CDT, mylyn, and
subclipse. Maybe those are an issue ... can't test much more at the
moment but I'll fiddle around later.

Not much help yet, unfortunately. Maybe I should look upstream and see
if anyone's reported similar issues.

MEF

--
Mary Ellen Foster -- http://homepages.inf.ed.ac.uk/mef/
Informatik 6: Robotics and Embedded Systems, Technische Universität München
and ICCS, School of Informatics, University of Edinburgh

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-26-2009, 12:59 PM
Andrew Overholt
 
Default Very slow Eclipse on F10

* Mary Ellen Foster <foster@in.tum.de> [2009-01-26 08:34]:
> On Mon, Jan 26, 2009 at 2:03 PM, Andrew Overholt <overholt@redhat.com> wrote:
> > * Mary Ellen Foster <foster@in.tum.de> [2009-01-26 07:44]:
> >> I have several third-party plugins installed that I don't want to
> >> remove unless I have to, which is why I wanted to check first -- is
> >> anyone else seeing similar symptoms?
> >
> > No. This should be fun to track down
>
> I just tried with a fresh ~/.eclipse directory and a fresh workspace
> -- and with both OpenJDK and GCJ -- and it still takes a very
> perceptible amount of time to open files. Here's a video:
> http://www6.informatik.tu-muenchen.de/~foster/eclipse.ogg

Hmm. What about opening a second .java file? Once the JDT UI plugins
are (lazily) loaded they should be much faster.

> Using the fresh ~/.eclipse should have got rid of the third-party
> plugins

That's correct.

> Not much help yet, unfortunately. Maybe I should look upstream and see
> if anyone's reported similar issues.

Yeah. It would be nice if we had an easy way to profile this. Other
than the TPTP (eclipse.org/tptp) profiler, I can't think of one OTTOMH.
It would be an interesting project to see what's the best option out
there.

Andrew

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-26-2009, 01:07 PM
Mary Ellen Foster
 
Default Very slow Eclipse on F10

On Mon, Jan 26, 2009 at 2:59 PM, Andrew Overholt <overholt@redhat.com> wrote:
> * Mary Ellen Foster <foster@in.tum.de> [2009-01-26 08:34]:
>> I just tried with a fresh ~/.eclipse directory and a fresh workspace
>> -- and with both OpenJDK and GCJ -- and it still takes a very
>> perceptible amount of time to open files. Here's a video:
>> http://www6.informatik.tu-muenchen.de/~foster/eclipse.ogg
>
> Hmm. What about opening a second .java file? Once the JDT UI plugins
> are (lazily) loaded they should be much faster.

I thought that would be true too, but unfortunately it doesn't get
much faster when opening subsequent files. And all editors seem to be
equally slow, including the plain-text editor. I'll try this at home
tonight on my laptop and see if it happens there too; might be
something weird on this computer.

MEF

--
Mary Ellen Foster -- http://homepages.inf.ed.ac.uk/mef/
Informatik 6: Robotics and Embedded Systems, Technische Universität München
and ICCS, School of Informatics, University of Edinburgh

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 02-16-2009, 07:45 AM
Mary Ellen Foster
 
Default Very slow Eclipse on F10

On Mon, Jan 26, 2009 at 3:07 PM, Mary Ellen Foster <foster@in.tum.de> wrote:
> On Mon, Jan 26, 2009 at 2:59 PM, Andrew Overholt <overholt@redhat.com> wrote:
>> * Mary Ellen Foster <foster@in.tum.de> [2009-01-26 08:34]:
>>> I just tried with a fresh ~/.eclipse directory and a fresh workspace
>>> -- and with both OpenJDK and GCJ -- and it still takes a very
>>> perceptible amount of time to open files. Here's a video:
>>> http://www6.informatik.tu-muenchen.de/~foster/eclipse.ogg
>>
>> Hmm. What about opening a second .java file? Once the JDT UI plugins
>> are (lazily) loaded they should be much faster.
>
> I thought that would be true too, but unfortunately it doesn't get
> much faster when opening subsequent files. And all editors seem to be
> equally slow, including the plain-text editor. I'll try this at home
> tonight on my laptop and see if it happens there too; might be
> something weird on this computer.

Update: turns out it's a problem with GTK printing (and possibly a
slow-ish print server on my local network). The problem goes away when
I do either of the following things:
- add -Dorg.eclipse.swt.internal.gtk.disablePrinting to eclipse.ini
after -vmargs
- remove the ServerName directive from /etc/cups/client.conf

More details in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=153936

Just in case anyone else sees this issue ...

MEF

--
Mary Ellen Foster -- http://homepages.inf.ed.ac.uk/mef/
Informatik 6: Robotics and Embedded Systems, Technische Universität München
and ICCS, School of Informatics, University of Edinburgh

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 02-16-2009, 10:33 AM
Andrew Haley
 
Default Very slow Eclipse on F10

Mary Ellen Foster wrote:
> On Mon, Jan 26, 2009 at 3:07 PM, Mary Ellen Foster <foster@in.tum.de> wrote:
>> On Mon, Jan 26, 2009 at 2:59 PM, Andrew Overholt <overholt@redhat.com> wrote:
>>> * Mary Ellen Foster <foster@in.tum.de> [2009-01-26 08:34]:
>>>> I just tried with a fresh ~/.eclipse directory and a fresh workspace
>>>> -- and with both OpenJDK and GCJ -- and it still takes a very
>>>> perceptible amount of time to open files. Here's a video:
>>>> http://www6.informatik.tu-muenchen.de/~foster/eclipse.ogg
>>> Hmm. What about opening a second .java file? Once the JDT UI plugins
>>> are (lazily) loaded they should be much faster.
>> I thought that would be true too, but unfortunately it doesn't get
>> much faster when opening subsequent files. And all editors seem to be
>> equally slow, including the plain-text editor. I'll try this at home
>> tonight on my laptop and see if it happens there too; might be
>> something weird on this computer.
>
> Update: turns out it's a problem with GTK printing (and possibly a
> slow-ish print server on my local network). The problem goes away when
> I do either of the following things:
> - add -Dorg.eclipse.swt.internal.gtk.disablePrinting to eclipse.ini
> after -vmargs
> - remove the ServerName directive from /etc/cups/client.conf
>
> More details in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=153936
>
> Just in case anyone else sees this issue ...

Thanks very much, that was a real mystery.

http://bugzilla.gnome.org/show_bug.cgi?id=346903 seems still to be open,
but there are patches.

Andrew.

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 

Thread Tools




All times are GMT. The time now is 02:07 PM.

VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org