Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm uses 100% CPU

I use WebStorm 11 and developing in Angular2. The ng serve is working on background from the cmd and the CPU is on 1% work.

When the WebStorm is opening, the CPU jump to 30%-60% and when he start indexing it goes to 100% until the WebStorm crushes.

  • I have Intel(R) Core(TM) i503210M CPU @ 2.50GHz 2.50GHz and 8G RAM (I don't have RAM problem).
  • I excluded dist and node_modules folders but the indexing still takes too long.

WebStorm.exe.vmoptions:

-server
-Xms128m
-Xmx1012m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=512m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
  1. What does the indexing do? Can I turn it off?
  2. What is the best way to configure this for small projects?
like image 672
Stav Alfi Avatar asked Jul 10 '16 17:07

Stav Alfi


People also ask

Why does WebStorm use so much memory?

Maximum size of files (in kilobytes) that WebStorm is able to open. Working with large files can affect editor performance and increase memory consumption. The default value is 20000 .

Is IntelliJ CPU intensive?

I have frequent issues with my laptop fans going 100% and other tasks freezing because IntelliJ uses almost 100% of the CPU to reindex, to build the project. Even on small projects.

Why does Pycharm use CPU?

When Pycharm performs some operations such as indexing, it starts draining the entire CPU resources. While this may achieve the operation faster, it heats up the CPU resulting in the fan running at full speed, and the other application becoming non-responsive.


1 Answers

For people that aren't already, make sure you aren't indexing your dist or www folders.

Right click the folder -> "Mark Directory As" -> "Excluded".

Saved me!

like image 77
caden311 Avatar answered Oct 01 '22 12:10

caden311