Skip to content

Instantly share code, notes, and snippets.

@localredhead
Created January 10, 2012 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save localredhead/1585979 to your computer and use it in GitHub Desktop.
Save localredhead/1585979 to your computer and use it in GitHub Desktop.
Intellij tuning options.
<key>VMOptions.x86_64</key>
<string>-Xms384m -Xmx384m -Xmn64m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=32m -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+AggressiveOpt -XX:+UseBiasedLocking -XX:+CMSClassUnloadingEnabled -XX:+DoEscapeAnalysis -Dawt.useSystemAAFontSettings=lcd</string>
______________ Stable options
<key>VMOptions.x86_64</key>
<string>-Xms400m -Xmx400m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:-UseParNewGC -XX:+AggressiveOpts -Dawt.useSystemAAFontSettings=on</string>
_______________ OR switch to GTK theme
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true"
_______________ EXPIRIMENTAL OPTIONS
<key>VMOptions.x86_64</key>
<string>-Xms288m -Xmx288m -XX:PermSize=190m -XX:+UseStringCache -XX:+UseCompressedStrings -XX:+OptimizeStringConcat -XX:+UseCompressedOops -XX:ParallelGCThreads=4 -Xincgc -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Dawt.useSystemAAFontSettings=gasp</string>
_______________ EVERYDAY
<key>VMOptions.x86_64</key>
<string>-Xms768m -Xmx768m -XX:PermSize=256m -XX:+UnlockExperimentalVMOptions -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+UseStringCache -XX:+UseCompressedStrings -XX:+OptimizeStringConcat -XX:ParallelGCThreads=4 -Xincgc -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Dawt.useSystemAAFontSettings=gasp</string>
_____________________________
credit: http://hamletdarcy.blogspot.com/2008/02/10-tips-to-increase-intellij-idea.html
1. Change your Look and Feel
Change your look and feel to something other than native. On Windows, the “IDEA (4.5 Default)” look and feel performs much better than the native one. On Mac, just pick something other than the native. The new graphics will bother you for about 30 minutes and then you’ll forget all about them. This setting is in the Settings (Ctrl+Alt+S) -> Appearance (B) dialog. (Tip courtesy of Howard Lewis Ship)
2. Use Structure View Instead of Project View
In IDEA 7.0.2 on Windows, I seem to pay a heavy performance price for the Project View (Alt+1), especially with autoscrolling to and from source enabled. My alternative is to use the Structure View (Alt+2) as my default sidebar and rely on the Navigation Bar (View->Navigation Bar) for project navigation. I find I actually prefer this setup and 7.0.2 performs noticeably faster.
3. Turn off Synchronize Files
When you activate the IDEA frame, IDEA will scan the disk for file changes, giving you a nice progress bar to wait for. If you’re not editing files outside of IDEA then turn this feature off in Settings (Ctrl+Alt+S) -> General (A). Uncheck “Synchronize Files on Frame Activation”. Now you’ll have to manually synchronize the files using Ctrl+Alt+Y (File->Synchronize on the menu). (Tip courtesy of Tyler)
5. Disable Unused Plugins
Disable all of the plugins you are not currently using. For example, if you’re not using Geronimo, Commander or Jabber, then turn them off. Settings (Ctrl+Alt+S) -> Plugins (T). Uncheck anything you have installed that is unused (Tip courtesy of Carl)
7. Increase Your Heap Size
Several sources include directions on increasing your heap size in IDEA. This is changed in your idea.exe.vmoptions file.
____________________________________
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment