IntelliJ IDEA performance improvement

Working as a consultant, it is not unusual that I am referred to customer specific software environment with regard to computers, operating systems, networks and other configurations. However, since I work with Java, most tools are available online and they can easily be downloaded and installed on different platforms. IntelliJ IDEA is no exception, but before you start coding you should make sure you know how the home directory of your computer is setup and configure IntelliJ IDEA accordingly. From the documentation:

In some environments user’s home directory is located on the mapped network drive which is unacceptable for IntelliJ IDEA. You’ll notice the huge performance degradation.

What is the problem?

There are some good motives for keeping the home directory mounted to a network folder rather than on the local hard drive. For example, all user settings and user documents can be backed up centrally, and the user could potentially log in to any computer and have the same user environment. However, there are also some drawbacks. Depending on how the home folder is configured, there will either be a remote network call for each file access, or the file changes will be executed as a batch job at scheduled intervals or specific events such as logging off the computer.

The second part of the problem is that IntelliJ IDEA produces quite a lot of data, typically several hundred megabytes, besides the anticipated artifacts. The data consists of IDE plugins, configuration files, log files, but the vast majority is internal cache files. By default, the data is written to a hidden .IntelliJIdea10/ folder in your home directory.

If you combine these two factors, the performance will suffer. How much depends on the bandwidth of your network, something that I became painfully aware of when I logged in remotely to the customer’s network via a slow VPN connection.


Avoid network overhead by configuring IntelliJ IDEA to cache data on your local computer instead of in your home folder. A recent customer used Windows XP as their working environment, the instructions below are based on that experience.

  1. Create a new directory on a local harddrive that IntelliJ IDEA can use, e.g. C:/.IntelliJIdea10/. Hint, you cannot create a library starting with a “.” from Windows Explorer, you have to use the mkdir command from the terminal.
  2. Locate the file in the bin directory in IntelliJ IDEA’s installation directory. The default location is C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 10.5.1/bin.
  3. Change the relevant properties to point to the recently created directory:

    # path to IDEA config folder. Make sure you're using forward slashes
    # path to IDEA system folder. Make sure you're using forward slashes
    # path to user installed plugins folder. Make sure you're using forward slashes


Consider not to change the idea.config.path property if you are using several different computers and you would like to have the same configuration on all machines. Additionally, if you are using IntelliJ IDEA Ultimate, i.e. the commercial version of the tool, you should also make a cautious decision about whether or not to keep this property unchanged, because the license file is stored in the denoted directory. On the other hand, if you always use the same computer you might as well change this property together with the other properties, so that all IntelliJ IDEA files are stored in the same location.


Mattias Severson

Mattias is a senior software engineer specialized in backend architecture and development with experience of cloud based applications and scalable solutions. He is a clean code proponent who appreciates Agile methodologies and pragmatic Test Driven Development. Mattias has experience from many different environments, including everything between big international projects that last for years and solo, single day jobs. He is open-minded and curious about new technologies. Mattias believes in continuous improvement on a personal level as well as in the projects that he is working on. Additionally, Mattias is a frequent speaker at user groups, companies and conferences.

Leave a Reply