Posted by: james | June 3, 2009

Eclipse speed

Eclipse is one of the largest application in size which we use for our PHP development. Because of its large size and running through JVM (Java Virtual Machine), this application is very much slow in execution. Here are few configurations to be made to speed up Eclipse execution.

A file eclipse.ini is found under the directory from where eclipse is running. The following changes should be made in this file:

  1. Find the lines containing -Xms40m and -Xmx256m and replace them with -Xms128m and -Xmx384m respectively.
  2. Add the following lines at the end of the file
-vm
C:\Program Files\Java\jre1.6.0_11\bin\client\jvm.dll
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:CompileThreshold=5
-Dcom.sun.management.jmxremote

NOTE: The path C:\Program Files\Java\jre1.6.0_11\bin\client\jvm.dll may differ according to JRE installation on your computer. Please find the correct path of jvm.dll file and put it accordingly.

We use Eclipse PDT 2.0 which is based on Eclipse 3.4 which is comparatively faster than Eclipse 3.3 or older. Some of us are also using Zend Studio which is also Eclipse PDT based IDE and provides similar functionality as Eclipse PDT. But the latest version of Zend Studio (Version 6.1.2) which is still based Eclipse (Version 3.3). So it is recommended to use Eclipse PDT instead of Zend Studio for better performance until next version of Zend Studio is not released.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: