Re: Memory Leak
- From: "Peter" <czupet@xxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2008 14:07:41 -0500
I get "over 1G" on both "Mem Usage" and "VM Size", the VM Size is slightly
lower but it's consistant with "Mem Usage" so in this case "at least it
looks like Mem Usage is just as reliable"
I have also downlaoded the Process Exlprer and "Private Bytes" keep going up
and up, it does go down slightly at times but not as much as it goes up.
""Jeffrey Tan[MSFT]"" <jetan@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:qLhErFd0IHA.1788@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi Peter ,
Regarding .Net memory leak issue, an important step is determing if it is
a
managed leak or unmanaged memory leak.
Can you tell me what memory counter do you get "over 1G memory" result?
Windows has a lot of memory counters which may cause fake memory leak
conclusions. Basically, we should monitor "Process/Private Bytes"(or "VM
Size" column in task manager.) counter to determine memory leak. Note: we
should not use the "Mem Usage" column in task manager which is misleading.
I highly recommend you to download Process Explorer tool from the link
below since it is more powerful tool than task manager:
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
Once the "Private Bytes" is keeping increasing without decrease, it means
that the application is leaking memory. Now, you can monitor the ".Net CLR
Memory/# Bytes in all Heaps" counter. If the "Private Bytes" increases
while the ".Net CLR Memory" is stable, it indicates an unmanaged memory
leak. Otherwise, it basically means a managed memory leak. The article
below talks more information:
"I have a memory leak!!! What do i do? (defining the "where")"
http://blogs.msdn.com/tess/archive/2005/11/25/i-have-a-memory-leak-what-do-i
-do-defining-the-where.aspx
I will wait for your further feedback to determine if it is a managed or
unmanaged leak since they need totally different approach for
troubleshooting. Thanks.
Best regards,
Jeffrey Tan
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:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day 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 or complex
project analysis and dump analysis issues. 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/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
.
- Follow-Ups:
- Re: Memory Leak
- From: "Jeffrey Tan[MSFT]"
- Re: Memory Leak
- References:
- Memory Leak
- From: Peter
- RE: Memory Leak
- From: "Jeffrey Tan[MSFT]"
- Memory Leak
- Prev by Date: Force DataTimePicker to open calendar by F12
- Next by Date: Re: Augmenting 3D graphics with 2D labels
- Previous by thread: RE: Memory Leak
- Next by thread: Re: Memory Leak
- Index(es):
Relevant Pages
|