471,108 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

Memory leak? Private Bytes/Virtual Bytes

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
Jul 22 '05 #1
3 14373
What you are describing is memory fragmentation; it is commonly caused by
small memory leaks. What OS are you running?
"Ronald" <w@n.com> wrote in message
news:GJ*********************@amsnews05.chello.com. ..
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

Jul 22 '05 #2
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]" <pa******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
What you are describing is memory fragmentation; it is commonly caused by
small memory leaks. What OS are you running?
"Ronald" <w@n.com> wrote in message
news:GJ*********************@amsnews05.chello.com. ..
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


Jul 22 '05 #3
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" <w@n.com> wrote in message
news:lR******************@amsnews03-serv.chello.com...
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]" <pa******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
What you are describing is memory fragmentation; it is commonly caused by
small memory leaks. What OS are you running?
"Ronald" <w@n.com> wrote in message
news:GJ*********************@amsnews05.chello.com. ..
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



Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bill Burwell | last post: by
15 posts views Thread by Chetan Raj | last post: by
4 posts views Thread by mast2as | last post: by
1 post views Thread by George2 | last post: by
22 posts views Thread by Peter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.