473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 14504
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
0
by: Bill Burwell | last post by:
Which memory properties, or what combinations of memory properties, provide useful information about a program's memory usage when that program has just started leaking memory? While I have...
15
by: Chetan Raj | last post by:
Hi All, We have a web-application in asp.net that interacts with legacy code written in COM. The memory usage in aspnet_wp.exe increases every sec and never reduces. Using the .NET performance...
0
by: greg | last post by:
Hi, I am hosting hundreds of websites on a webserver using a combination of sql and asp. SQL is on a different server. The web server is running win 2003 iis 6 with a single processor and 1 GB...
4
by: mast2as | last post by:
Hi guys I wrote a short program to test a Tree class... I plan to use it a lot in my application so thought I would do a memory leak check before I start using it. The code seems good to me in a...
2
by: roger.dunham | last post by:
I am trying to identify whether a .NET 1.1 application that I have written has a memory leak. I thought I understood how .NET memory management worked, but it appears that there is more to it...
5
by: kumarmdb2 | last post by:
Hi guys, For last few days we are getting out of private memory error. We have a development environment. We tried to figure out the problem but we believe that it might be related to the OS...
1
by: George2 | last post by:
Hello everyone, Reading from book Windows Internals, we should use private bytes to monitor memory leak. 1. I think the reason why not using virtual bytes, is because there may be some...
22
by: Peter | last post by:
I am using VS2008. I have a Windows Service application which creates Crystal Reports. This is a multi theaded application which can run several reports at one time. My problem - there is a...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.