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,

Tom

8 comments

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

0

@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

editor.zero.latency.typing=true

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

 

 

0

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

0

Hi,

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. http://www.distinctive-design.co.uk/logs-20170915-125028.zip

Many thanks!

0

@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 :)

 

0

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?

0

Hi,

Thanks for the responses. 

@Eugene
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

0

Tom,

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

0

Please sign in to leave a comment.