Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea 13 ultimate performance slow, lags while typing

I've googled and tried all SO answers, but none seems to be working for me.

The CPU usage remains low when inactive, as soon as I start typing, it jumps and takes a few seconds to see what I'm typing. Should be some kind of inspection/intellisense, but disabling it makes IDE useless (IDE means intellisense to me), although I'm willing to give it a try and have already tried the below things, but nothing seems to be working for me.

I've tried the following things :

1. -Xms512m
-Xmx1024m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=256m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djsse.enableSNIExtension=false
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50

2. Disabled Git & Subversion plugin

3. Disabled "Probable Bugs" in settings -> Inspection

4. Made sure that I'm running Idea64.exe and changing idea64.exe.vmoptions

5. Created a system variable IDEA_JDK_64 to point to JDK7Update60 

6. Disabled "AutoPopupCodeCompletion" in Editor->CodeCompletion and changed "CaseSensitiveCompletion" to None.

7. Added {userdir}/.intellij and {project}/.idea to Anti-Virus scan exclusion
like image 373
coding_idiot Avatar asked Nov 01 '25 09:11

coding_idiot


2 Answers

This is an old question but I just had similar issue and googling pops this page so it might help someone else in the future.

I am running IntelliJ IDEA 16.1 and writing javascipt was unbearably slow. At the end I tried File | Invalidate Caches/Restart which solved the issue.

like image 132
Petr Beneš Avatar answered Nov 03 '25 14:11

Petr Beneš


Had a discussion with Intellij Support Team

The issue was with only large files (8k+ lines of .js code). Probably, because of system hardware limits.

When I worked with files having less lines of code, it behaved fine.

like image 28
coding_idiot Avatar answered Nov 03 '25 13:11

coding_idiot