IntelliJ Scala so slow on fast CPU with 32GB ram

Viewed 1288

I am using IntelliJ 2019.1.3 Community Edition. In Scala compile server, JVM maximum heap size: 4096 my idea.vmoptions:

-Xms4096m
-Xmx6144m
-XX:ReservedCodeCacheSize=2048m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof

Environment

  • IntelliJ IDEA 2019.1.3 (Community Edition) Build #IC-191.7479.19, built on May 28, 2019 JRE: 1.8.0_202-release-1483-b58 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.5
  • IntelliJ Scala plugin v2019.1.8
  • CPU: 2,6 GHz Intel Core i7
  • 32 GB 2400 MHz DDR4

memory indicator shows 2582 used of 6060M

my current project is quite big, ( over 800 files ) and very often even in small files intellij can hang for a few secs, inpections took ages.. Can I speed it up ?

1 Answers

If this still occurs, you should file a bug; as a user of IntelliJ you should not need to worry about a slow editor.

To investigate the problem further, you can first look in the directory from "Help | Show Log in $FileManager". If there are any subdirectories named threadDumps-*, you can find out what stops the editor from being responsive.

You can find more details in the instructions for reporting performance problems in IDEA.

Related