 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: [Configuration] Low memory warnings or crashes on Linux
Posted: Sep 05, 2006 - 04:44 AM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23347
|
|
This issue seems to occur only on Linux at this point and has not been duplicated on Windows or Mac with the same version of JRE/JDK.
After a long series of testing we have found that with certain newer releases of Sun's JRE/JDK 1.5.0 (specifically the _08 service release and possibly others) the VM has quite a bit of trouble keeping permGen space clean and even keeping garbage collection down in general so it's possible when using MyEclipse 5.x on Eclipse 3.2.x to run into Low Memory warning dialogs constantly or even have your entire workspace crash out on you.
The solution is to either install the latest 1.4.2_12 release of Sun's JDK or install a relatively new build of the upcomming JDK 6.0 Mustang release for the purpose of running Eclipse with this JDK.
NOTE: JDK 6 is not certified to run the Eclpise 3.2 platform at this time. If you run into problems running MyEclipse/Eclipse using JDK 6, please install and try using the 1.4.2_12 JDK release linked above..
After installing the JDK, you will need to adjust your Eclipse shortcut or eclipse.ini file that is located in your <Eclipse install directory>. In either case you will need to add a new command line argument that will point specifically to the java executable that will be used to run Eclipse, like so:
Shortcut Example
| Code: |
eclipse -vm /usr/lib/jvm/jdk1.6.0/bin/java -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
|
Where -vmargs or any other arguments you have already on the command line will be your own.
NOTE: The command line arguments given above are the suggested command line arguments for the best performance in Eclipse/MyEclipse.
eclipse.ini Example
| Code: |
-vm /usr/lib/jvm/jdk1.6.0/bin/java
-vmargs
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128M
|
NOTE: We have seen issues in the past when command line arguments in the eclipse.ini file are not getting correctly parsed and applied to the Eclipse workspace on launch.
Verify Your Settings
Now to make sure that your new settings are working otherwise you will keep running into the same problems over and over again. To do that first you click on the Help menu and go down and click on About:
Then click the Configuration Details button:
And then scroll down to verify that the VM Eclipse is running with is the one you set:
If you see the version of the JDK that you set, then your arguments worked and you should be all set. If not, please double check your settings. If you are using the eclipse.ini method, please try using the shortcut method and see if that works instead. |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |