Visual Studio 2008 hogging memory

S

Steve

Hi All

I am using VS 2008 Professional (VB) and find several times a day I get an
'Out of memory' error when working in the design environment

I have to close VS then restart

When I check the processes (ctrl-alt-delete) it shows devenv.exe mem usage
as high as 800MB

Has anybody else experienced this?

Regards
Steve
 
M

Michael Williams

I am using VS 2008 Professional (VB) and find several
times a day I get an 'Out of memory' error when working
in the design environment

That's progress for you ;-)
 
M

Michael Williams

I am using VS 2008 Professional (VB) and find several
times a day I get an 'Out of memory' error when working
in the design environment

That's progress for you ;-)
 
N

Nobody

Steve said:
Hi All

I am using VS 2008 Professional (VB) and find several times a day I get an
'Out of memory' error when working in the design environment

I have to close VS then restart

When I check the processes (ctrl-alt-delete) it shows devenv.exe mem usage
as high as 800MB

Has anybody else experienced this?

What OS and IE browser version are you using?
 
N

Nobody

Steve said:
Hi All

I am using VS 2008 Professional (VB) and find several times a day I get an
'Out of memory' error when working in the design environment

I have to close VS then restart

When I check the processes (ctrl-alt-delete) it shows devenv.exe mem usage
as high as 800MB

Has anybody else experienced this?

What OS and IE browser version are you using?
 
A

Andrew Morton

Steve said:
I am using VS 2008 Professional (VB) and find several times a day I
get an 'Out of memory' error when working in the design environment

I have to close VS then restart

When I check the processes (ctrl-alt-delete) it shows devenv.exe mem
usage as high as 800MB

Do you have any add-ins that could be leaking memory?

Have you installed VS2008 SP1?

Is there any chance you could add more RAM? (And what it shows for memory in
task manager is not the whole story anyway.)

Andrew
 
A

Andrew Morton

Steve said:
I am using VS 2008 Professional (VB) and find several times a day I
get an 'Out of memory' error when working in the design environment

I have to close VS then restart

When I check the processes (ctrl-alt-delete) it shows devenv.exe mem
usage as high as 800MB

Do you have any add-ins that could be leaking memory?

Have you installed VS2008 SP1?

Is there any chance you could add more RAM? (And what it shows for memory in
task manager is not the whole story anyway.)

Andrew
 
C

Cor Ligthert[MVP]

Steve

I never had that on any machine or OS (I had stack overflows, but Herfried
knows why) can you give us a little bit the specs of the computer and OS you
are using including SP's.

Taskmanager says nothing, Internet is full of messages which shows that
Taskmanager is something typical for the end-user to get an idea.

Cor
 
C

Cor Ligthert[MVP]

Steve

I never had that on any machine or OS (I had stack overflows, but Herfried
knows why) can you give us a little bit the specs of the computer and OS you
are using including SP's.

Taskmanager says nothing, Internet is full of messages which shows that
Taskmanager is something typical for the end-user to get an idea.

Cor
 
S

Steve

Hi All

Some more info

I am using Windows XP Professional SP2, Visual Studio 2008 SP1 on a Core2
Duo 2.4G computer with 4GB Ram

I have no add-ins installed

When I do a Google search there are numerous sites with comments about the
same problem

It is worse when I am doing work on any xml page (e.g Project datasources)

Regards
Steve
 
S

Steve

Hi All

Some more info

I am using Windows XP Professional SP2, Visual Studio 2008 SP1 on a Core2
Duo 2.4G computer with 4GB Ram

I have no add-ins installed

When I do a Google search there are numerous sites with comments about the
same problem

It is worse when I am doing work on any xml page (e.g Project datasources)

Regards
Steve
 
N

nak

Hi Steve,

It doesn't happen when you have the XML viewer open does it? That thing
is awful for viewing large amounts of XML data and will crash Visual Studio
quite easy, unless you have the patience to wait a year for it start
responding again.

Nick.
 
N

nak

Hi Steve,

It doesn't happen when you have the XML viewer open does it? That thing
is awful for viewing large amounts of XML data and will crash Visual Studio
quite easy, unless you have the patience to wait a year for it start
responding again.

Nick.
 
J

Jie Wang [MSFT]

Hi Steve,

It sounds unusual to run out of memory if you have 4GB of RAM.

So what type of the solution / projects are you working on?

What's the size of the XML document you were editing?

Is there a specific operation that will trigger the Out of Memory error or
it just happens randomly?

Please let me know and I'll see how can I help.

Thanks,

Jie Wang ([email protected], remove 'online.')

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jie Wang [MSFT]

Hi Steve,

It sounds unusual to run out of memory if you have 4GB of RAM.

So what type of the solution / projects are you working on?

What's the size of the XML document you were editing?

Is there a specific operation that will trigger the Out of Memory error or
it just happens randomly?

Please let me know and I'll see how can I help.

Thanks,

Jie Wang ([email protected], remove 'online.')

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steve

Hi Jie

I am working on a Windows forms application in VB 2008 on Net Framework 2.0

The out of memory issue happens when I am moving through different forms in
design mode
i.e I double click on the form in the Solution Explorer to open it

I try to keep the number of open forms to a minimum but that makes no
difference

My Dataset.designer.vb file is about 4MB

This memory issue happens when I don't even have the XML file open

I do use some DevExpress windows forms components in my application, but the
memory issue was occurring before I started using the Devexpress components

regards
Steve
 
J

Jie Wang [MSFT]

Hi Steve,

Besides the dataset, how may projects are there in your solution file, and
how many items are there in each project? For the most complex winform in
your project, how many controls are there?

I'm trying to understand the scale of your solution and see if I can manage
to reproduce the problem.

If the problem is really urgent, you can also contact Microsoft Customer
Support Services for real-time or phone-based help.

Regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Mike

Steve,

What is your Memory Load Percentage?

Here's a console utility to print it out:

' File: MemLoad.vb
imports System.Runtime.InteropServices

Module module_memoryload

structure MEMORYSTATUSEX
public Length as Integer
public MemoryLoad as Integer
public TotalPhys as LONG
public AvailPhys as LONG
public TotalPageFile as LONG
public AvailPageFile as LONG
public TotalVirtual as LONG
public AvailVirtual as LONG
public AvailExtendedVirtual as LONG
End Structure

Declare Function GlobalMemoryStatusEx lib "kernel32" _
(ByRef ms As MEMORYSTATUSEX) As Boolean

sub main(ByVal args() As String)
dim ms as new MemoryStatusEx
ms.Length = Marshal.Sizeof(ms)
if GlobalMemoryStatusEx(ms) then
Console.WriteLine("- Memory Load: {0}%", ms.MemoryLoad)
end if
end sub

end Module

I often tell my customers to look at their memory loads (and show them
via our server's tray status box) to provide a top level approximation
of the stress of their system. The lower the better. If its high, and
especially persistently high, you really means that you need more
memory, including possibly a better video card, better tuned page
files, caches, etc, all that make up the total physical memory of the
system. GUI is a big part of this.

Whats high? Well, for me, anything over 40%. It make work for you, but
the machine and OS is stressing (machine is grinding with faults and
page swapping) to work.

What I am saying, look at the memory load and its high, it really
means you need to look at the performance of the hardware, more memory
might do it, but it might also mean a better video interface card,
including possible faster drives.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top