Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8247287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:47:44+00:00 2026-06-07T22:47:44+00:00

Confused by private bytes! Currently analysing the memory usage of our C# .NET application

  • 0

Confused by private bytes!

Currently analysing the memory usage of our C# .NET application with ANTS profiler. Here are our findings taken after start-up with the main form visible on screen. No other functionality has been used.

Gen 0 Heap – 5.8MB
Gen 1 Heap – 2.5MB
Gen 2 Heap – 13.9MB
Bytes in all Heaps – 17MB
Large Object Heap – 0.7MB
Private Bytes – 130MB
Working Set – 150MB

If the bytes in all heaps is only 17MB why do we have such a large private bytes allocation? Are private bytes allocated by the system or does private bytes start at zero expanded as it get’s filled by the software? i.e. is private bytes a bubble which may in fact only be partially used? If so, what determines it’s size?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:47:46+00:00Added an answer on June 7, 2026 at 10:47 pm

    Private bytes are all the virtual allocations of a process that cannot be shared with other processes (ie. excludes code and memory mapped files). This will include all NT (native) Heaps, any managed Heap, stacks and any memory explictly allocated by applicatio (VirtualAlocEx).

    You can use !dumpheap -stat to get a detailed usage of your CLR memory usage. See CLR Memory Leak

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am bit confused in the usage of Static class, Private constructor and abstract
Confused here... I have two dates which I NSLog to console and get: dates
Very confused here, trying out the yuicompressor on a simple javascript file. My js
Bit confused here, I have an on-demand instance but do I get charged even
Totally confused here. I have a PARENT UIViewController that needs to pass an NSMutableArray
I'm confused why this compiles: private delegate int MyDelegate(int p1, int p2); private void
I'm a bit confused, how can I create public and private members. My code
I am a bit confused with the requirements to synchronize the access the private
We're currently facing some issues during Unit Testing. Our class is multithreading some function
I am confused with scenario which I have encountered with cross thread access. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.