23

How can I make IDEA to run faster in Ubuntu? I am running it in a i7 thinkpad with 6 gigs of RAM.

John Conde
  • 217,595
  • 99
  • 455
  • 496
pramesh
  • 1,914
  • 1
  • 19
  • 30
  • 1
    And which kind of things exactly are slow? – Meo May 23 '15 at 09:28
  • 1
    In large projects (many modules and files) it is useful to exclude modules and folders that you do not use or modify. This reduces the "Scan files to index" time. – alditis Oct 12 '19 at 03:19

2 Answers2

14

Disable all unused plugins for example Struts 2, Subversion Integration, UI Designer if you don't have deal with them.

Also increase memory heap, for that I suggest you check following links:

Anton Dozortsev
  • 4,782
  • 5
  • 34
  • 69
  • And [report performance problems](https://intellij-support.jetbrains.com/entries/29983118-Reporting-performance-problems) if you have any. I would say that if any unused plugins cause problems, then they are broken and it needs to be reported. – Meo May 23 '15 at 09:20
  • Optimizer for IntelliJ has very low rating. It force you to register or else it won't work. So I do not recommend it. (It has only 2 stars out of 5) – mjlee Sep 27 '16 at 15:18
  • @mjlee You right. Looking for [comments about this plugin](https://plugins.jetbrains.com/plugin/8056?pr=&ec=false&offset=0&max=15) looks like this is bad idea to suggest it. Thanks for note I update my answer. – Anton Dozortsev Sep 27 '16 at 18:26
0

help -> edit custom vm options -> change everything to:

--server
-Xms1024m
-Xmx1024m
-Xmn256m
-XX:MetaspaceSize=256m
-XX:ReservedCodeCacheSize=2g
-XX:SoftRefLRUPolicyMSPerMB=50
-Xverify:none
-XX:PermSize=128m
-XX:+UseCompressedOops
-XX:+UseG1GC
-XX:+UseNUMA
-XX:MaxMetaspaceSize=1024m
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:CICompilerCount=2
-ea
-Dsun.io.useCanonPrefixCache=false
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-Dide.no.platform.update=true
-Djdk.attach.allowAttachSelf=true
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
acrastt
  • 104
  • 1
  • 7
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Cristik Apr 09 '22 at 14:46