IDEA runs slowly and is stuck

IDEA The cause of carton

When using IDEA, always click the card, really is a kind of torture to people! In fact, this situation is mainly due to the default startup configuration of IDEA. A software needs to consider users with low configuration, so the initial parameters are not high (default minimum 128M, maximum 512M), resulting in slow startup and poor operation. So we need to optimize the startup and run configuration.

Optimizing the IDEA Configuration

Since the initial parameters of IDEA are low, but computers at work generally have 8G or 16G of running memory, we need to manually modify the default IDEA configuration. Make our experience more fluid! Idea.exe. vmoptions in the bin folder of the idea installation directory.

Modify IDEA configuration steps manually

  1. Find the IDEA installation directory, go to the bin folder, find the idea.exe. vmOptions file!

2. Open the idea.exe. vmOptions file3. Description of the three key parameters

-xx :ReservedCodeCacheSize Specifies the size of memory reserved for code. **Copy the code
  1. Manually modify
  • -Xms=512m
  • -Xmx=1024m
  • -XX:ReservedCodeCacheSize =300m

Increase one times in original foundation basically! The diagram below:

(If your computer is 8GB or larger, or better) consider the following Settings:

  • -Xms=1024m
  • -Xmx=2048m
  • -XX:ReservedCodeCacheSize =500m
  1. After saving, re-open IDEA, you will find that the running speed is significantly improved, a lot of fluency!

We should change the appropriate parameters according to the specific situation, not necessarily exactly according to my parameters! , but as long as you increase the parameters, the performance will be better!