Configure anti-virus software to improve IntelliJ IDEA’s indexing and build speed (Antivirus Impact on Build Speed)

原文:https://intellij-support.jetbrains.com/hc/en-us/articles/360006298560

Translation:

      Some antivirus software may interfere with the IDE's build process, causing the build to run much slower. When you run a build in the IDE, many class files are created on your computer. If your antivirus software has real-time scanning enabled, the antivirus software can force the build process to stop every time a file is created while the antivirus software scans the file.

If you are using Windows Defender, the IDE automatically checks whether you have real-time scanning enabled and whether the scan is configured to handle directories where the IDE writes a large number of files.

The IDE offers a possibility to exclude those directories from automatic scanning (this feature is available in 2019.2+ IDE versions).

If you wish to perform the necessary configuration manually, you can follow these steps:

  • Click the start button
  • Enter "Windows Security"
  • Click on "Virus & threat protection"
  • Click "Manage settings" under "Virus & threat protection settings"
  • If necessary, scroll down and click Add or Remove Exclusions
  • For each folder shown in the notification, press the + button, choose "Folder" from the menu, and then select the folder.

If you are using another antivirus product, you may still be affected by this issue, but there is no way to automatically detect or correct it. If your build is performing poorly, follow your antivirus product's instructions to exclude the following directories from real-time scanning:

  • your project directory
  • Directory used by IntelliJ IDEA to storesettings and cache
  • Gradle cache directory (%USERPROFILE%\.gradle)

We also recommendexclude the IDE process from the antivirus program,to improve startup performance.

Warning:To ensure that your computer is protected from malware, do not completely disable real-time scanning or antivirus software.

Note: The IDE runs the powershell.exe process to detect whether Windows Defender is active and Exclude folders from antivirus. This may trigger detection of suspicious activity through some other antivirus tools, such as Trend Micro. This behavior is by design and the corresponding source code can be found on GitHub . It is safe to allow PowerShell to be run from the IDE.

Guess you like

Origin blog.csdn.net/qinchaozengh/article/details/104632694