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

Notification

Icon
Error

Workspace on server eating disk
dpc640
#1 Posted : Wednesday, August 27, 2014 11:01:49 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/15/2014(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
The workspace folder on my remote server just keeps getting bigger and bigger, using up all available space very quickly. I can't see anywhere in configuration to limit the space available for worskspace, just snapshots. Am I missing something?

I have installed version 2.8 hoping it would clear up the problem, but no luck.

What do you need from me to help diagnose this?

Thanks,

Patrick
Remco
#2 Posted : Wednesday, August 27, 2014 11:24:54 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Patrick,

Thanks for posting!

The workspaces are handled very differently on servers to the snapshots (which can be size limited). This is because NCrunch tends to create and remove workspaces transiently as required, while the snapshots are considered to be long term storage. Workspaces on the server are handled in the same way as they are in the NCrunch VS client.

It's worth being aware that there is a limit to the number of workspaces NCrunch will create - it doesn't just keep going up and up, although disk consumption may vary greatly depending on your solution. Unless you are actively running out of disk space on the server, you may not need to take action here.

The only way to influence the number of workspaces is indirectly through configuration settings, particularly the 'Max number of processing threads' and 'Process pool size' settings. Setting these options to lower values will reduce the number of workspaces NCrunch requires at any one time.

Unfortunately there is no feasible way for NCrunch to limit the number of workspaces it creates. The problem behind this could in many ways be compared to a process trying to limit its overall memory consumption. NCrunch would not be able to avoid creating new workspaces without greatly inhibiting its own operations at a level that would make the distributed processing fairly useless. If you're having problems with disk space running out on the server, there are several options for resolving this:

1. Adjust the 'Max number of processing threads' and 'Process pool size' to lower values so that NCrunch needs less workspaces

2. Look at ways of reducing the disk consumption of each workspace. Check for large files that are being included in the project file or 'Additional files to include' setting that aren't actually needed by NCrunch. Files that are included using 'Additional files to include' at solution level are shared between ALL projects in the solution and can greatly increase disk consumption, so make sure you have nothing included here unless it's absolutely needed.

3. If the node is part of a more extensive grid shared between several people, consider splitting the grid so that each node is shared between less people

4. Increase available disk space on the grid node (I know this is probably what you are trying to avoid, but sometimes if you're running in a VM, it's just the easiest option)
dpc640
#3 Posted : Thursday, August 28, 2014 2:06:41 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/15/2014(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thanks for the quick reply! I didn't even bother looking until this morning, assuming I would have to wait.

I made the setting change (two threads to one), and I will see what happens. I will probably have to put in a request for more disk on the VM.

Patrick
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.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download