Intellij idea performance Adjustment

Source: Internet
Author: User
Intellij idea performance Adjustment
Idea 6.0 has been released. Many people complain that the response speed is slow and the memory consumption is high. Idea 6.0 has added many new features, Program And the memory usage will definitely increase. In this article Article We would like to discuss this issue and use relevant settings to make your idea faster and more stable.
Intellij idea is a Java program, so performance adjustment is based on JVM and program. You may have different opinions on JVM adjustments. In this way, we will provide a recommended solution and give you a description. You can also make more personalized modifications on this basis. The following describes how to modify the content of the idea.exe. vmoptions file based on the "idea VM optionstions plug-in.

Open the settings panel, select "idea VM options", and enter the following parameters:

(Modify the idea installation directory/bin/Idea.exe. vmoptionsFile to achieve the same effect)

-Xms256m
-Xmx384m
-XX: maxpermsize = 128 m
-XX: newratio = 4
-Xss128k
-Dsun. AWT. keepworkingsetonminimize = true
-Server
The following is an explanation:-xms256m sets the initial memory size. You need to set a reasonable value to increase the startup speed of the Java program. If your memory is large enough, such as 2 GB, you can set it to 400 mb.
-Xmx384m sets the maximum memory size. Increasing this value can reduce the memory garage collection frequency and improve program performance.
-Dsun. AWT. keepworkingsetonminimize = true can minimize idea to the memory occupied by the taskbar. When you return to idea, it can be quickly displayed, rather than gradually displaying the entire interface from the gray interface, speed up the reply to the original interface.
-The server controls the memory garage mode so that you do not need to wait for one or two minutes for the collection of memory garage.

Next we will set the idea program. We recommend that you use the following settings:
 

CancelSelect "Synchronize file on frame activation" and "save files on frame deactivation". In idea, multiple threads are used to read and write files, but the thread writes and disk reads and writes are very time-consuming. Therefore, we recommend that you cancel these two options. Otherwise, when idea and other programs switch, you will find that disk operations are frequent. At the same time, we select"Save files automaticallyAnd set it to 30 seconds, so that idea can still automatically keep the file. The above settings may be inconvenient. For example, edit a JSP file and switch to the browser to refresh the file to obtain the latest information. However, when you switch to the browser, the idea will not be automatically saved, and all information is not up-to-date. Therefore, during each switchover, You need to press Ctrl + S to save the file. In this way, you need to know which files have been changed and give them an identifier. In idea, you need to make the following settings, so that the modified file will be identified by the "*" sign, and you can save the relevant files in time.
 

Conclusion: With the above settings, we believe it will improve the idea performance. Of course, this does not mean that the default configuration of idea is incorrect. Just like the database software, a standard configuration is provided. Some specific performance adjustments may be determined based on the actual situation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.