Read the JetBrains documentation and this answer on how to increase maximum heap size for IntelliJ.
Set -Xmx2048m to idea.vmoptions (32-bit) or idea64.vmoptions (64-bit) and copy it to the appropriate location according to the documentation I mentioned above.
I would also do File > Invalidate Caches / Restart > Invalidate and Restart to make sure the changes are taken (maybe not necessary, but just in case).
I got the same stack trace today, trying to upgrade from 14.1.1 to 14.1.2 through an automatic updater. In OS X, I decided to rename it ~/Library/Preferences/IdeaIC14/idea.vmoptions to idea64.vmoptions . I already had -Xmx2048m installed in this file, but apparently it could not be read until I renamed it correctly.
Also see issue YouTrack IDEA-139036 (thanks to @Meo).
Aaron mahan
source share