The IDEA of caton

Recently for a period of time often feel when development IDEA is very card, scroll up and down in the one class or switch class files can obviously feel, I think is my project opening too much, after all memory optimization has been done, but it is by this card today a little tired, I’m nima, development machine 16 G of memory, Open two Spring-boot project cards like this??

  

Finally, I was forced to check the startup configuration file of IDEA. When I saw the content, I was petrified. The configuration file was the default and had not been changed. It really serves you right. Only a few hundred megabytes of maximum memory were allocated. On second thought, I reinstalled a new version of IDEA before, but didn’t change the configuration file. It really serves me right.

This problem is actually the same as MyEclipse and Eclipse lag. Firstly, the memory Settings are not large enough. Secondly, some optional plug-ins are installed on the software or some real-time monitoring such as code check is enabled. The other two reasons are that you don’t need to change them, because development machines today have a lot more memory.

Modify the VMOptions file

Windows environment

Go to the bin directory of the installation directory of IDEA and find the following two files:

idea.exe.vmoptions

idea64.exe.vmoptions

Depending on how many bits of system you have, you should be able to edit the configuration file, as shown below:

  


It is ok to change 128M and 512M to what you want. I changed it to 1024M and 2048m respectively. If you return the card and adjust it further, I think it will not be stuck any more.

Mac environment

On a Mac, it is similar to Windows. First, open the Finder to find applications, then go to IDEA, right-click “Show package contents”, and then go to the bin directory, as you did on Windows. Then find the VMOptions configuration file:

  


Then open this file for editing (I use the Sumbline2 editor), and adjust the memory. However, IDEA under the Mac system is not very stuck at ordinary times, so it doesn’t make much difference if you change it or not.