The first time I used IDEA software, I was stuck in doubt about my life, and I consulted countless information. I made this summary, hoping to help those who need it.
1. First of all, after installing the IDEA software, the automatically generated desktop startup mode is 32-bit. If you have a 64-bit system, we use this shortcut to run large projects, and generally it will be very stuck.
Solution: Find the installation directory of idea, then enter the bin folder, find the application named idea64, and right-click it to generate a desktop shortcut. You can use this shortcut every time you start it.
2. IDEA has a default startup configuration. A software should consider low-configuration users, so the initialization parameters are not high (the default minimum is 128m, and the maximum is 512m), resulting in slow startup and unsmooth operation.
Solution: Find the idea.exe.vmoptions file under the bin folder in the idea installation directory!
idea.exe.vmoptions: the default 32-bit machine running
idea64.exe.vmoptions: the default 64-bit machine runningmanual modification
Description of the three key parameters
1. -Xms is the minimum startup memory parameter
2. -Xmx is the maximum running memory parameter
3. -XX:ReservedCodeCacheSize is the memory capacity parameter reserved for the codemanual modification
-Xms=1024m
-Xmx=2048m
-XX:ReservedCodeCacheSize =300m
3. Software installation will bundle many plug-ins by default
Solution: Open the software-settings-plugins
Plug-ins unrelated to Java development are prohibited, such as: google app, front-end js framework and other plug-ins can uninstall some frameworks that are not used in the project at all, Struts, Hibernate, Ant, etc. can be uninstalled.
The above are the main situations where I solve the problem of idea lag. In addition, it is recommended that the computer memory for installing the idea software should preferably be 8G or 16G and above.