Tips & Tricks

Boosting IntelliJ IDEA Performance on Windows Systems

If you are running a Windows machine with NTFS disks, there is a good chance to double the performance of IntelliJ IDEA by optimizing the MFT tables, disk folder structure and Windows paging file.
We have used the Diskeeper, 2007 Pro Trial version tool to carry out the following procedure. You may of course, repeat this with your favorite defragmenter, provided it supports equivalent functionality.

  1. Free about 25% space on the drive you are optimizing.
  2. Turn off any real-time antivirus protection and reboot your system.
  3. Defragment files.
  4. Defragment MFT (Do a Frag Shield, if you are using Diskeeper). Note that this is quite lenghty process which also requires your machine to reboot several times.
  5. Defragment the folder structure (perform the Directory consolidation).
  6. Defragment the Windows paging file.

The above optimizations have positive impact not only on IntelliJ IDEA, but on general system performance as well.

Technorati tags: , , ,
Comments below can no longer be edited.

13 Responses to Boosting IntelliJ IDEA Performance on Windows Systems

  1. Avatar

    Jon says:

    December 8, 2006

    Thanks for the tip, Egor. On a side note, there’s a defrgger called Perfectdisk that will let you to defragment without requiring a lot of free space – I’ve done it with as little as 3% free space. It’s at

  2. Avatar

    AdrianM says:

    December 8, 2006

    …or install it on a Mac.

    • Avatar

      barry says:

      August 2, 2014

      or we could install it on a real computer

      • Avatar

        Stephen says:

        April 8, 2016

        Little late to the party aren’t we

  3. Avatar

    Ron says:

    December 9, 2006

    A very good tip, indeed. I once tried Diskeeper – I think it was version 10 – and while running it for a few days my Omea Reader database got corrupted several times. After uninstalling Diskeeper things went back to normal. Your mileage, especially with the new version, may vary, though. I prefer Raxco’s PerfectDisk.

  4. Avatar

    neuro says:

    December 9, 2006

    +1 for raxco – one full (offline+online) pass with one reboot and all done. Trial also available.

  5. Avatar

    Sergey Zhukov says:

    December 9, 2006

    Guys, we don’t sell Diskeeper, we just tested it with very good results. πŸ™‚
    Note: the most important thing is: “extend and defragment MFT”. We didn’t notice performance improvement after just usual disk defragmentation.
    Also you should keep enough free space on NTFS volume for daily work, because NTFS can degrade performance on low free space.

  6. Avatar

    Leo says:

    December 11, 2006

    Did you do the performance testing in IntelliJ IDEA 5.X?
    I found that there are problems when I try to open an existing project using IntelliJ IDEA 5.x after defragmenting- IntelliJ IDEA slows down dramatically.
    However, after reinstalling it then problem has gone and I got even better performance than before.

  7. Avatar

    Alexey Efimov says:

    December 11, 2006

    You are seriosly? πŸ™‚
    Defragmentation is not silver bullet for IntelliJ IDEA performance. It must have been a joke about doubling the performance.

    IntelliJ IDEA does not work with large fragmented files that can slow down performance of JVM. IntelliJ IDEA works with large number of files and defragmentation does not solve this problem at all.

    To double the performance of HDD you must not defragment files, but replace IDE disk with an SCSI one. This can really improve the overall performance.

    Thanks! πŸ™‚

  8. Avatar

    Sergey Zhukov says:

    December 11, 2006

    Yes, we’re absolutely serious.
    We’ve done some speed tests with stop watch.
    Note once more: you need to do not “usual” defragmentation, but MFT defragmentation and extension. Of course, you’ll get performance improvement if your MFT is filled up more than 95%. But if your project has a lot of Java files, your MFT most likely near out of space.
    It should affect not only IDEA performance of course.

    We’re testing SAS drives right now and will tell here about results if it’s interesting.

  9. Avatar

    Jens says:

    July 10, 2009

    I had also some problems with the performance of IDEA. You can find a tutorial and some tips how to tune your IDE on

  10. Avatar

    Locked says:

    July 9, 2014

    In Windows 8.* I had really awful lags until I disabled Windows’ File History and also sometimes Tortoise Git’s status cache.
    The major issue was the file history in the development directories.

    I described my experiencis in my blog:

  11. Avatar

    Amin says:

    April 25, 2017

    intellij don’t working good on windows 10, run time is very slow, and it is very slow when i want to compile my code, any one has a solution for speed up intellij?

Discover more