IntelliJ Idea
cmd+shift+a
# search the action to performCtrl + Shift + F8Go to IntelliJ IDEA -> Preferences -> Appearance & Behavior-> Appearance
Check the option 'Show memory indicator'Go to Help -> Edit Custom VM Options...
First time, this will ask to create Custom VM Options file (idea.vmoptions).
Physical location of idea.vmoptions file is '~/Library/Preferences/IdeaIC2017.2/idea.vmoptions'
$ cat ~/Library/Preferences/IdeaIC2017.2/idea.vmoptions
# custom IntelliJ IDEA VM options
-Xms1024m
-Xmx2048m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-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
-Xbootclasspath/a:../lib/boot.jarLast updated