Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to speed up IntelliJ on Mac OS X 10.9

I'm using Mac OSX 10.9 and Intellij Idea 13 on a decked out machine (7i processor, 16GB RAM, 64 bit, etc.). I have things working well; however, it seems to me that Intellij is running pretty slow (approx. 5 mins to boot up, almost a full 2 minutes to compile a system out print line class, etc.). As a frame of reference I have looked through numerous posts and have landed on the configurations below. My question is this. Does anyone else use a similar set up and have it running quicker? If so, what modifications have you made to your environment to speed things up. Thanks in advance for any help.

Java Version:

Switched from jdk1.6 to jdk1.7

idea.vmoptions:

-ea
-server
-Xms1g
-Xmx1g
-Xss16m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+UnlockExperimentalVMOptions
-XX:+UseConcMarkSweepGC
-XX:LargePageSizeInBytes=256m
-XX:ReservedCodeCacheSize=96m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
-XX:ParallelGCThreads=8
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+DisableExplicitGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+PrintGCDetails
-XX:+PrintFlagsFinal
-XX:+AggressiveOpts
-XX:+HeapDumpOnOutOfMemoryError
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:CMSInitiatingOccupancyFraction=60
-XX:+CMSClassUnloadingEnabled
-XX:+CMSParallelRemarkEnabled
-XX:+UseAdaptiveGCBoundary
-XX:+UseSplitVerifier
-XX:CompileThreshold=10000
-XX:+UseCompressedStrings
-XX:+OptimizeStringConcat
-XX:+UseStringCache
-XX:+UseFastAccessorMethods
-XX:+UnlockDiagnosticVMOptions

info.plist (modification):

<key>LSArchitecturePriority</key>
<array>
  <string>x86_64</string>
</array>

  <key>JVMVersion</key>
  <string>1.7*</string>
like image 813
user3264641 Avatar asked Feb 03 '14 06:02

user3264641


People also ask

Why is IntelliJ slow on Mac?

If your JetBrains IDE is very slow, to the point of being nearly unusable, on MacOS, try disabling antialiasing.

How do I make IntelliJ run faster?

Moving Caches and Index directories to RAM By default IntelliJ will write its temporary files in your home dir. You can speed up the IDE and reduce disk writes by moving this cache into RAM.

Why is IntelliJ so slow?

IntelliJ requires quite a lot of memory. If you don't give it enough memory it will become slow.


1 Answers

I strongly suggest you not to use all these VM options (especially those controlling garbage collector) unless you actually measure they will improve performance. Please report reproducable performance problems as described here https://intellij-support.jetbrains.com/entries/29983118-Reporting-performance-problems

like image 108
Yann Cébron Avatar answered Sep 24 '22 16:09

Yann Cébron