Tips to Manage Zend Studio 6.x and 7.x Performance Issues


Applies To:

[ 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:

  1. 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/
  2. Increase the values of the Xms and Xmx parameters.
Example ZendStudio.ini contents:

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:

  1. In Zend Studio for Eclipse, go to Windows | Preferences | PHP | Code Analyzer (in MacOS X - Zend Studio for Eclipse | Preferences | PHP | Code Analyzer).
  2. Uncheck the Enable Code Analyzer checkbox.
  3. 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:

  1. Open the file /etc/security/limits.conf.
  2. Add the following line:
UserName hard nofile 32768

(Replace 'UserName' with your user name, or use '*' wildcard)

General Recommendations

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

Alternative Description:

This article explains how to manage / reduce Zend Studio for Eclipse performance issues.

Tags: Apple OS X 10.7 (Lion),Apple OS X 10.8 (Mountain Lion),Apple OS X 10.9 (Mavericks),Code Analyzer,Debian / Ubuntu,heap,limits.conf,MacOS 10.6 and earlier,MS Windows 2003 Server,MS Windows 2008 Server,MS Windows 2012 Server,MS Windows 7,MS Windows 8,MS Windows XP,performance,RedHat Enterprise Linux / CentOS,SUSE Linux Enterprise Server / OpenSUSE,tips,Xms,Xmx,Zend Studio 7.x,Zend Studio for Eclipse 6.x,oldKB