Speed up Zend Studio

by antbrown on July 2, 2007

I used to be in the category of “Zend Studio runs sweet, what are you all complaining about?” but after upgrading to Zend Studio 5.5 I sadly found myself in the “I just want to code, why are you running so slow!?” category.

Here’s how I managed to speed things up

1. Give it more RAM

On the Mac goto Applications/Zend/ZendStudio-x.x.x/bin/ and right click on ZDE, choose “Show Package Contents”

Open up Contents folder and open Info.plist with your favourite editor

Find…

<key>VMOptions</key>

… and change the contents of the line below it to something like this …

<string>-Xms128m -Xmx256m</string>

This tells Java to allocate a minimum of 128mb ram and a maximum of 256mb, your mileage may very, I have 1GB of ram on my machine and find these settings to work just fine.

2. Tone down the Code completion

By default my Zend Studio had set Code Complete pop-up to appear after 0ms, this is kind of taxing on the CPU so nudge it up to 100ms or so, and do the same with the Call Tips, set that to a good 200-300ms

3. Don’t use the OS Look and Feel

I’ve found that sometimes this will help, and sometimes I just can’t see a difference in performance. But if you’re really stuck with a slow installation of Zend Studio then try unchecking the “Use OS Look and Feel” option under the main Preferences window

4. Clear the Cache

If you are still seeing Zend Studio running slow then try clearing the cache, this is a serious time saver especially if you have large cache files sitting around (40mb+)

On the Mac delete everything under …

/Users/ant/ZDE/config_x.x/caches/

(Of course replacing ant with your username) also note that for older versions the cache directory may be stored elsewhere, but its never hard to find.

Conclusion

Zend Studio is a great IDE for PHP, but now and again it can handle like a pregnant yak, so you might want to bookmark this page for when that happens.

{ 4 comments… read them below or add one }

Jeroen September 18, 2008 at 10:47 am

I was quite desperate, since Zend Studio was crashing all the time and used 99% CPU when scrolling :(

Now scrolling a lot still takes about 25% of my CPU, but everyting works smooth now.

Thanks very much for these tips!

Jeroen

Dave June 9, 2009 at 3:26 pm

Thanks for the tips!
Although the increase in performance is not enough to make me keep using this. Upgraded from 6.0 to 6.1 ….. nothing happened and I got the feeling this is going to stay like this for a while.

It still keeps crashing on me every 10 minutes or so, with the message of not having enough memory to work with.
“Well, I’m sorry if 4 gigs is not enough mr. ZendStudio!”
It is most likely the setup of my computer, cause I see enough people being happy/content with the program. Too bad, the features we’re all good, but no good to me if I can’t use them.

Pablo July 9, 2009 at 3:40 am

Zend Studio became so slow that was unusable, your tips seem to have worked, thanks a lot for sharing these!!!

dplay August 26, 2009 at 5:35 pm

It works on my ZS 5.1! No more over 100% cpu usage.

Thank very much.

Leave a Comment

Previous post:

Next post: