473,395 Members | 2,010 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,395 software developers and data experts.

Ratio of PrivateBytes to # Bytes in all heaps

Is there a rule-of-thumb for a healthy ratio between these two
counters? I think I have some memory leak problems on the run in my
ASP.NET application but the difference between these counters bothers
me. I'm seeing anywhere from 2 to 3:1 ratio. Right now, for example,
private bytes is 95M and total heap is 45MB. Total heap changes more
frequently than private bytes (finally going _down_ too!) but the trend
is for them to stick together.

Also, I assume the difference between these two counters is unmanaged
memory. Is that released when aspnet_wp.exe recycles? I had some
weirdness this morning where an Antivirus run caused it to restart and
the managed counters reset but private bytes didn't go all the way to
0. I don't know if it was a counter anomoly or not.

Anyway, thanks in advance for the tips!

-Brian

Dec 6 '05 #1
1 1751
the private bytes are released when the asp.net worker process exits. this
happens on an asp.net recycle, but not on an appdomain recycle (what a file
changes triggers). there is no rule of thumb for ratio of private bytes vs
managed heap, it all depends on the application.

your best bet is to run application under load, then pause, run gc serveral
times, and check private bytes. then repeat. if the private bytes is
consistant, then you probably don't have a leak.

you need to monitor your application when its healthy, so you can tell when
its not.

-- bruce (sqlwork.com)


"Brian" <bs*******@insigniagroup.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Is there a rule-of-thumb for a healthy ratio between these two
counters? I think I have some memory leak problems on the run in my
ASP.NET application but the difference between these counters bothers
me. I'm seeing anywhere from 2 to 3:1 ratio. Right now, for example,
private bytes is 95M and total heap is 45MB. Total heap changes more
frequently than private bytes (finally going _down_ too!) but the trend
is for them to stick together.

Also, I assume the difference between these two counters is unmanaged
memory. Is that released when aspnet_wp.exe recycles? I had some
weirdness this morning where an Antivirus run caused it to restart and
the managed counters reset but private bytes didn't go all the way to
0. I don't know if it was a counter anomoly or not.

Anyway, thanks in advance for the tips!

-Brian

Dec 6 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ronald | last post by:
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...
7
by: eric | last post by:
Hi there, BP hit ratio = 1 - (BP physical reads / BP logical reads). If all the BP physical reads are asynchronous, it should mean that the pages are brought up to the bufferpool before the...
1
by: Evan Smith | last post by:
My database is suffering from poor performance of late. Reports that used to run in a reasonable time, now take a while. The explain output show that the query is fully indexed, and the statistics...
4
by: xixi | last post by:
the formula for package cache hit ratio is 1 - (package cache inserts/package cache lookups), what the result would be a effective ratio? currently we have cache inserts=25, cache lookups=35, so...
2
by: Dmitri Shvetsov | last post by:
Hi All, Does somebody know what's the length's ratio in we convert byte to base64 string? Is it a constant ratio or it can be different from case to case? For example if I convert a byte array...
3
by: Jason Collins | last post by:
Win 2K3 Server; Framework 1.1 If I look at the asp.net process in perfmon, it reports 650,000,000 bytes for Memory:Private Bytes, yet .NET CLR Memory:# Bytes in all Heaps reports only 80,650,000...
0
by: shterke | last post by:
Good day, I've been monitoring a DB2 system and noticed a low package cache hit ratio, I calculated it based on the formula in the db2 information center: ...
2
by: dunleav1 | last post by:
I have a many row and many column table that is in a 16K page size. I have four indexes on the table. I am running row compression on the table. The table does not have a primary key. The table...
2
by: John Grandy | last post by:
Are Gen 0, Gen 1, Gen 2 heaps and Large Object Heaps physically contiguous ? Or are these abstract representations of groups of allocated segments in the general heap ? More specifically, are the...
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: 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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.