Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Memory leak? Private Bytes/Virtual Bytes

Reply
Thread Tools

Memory leak? Private Bytes/Virtual Bytes

 
 
Ronald
Guest
Posts: n/a
 
      03-07-2005
Hi!

As I ran in to errors like "Ran out of memory" and "Out of memory" I
supposed my website might have memoryleaks. To trace a potential memory leak
I isolated the IIS process and monitored the 'Virtual Bytes' and 'Private
Bytes' for a while.

I noticed the private bytes stays 'low' all the time. Sometimes a bit up,
sometimes a bit down. Virtual bytes also follows the same pattern for most
times. But, sometimes it increases to almost 2gb en stays there.

I've been reading for memory leaks an aggressive caching and stuff and was
wondering when there is a memory leak. In short: what does it mean thet the
amount of virtual bytes stays high? Is this probably due to caching or....?

regards,

Ronald


 
Reply With Quote
 
 
 
 
Pat [MSFT]
Guest
Posts: n/a
 
      03-08-2005
What you are describing is memory fragmentation; it is commonly caused by
small memory leaks. What OS are you running?
"Ronald" <(E-Mail Removed)> wrote in message
news:GJWWd.306478$(E-Mail Removed). ..
> Hi!
>
> As I ran in to errors like "Ran out of memory" and "Out of memory" I
> supposed my website might have memoryleaks. To trace a potential memory
> leak I isolated the IIS process and monitored the 'Virtual Bytes' and
> 'Private Bytes' for a while.
>
> I noticed the private bytes stays 'low' all the time. Sometimes a bit up,
> sometimes a bit down. Virtual bytes also follows the same pattern for most
> times. But, sometimes it increases to almost 2gb en stays there.
>
> I've been reading for memory leaks an aggressive caching and stuff and was
> wondering when there is a memory leak. In short: what does it mean thet
> the amount of virtual bytes stays high? Is this probably due to caching
> or....?
>
> regards,
>
> Ronald
>



 
Reply With Quote
 
 
 
 
Ronald
Guest
Posts: n/a
 
      03-09-2005
Windows 2000 Advanced Server with latest updates.

I noticed the problem occurs at 'some' point at once. For days de virtual
bytes remains below 100mb and then suddenly it hits 2gb. So it seems this is
not caused by a 'small' memory leak.

What (except redim in loops) cause memoryfragmentation?

regards,

Ronald

"Pat [MSFT]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> What you are describing is memory fragmentation; it is commonly caused by
> small memory leaks. What OS are you running?
> "Ronald" <(E-Mail Removed)> wrote in message
> news:GJWWd.306478$(E-Mail Removed). ..
>> Hi!
>>
>> As I ran in to errors like "Ran out of memory" and "Out of memory" I
>> supposed my website might have memoryleaks. To trace a potential memory
>> leak I isolated the IIS process and monitored the 'Virtual Bytes' and
>> 'Private Bytes' for a while.
>>
>> I noticed the private bytes stays 'low' all the time. Sometimes a bit up,
>> sometimes a bit down. Virtual bytes also follows the same pattern for
>> most times. But, sometimes it increases to almost 2gb en stays there.
>>
>> I've been reading for memory leaks an aggressive caching and stuff and
>> was wondering when there is a memory leak. In short: what does it mean
>> thet the amount of virtual bytes stays high? Is this probably due to
>> caching or....?
>>
>> regards,
>>
>> Ronald
>>

>
>



 
Reply With Quote
 
Pat [MSFT]
Guest
Posts: n/a
 
      03-09-2005
From your description below, you probably have a loop that results in a
large amount of allocated memory (i.e. one heap gets extended to eat up the
rest of the VM), and then a different heap (IIS/DLLHost may have 30+ heaps)
needs to extend but can't so even though you aren't technically fragmented,
you are out of VM space so the extension fails.

Pat

"Ronald" <(E-Mail Removed)> wrote in message
news:lRyXd.82609$(E-Mail Removed)...
> Windows 2000 Advanced Server with latest updates.
>
> I noticed the problem occurs at 'some' point at once. For days de virtual
> bytes remains below 100mb and then suddenly it hits 2gb. So it seems this
> is not caused by a 'small' memory leak.
>
> What (except redim in loops) cause memoryfragmentation?
>
> regards,
>
> Ronald
>
> "Pat [MSFT]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> What you are describing is memory fragmentation; it is commonly caused by
>> small memory leaks. What OS are you running?
>> "Ronald" <(E-Mail Removed)> wrote in message
>> news:GJWWd.306478$(E-Mail Removed). ..
>>> Hi!
>>>
>>> As I ran in to errors like "Ran out of memory" and "Out of memory" I
>>> supposed my website might have memoryleaks. To trace a potential memory
>>> leak I isolated the IIS process and monitored the 'Virtual Bytes' and
>>> 'Private Bytes' for a while.
>>>
>>> I noticed the private bytes stays 'low' all the time. Sometimes a bit
>>> up, sometimes a bit down. Virtual bytes also follows the same pattern
>>> for most times. But, sometimes it increases to almost 2gb en stays
>>> there.
>>>
>>> I've been reading for memory leaks an aggressive caching and stuff and
>>> was wondering when there is a memory leak. In short: what does it mean
>>> thet the amount of virtual bytes stays high? Is this probably due to
>>> caching or....?
>>>
>>> regards,
>>>
>>> Ronald
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
working set, virtual bytes and private bytes George2 C++ 1 01-09-2008 02:57 PM
Private Bytes vs. # Bytes in all Heaps in Perfmon charvind ASP .Net 0 07-02-2007 08:07 PM
Native Memory leak? (Private bytes increases resulting in worker process recycling) chen ASP .Net Web Services 2 06-29-2007 12:21 PM
Unable to get the private bytes memory limit for the W3WP process. =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= ASP .Net 6 05-28-2007 05:33 AM
Private Bytes vs. # Bytes in all Heaps in Perfmon Jason Collins ASP .Net 3 02-18-2004 03:59 PM



Advertisments