[ Zend Studio for Eclipse 6.x, Zend Studio 7.x ]
[ All operating systems ]
This article explains how to manage and reduce performance issues.
Tip 1 - Increasing Java Heap Space for Performance Improvement
Zend Studio for Eclipse includes two related configuration parameters:
- Xms - initial amount of memory to allocate for Java heap space,
- Xmx - maximal amount of memory that is allowed to allocate.
The above parameters are included in the configuration file ZendStudio.ini that resides in the installation directory of Zend Studio for Eclipse. To change these parameters, do the following:
- Open the ZendStudio.ini file in your Zend Studio for Eclipse installation directory. By default, this file is located at:
- Linux - /usr/local/Zend/ZendStudioforEclipse-6.X.X/ZendStudio.ini
- Windows - C:\Program Files\Zend Studio for Eclipse - 6.X.X\ZendStudio.ini
- MacOS X - /Applications/Zend/Zend Studio for Eclipse - 6.X.X/ZendStudio.app/Contents/MacOS/ZendStudio.ini
- Increase the values of the Xms and Xmx parameters.
It is possible to monitor in Zend Studio interface how much Java heap space is used by the application. To do so, enable the option Show heap status in Zend Studio Preferences - Window | Preferences | General (in MacOS X - Zend Studio for Eclipse | Preferences | General). The heap status appears in the application's status bar. This view also allows you to engage the manual cleaning of heap space (garbage collecting) by clicking on the trashcan icon.
Tip 2 - Disabling Code Analyzer
Code Analyzer performs Static Analysis of all PHP files in the Workspace. For large project this may be very time consuming. In order to disable the Code Analyzer please follow the next steps:
- In Zend Studio for Eclipse, go to Windows | Preferences | PHP | Code Analyzer (in MacOS X - Zend Studio for Eclipse | Preferences | PHP | Code Analyzer).
- Uncheck the Enable Code Analyzer checkbox.
- Restart Zend Studio for Eclipse.
Tip 3 - Increasing the Maximum Number of Open Files (Linux)
By default Linux allows a user to open up to 1024 files. Zend Studio for Eclipse may require more than this default. To increase the maximum number of open files in Linux:
- Open the file /etc/security/limits.conf.
- Add the following line:
(Replace 'UserName' with your user name, or use '*' wildcard)
Close the projects that you are not working with. Each project's model consumes some portion of RAM - the bigger the project, the more space.
Close views that are not relevant to your work (e.g. Console view or Tasks view). Each view is very time consuming by itself.
Add the workspace directory (and the projects' directories, if your projects are outside the workspace) to your antivirus exclusion list.
Each of these measures will help to use your resources in a more optimal way. However, it is for you to decide about which tips are suitable for your situation.
Excerpt: This article explains how to manage / reduce Zend Studio for Eclipse performance issues.
Original Post Date: 2009-08-21 20:15:07
This article explains how to manage / reduce Zend Studio for Eclipse performance issues.