Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Antimalware Service Executable hogs CPU when running tests
Fresa
#1 Posted : Friday, May 16, 2025 2:11:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/7/2018(UTC)
Posts: 3
Location: Sweden

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
I don't seem to be able to pin-point why, but everytime I run tests with NCrunch, Antimalware Service Executable starts hogging CPU (up 30-40%). It's the same behavior in both VS and Rider. I'm not sure if it can be compared with other test runners, considering how much parallelism NCrunch can utilize, which I guess means more work for Microsoft Antivirus. I've tried to exclude every directory I can think of that NCrunch might use, but nothing helps, beside turning off real-time protection completely.

I've excluded:
- the directory of the source code
- NCrunch workspace directory
- JetBrains Rider installation directory
- Visual Studio installation directory
- NCrunch local app data directory
- the .nuget cache directory
- the dotnet directory (under Program Files)
- Rider's local appdata directory

Non makes any difference...

What am I missing?

Was just about to post, when I figured it out! It was the RDI storage directory! Excluding it lowered Antimalware CPU usage when running tests to a few percent.

I'll post this in case it might help someone else. All good!
1 user thanked Fresa for this useful post.
Remco on 5/16/2025(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.019 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download