Cyber Security Community Question

How do I prevent my Antivirus software from slowing down my developer workstation?

Posted on 2025-01-10 • In Cyber Security • By Megan Foster

Every time I run a build or a large NPM install, my antivirus CPU usage spikes to 100%, making my machine unusable. I can't just turn it off due to company policy. What are the recommended folder exclusions and settings to balance high-level security with the performance needs of a software developer?

3 Answers 15,450 Views

All answers to this question 3 Answers

Deborah Lewis Answered on 2025-02-05
Answered

This is a classic conflict. Real-time scanning looks at every small file write, and node_modules has thousands of them. You should exclude your project directories and the local package manager cache from "Real-Time Scanning," but keep "Scheduled Scanning" active for those folders. Also, exclude the process names for your IDE and Build Tools (like node.exe or java.exe). This way, the AV isn't intercepting every internal process call. Most modern enterprise AVs have a "Developer Mode" or a way to lower the priority of the scanning engine so it doesn't starve the compiler of CPU cycles during a heavy build.

Michael Scott Answered on 2025-02-20
Answered

Have you checked if your AV is also performing "Script Scanning" or "AMSI" inspection, which can significantly lag down shell environments like PowerShell or Bash?

Steven Clark Commented on 2025-03-05
Commented

I checked, Michael, and AMSI was the main culprit! It was trying to inspect every script execution in my CI/CD pipeline. I worked with the IT team to create a specific policy for my machine that keeps script scanning on for downloads but ignores our internal build scripts. My compile times have dropped from five minutes back down to ninety seconds. It's a massive productivity win.

Christopher Brown Answered on 2025-03-15
Answered

Using a fast NVMe drive helps, but it won't fix a bad AV configuration. Exclusions are the only real way to regain your developer speed.

Megan Foster Commented on 2025-03-22
Commented

Exactly, Christopher. Even with a top-tier SSD, the bottleneck is the CPU overhead of the AV engine checking every single .js file during a build.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.