Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High load when plugin is enabled #800

Closed
metalmini opened this issue Oct 5, 2016 · 12 comments
Closed

High load when plugin is enabled #800

metalmini opened this issue Oct 5, 2016 · 12 comments

Comments

@metalmini
Copy link

I am experiencing some problems with this plugin. Whenever i enable the plugin i have a high load on my Mac (macOS Sierra 10.12, 2,3 GHz Intel Core i7, 8 GB mem)

screenshot 2016-10-05 14 51 16

I was running version 0.12.127 of the plugin when i first noticed the high load. So i downgraded to 0.12.126 but this made no difference.

PhpStorm 2016.2.1
JRE: 1.8.0_76-release-b216 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Any ideas where i can find the solution to this problem?

Thanks in advance!

@apfelbox
Copy link

apfelbox commented Oct 5, 2016

I had the same issue, but after updating to the most recent (and the one before) EAP, the issue is gone.

@metalmini
Copy link
Author

Installed PHPstorm EAP, results are the same:

screenshot 2016-10-05 16 15 14

@metalmini
Copy link
Author

This is not a problem if i open another project (with less routes, services etc.)

@Haehnchen
Copy link
Owner

is there a way to reduce the issue scope; which component routing, services results in this behavior, try to delete some of them ;)

did you ignore you cache folder for not indexing it?

@metalmini
Copy link
Author

screenshot 2016-10-06 08 45 42

All settings are default for a Symfony project.

This morning i went and check the above settings, which are only available if the plugin is enabled, and it seems to be smooth sailing. So i am going to monitor the usage and come back in a couple of hours.

@metalmini
Copy link
Author

One step further, there seems to be one twig template that causes this high load. If i select and cut all the text from the file, the load drops. If i paste it back and save it, boom, its high again.

@Haehnchen
Copy link
Owner

is the ide still responding or blocked? possible an endless loop in twig template paths.

@dr0bz
Copy link

dr0bz commented Oct 6, 2016

Same behavior. Change a twig file and save. Clicking save causes a full load on all cpu's. The ide is still responsive. I've tried 0.12.127, .126 and .125 versions. I fear the issue is not new. If you need more investigation let me know.

@metalmini
Copy link
Author

I can still use the ide, scrolling becomes a pain. And my Mac starts to turn on the fans, which never happens.

The endless loop thing, i removed all the includes in the template but the problem still occurs. Is there a debug option in the plugin that logs its every move? This might help.

@Blackskyliner
Copy link

Blackskyliner commented Oct 13, 2016

When I had this problem I increased the memory the JavaVM can use via "Help | Edit Custom VM Options". Since then I don't have this problem anymore as the whole index needs no swapping anymore and can be held in memory (I guess).

Oh and also decreasing the size of particular files was a good thing to do. The Inspections of all Stuff (this Plugin, other Plugins and IDEA integrated Inspection, especially external tools like PHPCS) will choke on an 200-300+ lines sized file (e.G. HTML) and slow down the IDE significantly - At least as far as I can tell.

EDIT: Just saw the most first sentence that the problems are only when this plugin is activated, I guess the first paragraph of my answer is still valid though. The second is more or less a generic optimization hint for fixing somewhat sluggish ide.

@metalmini
Copy link
Author

Thanks for the comment but i will be waiting for the next release to see if this makes any difference.

@metalmini
Copy link
Author

Updated to last version, system seems a lot more stable.

Problem solved, thanks!

Haehnchen added a commit that referenced this issue Oct 23, 2016
… visiting, also supporting function for scopes #773, #800
Haehnchen added a commit that referenced this issue Oct 23, 2016
… visiting, also supporting function for scopes #773, #800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants