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

Notification

Icon
Error

EngineHost question about releasing memory?
ewinhong
#1 Posted : Thursday, July 27, 2017 2:53:46 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/5/2016(UTC)
Posts: 14
Location: United States of America

I am curious about ncrunch's enginehost. There are about 2700 tests in my project.

After all my tests finished and completed, I was watching task manager where the memory usage was 1,365 mbs.

I would hope that this memory would eventually be released since the task was done.

Remco
#2 Posted : Thursday, July 27, 2017 10:47:20 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)
NCrunch's enginehost contains almost all memory allocated by the engine. This is to try and keep as much of NCrunch away from devenv.exe as possible.

As such, the enginehost contains an extensive code model of your entire solution and of its tests. The largest area of memory consumption is usually the code coverage index, where all your code coverage data is stored.

Setting the engine host to run in an x86 process (through the 'Engine hosting strategy' configuration setting) will quite significantly reduce the memory footprint of the enginehost, as the coverage index is mostly made up of a large number of very small objects and x86 processes consume less memory for pointer based types.

Unfortunately reducing the amount of memory consumed by the code coverage index isn't feasible without massive performance degradation. Higher memory consumption in this situation seemed to be the lesser of two evils.
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.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download