.NET Framework - visual studio memory utilization?
Asked By BillE
17-Mar-10 03:37 PM
I am using Visual Studio 2008 version 9.0.30729.1 SP
I have a solution with about 25 c# and vb projects in it - these include web
projects, business classes, windows forms projects. These projects all
share business classes.
When I start Visual Studio, the memory usage for devenv.exe is about 20
megabytes in Task Manager.
When I load my solution, the memory usage increases rapidly to over 400
megabytes, and then gradually increases to well over 500 megabytes.
Of course performance is poor, and I assume that something is wrong, but I
do not know where to look.
Thanks
Bill
Visual Studio 2008
(1)
Check
(1)
OP
(1)
Lattix
(1)
Arne
(1)
Greg
(1)
Hierarchies
(1)
Megabytes
(1)
Gregory A. Beamer replied to BillE
Check the order of loading of references under solution properties and
ensure the shared libraries are at the bottom. Also try to avoid hierarchies
like this (although you can work that way, if you are willing to tweak the
libraries and compilation):
A
|\
| \
| \
B->C
if you have too many of the above situations (both parent and child calling
a child), you might end up having to compile the B and C classes and use the
references rather than have them compile as part of a solution.
As far as where to look, if you do not have a clue, try looking at one of the
projects that does dependency models, like Lattix or nDepend.
--
Peace and Grace,
Greg
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
************************************************
| Think outside the box! |
************************************************
Peter Duniho replied to BillE
I would look at your solution that has TWENTY-FIVE PROJECTS in it!
Given what you are handing it, 500MB sounds like a reasonable number.
That's only 20MB per project, and when you figure how much RAM is
required to support Intellisense, open files, etc. for each project that
does not sound too unreasonable. Visual Studio does have a tendency to
be a memory hog sometimes, and your usage pattern is making that show up
in a big way.
I'd recommend you refactor your projects so that they are not all clumped
together like that. No one can possibly work on 25 projects
simultaneously anyway. By breaking them up into multiple small
solutions, and keeping multiple instances of VS open but just for the
few solutions you are working on at a time, you should be able to
dramatically reduce total memory usage.
Pete
Mr. Arnold replied to BillE
If the performance is poor, then set the O/S Virtual Page size to
If the VP size is too small on a default setting on the install of the
O/S, then you are going to have performance issues with VS.
Mr. Arnold replied to Peter Duniho
You ever seen a ASP.Web solution with over 70 projects or more in it. 25
projects? 25 projects is nothing.
Arne_Vajhøj replied to Mr. Arnold
25 is not that much.
And most likely this developer is only working on a few of them, but
need the entire solution for reference, test and debugging.
Arne
Jeff Johnson replied to Arne_Vajhøj
Bingo. I far prefer project references to DLL references so I can debug
anything I might want to, so I always work with "large" solutions if
possible. I can totally see the OP's point of view.
And I should add, that is about the memory utilization I see, too, so BillE,
I would not worry too much about it. Just do not develop on a machine with
128MB of RAM!
BillE replied to Jeff Johnson
Thanks for the input.
Bill

net / download-833890 / retCA-files.zip.html = = = = = = = = = = = = = = = = = = = = = = Log file 1 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Verbose logging started: 5 / 6 / 2008 14:07:09 Calling process: c: \ WINDOWS \ Microsoft.NET \ Framework \ v3.0 \ Windows Communication Foundation Log file 1 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Log file 2 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = MSI (s) (B0:14) [14:18:22:094]: Executing op: RegAddValue(Name = IsMultiInstance, Value = #0, ) MSI (s) (B0:14) [14:18:22:094]: Executing op: RegAddValue(Name = CategoryOptions, Value = #3, ) MSI (s) (B0:14) [14:18:22:094]: Executing op: RegAddValue(Name = Close, Value = ClosePerformanceData, ) MSI (s) (B0:14) [14:18:22:094]: Executing op: RegAddValue(Name = Collect, Value = CollectPerformanceData, ) MSI (s) (B0:14) [14:18:22:094]: Executing op: RegAddValue(Name = Open, Value = OpenPerformanceData, ) MSI (s) (B0:14) [14:18:22:094]: Executing op: RegAddValue(Name = Library, Value = NETFXPerf.dll, ) MSI (s) (B0:14) [14:18:22:094]: Executing op: ActionStart(Name = DD_CA_InstallXwsRegExe_RB_X86.3643236F_FC70_11D3_A536_0090278A1BB8, , ) MSI (s) (B0:14) [14:18:22:094]: Executing op: CustomActionSchedule
it is: Thanks in advance for ANY help!! 3:51:43 PM Monday, May 26, 2008: - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 3:51:43 PM Monday, May 26, 2008: Info: Begin Setup session 3:51:43 PM Monday, May 26, 2008: Info: Setup Version: 2.0.133.0 3:52:24 PM Monday, May 26 2008: Info: Loaded manifest WebManifest. 3:52:24 PM Monday, May 26, 2008: Info: Loaded manifest XWebWWManifest. 3:52:24 PM Monday, May 26, 2008: Info: Loaded manifest SuiteCommonManifest. 3:52:24 PM Monday, May 26, 2008: Info: Loaded manifest OfficeMUIManifest. 3:52:24 PM Monday, May 26 2008: Info: Loaded manifest OfficeMUISetManifest. 3:52:24 PM Monday, May 26, 2008: Info: Loaded manifest
that is not what I need. I have tried re-installing Service Pack 1 for Visual Studio 2008. I am really hoping that I will not have to to a un-install of Visual Studio. I am running Windows XP Version 5.1.2600 Service Pack 3 Build 2600 Just in-case it is helpful, I am pasting the info from my Visual Studio about window below * ** ** **ABOUT INFO* ** ** * Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1
the Manifest Tool executable? error PRJ0002 : Error result -1073741819 returned from 'C: \ Program Files \ Microsoft Visual Studio 8 \ VC \ bin \ mt.exe'. The above error occurs when I attempt to build the I have found suggest that it is an error that relates to BETA versions of Visual Studio but I have never had any Betas installed. I do, however, have a full copy of Visual Studio 6 installed on my development machine as well as VS2005. Settings that apply to my as to how to rectify this problem with the Manifest Tool executable? Thanks, Robert Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0