H
H
hjk2015-11-02 19:45:15
phpstorm
hjk, 2015-11-02 19:45:15

How to make PHPStorm eat less memory?

Actually, I got a project, quite a big one. The story is that at first the storm began to fall with the requirement to give him more than 768MB of RAM. Then even 1024 was not enough for him. I had to run 64bit and give it 2048. But even that was not enough for him. The last time he stupidly hung, biting off as much as ~ 2500MB, only the task manager helped. Before typing ~ 1500mb, you need about half an hour of more or less active work.
There is enough RAM in the computer, I don’t feel sorry, but there must be a limit! Well, okay, 2GB is still all right (Java, that's all), but after all, at such a pace, even 4096 may not be enough for him!
Removed any folders like upload from the index, almost immediately. They are just bulky. But it did not help. What else can be done, has anyone come across? Maybe you should not try to shove everything into one project, but try to somehow divide it into smaller projects? I don’t want to leave the storm, I got attached, I like autocomplete and hotkeys, I know that sublime would be faster and there are also a lot of things you can configure. But still, what to do with the storm?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hjk, 2015-11-05
@hjk

Everything turned out to be simple and stupid. I'll leave it if anyone is interested. Storm indexed a folder with project logs that turned out to be included. He tried to index this growth directly in real time and began to boil. It turned out to be enough to exclude the log folder from the index, and everything returned to normal.

N
nirvimel, 2015-11-02
@nirvimel

There is one recipe for all JetBrains memory products .
The point is that the <loader_name>.vmoptions file is written in the same folder as the loader itself (phpstorm.exe under windows, for example). Further, playing with the values ​​of these parameters, we achieve the required results:

-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question