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

Notification

Icon
Error

Performance is not ok
WesleyCanneyt
#1 Posted : Wednesday, February 9, 2022 10:24:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/9/2022(UTC)
Posts: 6
Location: Belgium

Was thanked: 1 time(s) in 1 post(s)
Hello

When using NCrunch in visual studio 2019. (Same issue in 2022)
We have really big performance issues.

We are using a solution with 70 projects in it (two developers).
We have around 2000 tests.

We can type much faster than visual studio is somethings showing.
NCrunch milliseconds delay
Task manager

Our projects are in WPF .Net Core (latest version)

Our Engine mode is always "Run impacted tests automatically, others manually"

Configuration

We see that our memory is very high.
Is 16gb ram not enough?
Is there something else we are missing?
Remco
#2 Posted : Wednesday, February 9, 2022 12:09:14 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi, thanks for posting.

Looking at the details you've posted, my bet here would be that the issue is memory related. When the system runs out of available memory, the IDE will start to perform very poorly. In this case, it's probably giving NCrunch the blame for the typing lag because it's the only thing in the stack other than VS itself.

Which processes are contributing to high memory consumption? Do you have any particularly hungry tests?
WesleyCanneyt
#3 Posted : Wednesday, February 9, 2022 12:21:39 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/9/2022(UTC)
Posts: 6
Location: Belgium

Was thanked: 1 time(s) in 1 post(s)
Hi

If we shut down visual studio then we have around 8 gb ram used.
Only visual studio we have 10-12 gb ram used.

We think indeed that it's a memory issue. But then we need to upgrade our memory in our pc.
We are surprise to see that 16gb ram would not be enough.

There are some hungry tests (from older projects) but they should not run when we are in "Run impacted tests automatically, others manually" engine mode.
tasks
Remco
#4 Posted : Wednesday, February 9, 2022 10:52:46 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
WesleyCanneyt;15984 wrote:

If we shut down visual studio then we have around 8 gb ram used.
Only visual studio we have 10-12 gb ram used.


With the info you've shared, I think that having only 8GB available for VS, NCrunch, and all your tests is probably not sufficient for the size of your solution.

5 years ago 16GB was easily enough, but these days even a single open website can eat 300MB.

The platform is eating more RAM too. I've noticed that the build system under VS2022 consumes around 4x as much memory as it did under VS2019. Now that VS2022 is also running under x64, the process will consume more memory, and we can expect this to grow rapidly now that MS are not restricted by the 3GB LAA x86 limit.

With a lot of careful configuration and a great deal of pain, you might be able to reduce your memory consumption to the point where you can work without lag again, but you'll be fighting a losing battle. In the long term, buying more RAM is your only real option here.

WesleyCanneyt;15984 wrote:

There are some hungry tests (from older projects) but they should not run when we are in "Run impacted tests automatically, others manually" engine mode.


We do have a setting that might help with this (test process memory limit).
WesleyCanneyt
#5 Posted : Thursday, February 10, 2022 7:28:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/9/2022(UTC)
Posts: 6
Location: Belgium

Was thanked: 1 time(s) in 1 post(s)
Thank you for your fast reply.
We will upgrade our computers to have more ram.
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.039 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download