Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problems with eclipse under Linux
Problems with eclipse under Linux [message #911229] Tue, 11 September 2012 08:01 Go to next message
Sverre Moe is currently offline Sverre MoeFriend
Messages: 57
Registered: September 2012
Member
I have used eclipse in Windows for many years, but when I began to use it in Linux it felt like working in syrup.

It takes a few seconds before the content in the window(any window in eclipse) become visible. Eclipse in Windows7 is much more faster to draw up the content in the windows.
Dragging eclipse windows stretches it over the dragged area instead of making the background visible right away.

Double click to select text takes 1-2 second. In Windows it is instantanious.
Switching between tabs/open files, takes 1-2 seconds.
Changing between perspectives takes up to 3 second.

Eclipse for Windows7 can use up to 1GB of memory both physical and virtual. My Linux instance of eclipse uses a lot less. Could increasing eclipse memory make it to render faster? I have never told eclipse a maximum number of memory when I used it in MS Windows7, it always used what it needed.

I have tried running eclipse in KDE, GNOME and LXDE. Running eclipse in LXDE is a much smoother experience than running it in KDE or GNOME. I have used KDE for many years, but how it treats eclipse is crucial for me. If I cannot find a solution to this I am forced to use the lesser LXDE environment.

So, any tips, tricks for running eclipse smoothly in Linux?

Also, I have installed Sun/Oracle JDK7, but eclipse cannot find it. Even if I add the following to eclipse.ini it still cannot find it:
neither of these works.
-vm /usr/java/latest/
-vm /usr/java/latest/bin/
-vm /usr/java/latest/bin/java

Running eclipse from Konsole with argument -vm /usr/java/latest/bin does work.
Re: Problems with eclipse under Linux [message #911375 is a reply to message #911229] Tue, 11 September 2012 13:21 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/11/2012 2:01 AM, Sverre Moe wrote:
> I have used eclipse in Windows for many years, but when I began to use
> it in Linux it felt like working in syrup.
>
> It takes a few seconds before the content in the window(any window in
> eclipse) become visible. Eclipse in Windows7 is much more faster to draw
> up the content in the windows.
> Dragging eclipse windows stretches it over the dragged area instead of
> making the background visible right away.
>
> Double click to select text takes 1-2 second. In Windows it is
> instantanious.
> Switching between tabs/open files, takes 1-2 seconds.
> Changing between perspectives takes up to 3 second.
>
> Eclipse for Windows7 can use up to 1GB of memory both physical and
> virtual. My Linux instance of eclipse uses a lot less. Could increasing
> eclipse memory make it to render faster? I have never told eclipse a
> maximum number of memory when I used it in MS Windows7, it always used
> what it needed.
>
> I have tried running eclipse in KDE, GNOME and LXDE. Running eclipse in
> LXDE is a much smoother experience than running it in KDE or GNOME. I
> have used KDE for many years, but how it treats eclipse is crucial for
> me. If I cannot find a solution to this I am forced to use the lesser
> LXDE environment.
>
> So, any tips, tricks for running eclipse smoothly in Linux?
>
> Also, I have installed Sun/Oracle JDK7, but eclipse cannot find it. Even
> if I add the following to eclipse.ini it still cannot find it:
> neither of these works.
> -vm /usr/java/latest/
> -vm /usr/java/latest/bin/
> -vm /usr/java/latest/bin/java
>
> Running eclipse from Konsole with argument -vm /usr/java/latest/bin does
> work.

My experience...

....is entirely the opposite. It's much faster on Linux for me than on
any Windows machine. Before I abandoned Windows altogether last Spring,
I had twin i5 machines, 8Gb memory, 2Tb disk that I built myself a
couple of years prior. Ubuntu Lucid on one, Windows 7 Pro on the other.
Though I do mostly JEE development, I did do Android on both (using
Galileo); there were no problems on Linux; I had lots of trouble on
Windows 7 with the ADT.

I've always used GNOME be it on openSuSE 10.x, 11.x, Red Hat, Ubuntu
Karmic, Lucid and Maverick. Except for a little GTK glitch years ago,
I've never had any trouble. I've run on Windows XP and 7.

I'm puzzled by your assertion that Eclipse cannot find your JDK. It's
not "found" by Eclipse, but told to Eclipse just as on Windows. Go to
Window -> Preferences -> Java -> Installed JREs and Add it. I typically
have at least two (major) JDK versions installed.

Also, I never run Eclipse (Windows or Linux) on the Java used by my OS,
but only on a private copy of the JDK. This way, I'm not at the mercy of
automatic updates. Same for Tomcat--private download (indeed, often a
couple of versions for flexibility).

In the interest of being forthright, note too that I haven't graduated
past Indigo yet, though I've installed and played with Juno, which I do
not like for now. I always wimp out and allow others to break all the
ice in a new release.

I doubt any of this is very relevant and I doubt I've been very helpful
at all, either. Sorry about that.

So far, in my estimation that's now 6 years deep (back at least as far
as Europa), Eclipse rocks (except maybe for Ganymeade).

Best of luck.
Re: Problems with eclipse under Linux [message #911743 is a reply to message #911375] Wed, 12 September 2012 08:22 Go to previous messageGo to next message
Sverre Moe is currently offline Sverre MoeFriend
Messages: 57
Registered: September 2012
Member
What I mean by "eclipse does not find java", when executing eclipse it needs java to run and cannot find it.

It gives me this message:
Quote:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/username/eclipse/jre/bin/java
java in your current PATH


Adding my Java in eclipse.ini does not solve this. When I run eclipse in Konsole with the following: ./eclipse -vm /usr/java/latest/bin/
Then eclipse starts up as it should. Java is already listed under Installed JREs.

Though adding a symlink under eclipse program directory solve this issue. When installing Sun/Oracle JDK from rpm or binary it always put it in /usr/java/, so why can't eclipse look there...


I have tried eclipse several times before on Linux with KDE, and always had performance issues with it. Clicking, moving windows, opening files, etc. take longer time. Though using eclipse in LXDE does seem to improve its speed.

Running on:
OpenSuse 12.2
KDE 4.9.1
LXDE from OpenSuse BuildService (Do not know the version).

When I click on something in eclipse I expect it to happen instantaneously.

[Updated on: Wed, 12 September 2012 08:26]

Report message to a moderator

Re: Problems with eclipse under Linux [message #911821 is a reply to message #911743] Wed, 12 September 2012 11:37 Go to previous messageGo to next message
Sverre Moe is currently offline Sverre MoeFriend
Messages: 57
Registered: September 2012
Member
After tweaking on eclipse.ini from tips/tricks found out there in the ether, I managed to get eclipse running smooth. Or at least smoother and can use KDE equally to LXDE. Something I want to add is perhaps running eclipse within kdeinit4 gives poorer performance for eclipse than running it from Konsole-bash.

This is the eclipse.ini I ended up with:
Quote:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:PermSize=512m
-XX:MaxPermSize=512m
-Xms128m
-Xmx1024m
-Xverify:none
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:+UseFastAccessorMethods
Re: Problems with eclipse under Linux [message #911863 is a reply to message #911821] Wed, 12 September 2012 13:14 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/12/2012 5:37 AM, Sverre Moe wrote:
> After tweaking on eclipse.ini from tips/tricks found out there in the
> ether, I managed to get eclipse running smooth. Or at least smoother and
> can use KDE equally to LXDE. Something I want to add is perhaps running
> eclipse within kdeinit4 gives poorer performance for eclipse than
> running it from Konsole-bash.
>
> This is the eclipse.ini I ended up with:
> Quote:
>> -startup
>> plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
>> --launcher.library
>> plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813
>>
>> -product
>> org.eclipse.epp.package.jee.product
>> --launcher.defaultAction
>> openFile
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 512m
>> --launcher.defaultAction
>> openFile
>> -vmargs
>> -Dosgi.requiredJavaVersion=1.5
>> -Dhelp.lucene.tokenizer=standard
>> -XX:PermSize=512m
>> -XX:MaxPermSize=512m
>> -Xms128m
>> -Xmx1024m
>> -Xverify:none
>> -XX:+UnlockExperimentalVMOptions
>> -XX:+UseG1GC
>> -XX:+UseFastAccessorMethods

If you put:

-vm
<path to JRE>

inside eclipse.ini, as instructed by http://wiki.eclipse.org/Eclipse.ini
, you wouldn't have to run Eclipse with a complicated command line. On
Linux, at least in GNOME, most of us create a launcher we can put in a
toolbar to click.

Good luck.
Re: Problems with eclipse under Linux [message #912249 is a reply to message #911863] Thu, 13 September 2012 07:42 Go to previous message
Sverre Moe is currently offline Sverre MoeFriend
Messages: 57
Registered: September 2012
Member
Russell Bateman wrote on Wed, 12 September 2012 09:14


If you put:

-vm
<path to JRE>

inside eclipse.ini, as instructed by http://wiki.eclipse.org/Eclipse.ini
, you wouldn't have to run Eclipse with a complicated command line. On
Linux, at least in GNOME, most of us create a launcher we can put in a
toolbar to click.

Good luck.


I tried that. Did not work. Since eclipse was looking for jre in its own directory I created a symlink there to my system java path.

Am just running plain ./eclipse, not very complicated. Though I have a feeling that running eclipse this way instead of running it within kdeinit4 removes some overhead from KDE and makes eclipse run faster.


Edit: After tweaking with eclipse color themes, every time I change the color theme eclipse hang for a while before changes can take affect. In Windows7 it happens instantaneously.

[Updated on: Thu, 13 September 2012 08:01]

Report message to a moderator

Previous Topic:Eclipse suddenly failing to load projects
Next Topic:Parameterpage and Chart at the "same time"
Goto Forum:
  


Current Time: Thu Apr 18 10:19:46 GMT 2024

Powered by FUDForum. Page generated in 0.03202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top