Slow performance

Hi all,

First of all i'd like to say how brilliant PHPStorm is. It has quickly become my editor of choice!

However, I am having some performance issues and I cant figure out why. I am using a Macbook Pro 2.8GHz Intel Core i7 with 16GB LPDDR3 and Intel HD Graphics 630 1536MB. So the computer, as far as I'm aware, should be quick enough to run this.

When I am using PHPStorm it doesn't take long for it to start to lag. It takes a few seconds to move the cursor or do any typing. When this is happening, I am checking my Activity Monitor and it doesn't look like anything is even close to clipping - so I can't figure out why my computer is lagging so badly!

The issue is fixed as soon as I put PHPStorm into Power Save Mode. 

Would someone be kind enough to help my resolve this? Im not sure how to know which background processes are causing this issue.

Many thanks,



Please run Help > Collect & Show logs in ... and upload somewhere the resulting archive. We would need to inspect it.


@dmitry : that is the stock answer, but fact of the matter is PhpStorm is a dawg. I have to reindex/restart every 20 minutes or so (same box).  Every release gets worse, gets the same stock non-answer from yall, and you keep piling garbage non-features in the build, completely oblivious to this basic problem.

@Tom : i have worked some custom java options to alleviate some of this, you will need to experiment. It is not your puter that is lagging, it is PhPstorm.  More and more garbage non-features to be explicitly checked on every keystroke, burdening the index no end. Start by ensuring you have headroom in the JVM memory, then (not sure your java version) try to max out the use of largePages and their memory allocation. As well, be generous on PermSize and MaxPermSize (the storm loads a truckload of classes you will never use).

Also, in custom properties put in

There is a rumor that it is now the default option, but i'm not convinced.




Thanks for you opinion. I would appreciate if you could teach us some more.



Sorry for the late reply. I have had a busy time recently, and began working on a small project which wasn't causing me any issues. However, I have today gone back to one of my larger projects and the issue is apparent once again.

Thank you for your advice both of you. I will start looking into your suggestion now @Yves.

@Dmitry I have attached my logs as asked for.

Many thanks!


@Tom : have updated to java8, some (many) of my GC settings have become obsolete. Experimenting on my own now, to regain some of the String benefits i used to have, as well as the G1C garbage collector. Will publish when i feel I have some optimizations to propose. Even though (officially at least) largePages is not an osX concept, the kernel does support them, and i would not be surprised that Tim and Larry have got some undocumented thing going :)



Tom, I am surprised that there are no thread dumps in the archive, which basically means that PhpStorm isn't aware of its performance issues.
What is there are tons of VCS related exceptions.

A simple test. Please duplicate the project folder, but remove the .git directory from there, open the newly created folder with PhpStorm and let it finish indexing.
Is it any better?



Thanks for the responses. 

I have done exactly as you said and it did indeed fix the issue. Well, I have at least been able to work on the project for a good amount of hours with no problems. But as soon as I put the git folder back in the lagging comes back. Why would this be? Or do I just need to disable git for PHPStorm?...

Many thanks



It might be related to a numbed of unversioned or uncommited files. Do you have lots of them?


I have to be honest I don't know. Ive always kept my files locally in the past but have recently started using BitBucket. I only do basic pushing and committing, Im not sure exactly about version control. I do always commit changes as they are made, so it shouldn't be due to that.

Excuse my ignorance :-$


I have removed version control from the project and I am still having the same issues. :(


Tom, it would be great if you could capture a CPU snapshot based on this article.

You would need to:

1) enable profiler afent

2) start CPU profiling while reproducing lags/freezes for ~1-3 minutes

3) stop CPU profiling and send us resulting snapshot


Thank you for your continued support. I have since rebooted my computer and have not yet had the same problem despite working on the project for a couple of days now. It looks promising now. Hopefully that fixed it, although Im not sure why when i did this as soon as I removed Version Control.
Ill check back with the above information if it happens again.

Thank you to everyone :)


Just wanted to say that I had the same problem on PhpStorm 2017.2, and disabling git-plugins and rebooting the computer fixed this issue for me. 


I'm experiencing the same issue here, on PHPStorm 2017.3.4, especially when typing some PHP variable, even worse when it's an object and I wait for the auto-suggest list to appear.

The memory indicator says nothing special, mostly betwen 200 and 400 of 725 overall mb.

I have not yet disabled the Git integration plugin, as I quite need that. Instead, I deleted some unversioned 100m csv/sql files and now testing if that helps.


@Ansgar : sorry for asking the obvious ... my general temporary fix for this is to Invalidate caches and restart ... it helps (a lot) for a while. The best bang i got was to 'tune' some JVM parameters (consider using large pages, optimizing string ops, large  ReservedCodeCacheSize). 


Ok, I just invalidated the caches again, but I think I've done that before.

Also, I updated to PHPStorm 2018.1.

Along with that update, I installed the 32bit JVM from Jetbrains, as I heard my colleague talking about better performance on the 32bit version vs. 64bit.

Will report in a few days if performance is (and stays) better now. If not, then thanks for hint on the JVM parameters.


Please sign in to leave a comment.