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 7962131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:14:53+00:00 2026-06-04T05:14:53+00:00

What is the memory overhead of an Object in .NET? I’m talking about an

  • 0

What is the memory overhead of an Object in .NET? I’m talking about an arbitrary bare-bones object…. the overhead of the internal .NET workings or references:

var obj = new System.Object();

How much space does obj occupy in the heap?

  • 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-04T05:14:55+00:00Added an answer on June 4, 2026 at 5:14 am

    I talk about this in a blog post “Of memory and strings”. It’s implementation-specific, but for the Microsoft .NET CLR v4, the x86 CLR has a per-object overhead of 8 bytes, and the x64 CLR has a per-object overhead of 16 bytes.

    However, there are minimum sizes of 12 and 24 bytes respectively – it’s just that you get the first 4 or 8 bytes “free” when you start storing useful information 🙂

    (See the blog post for more information.)

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

Sidebar

Related Questions

I would like to ask about Memory Overhead in java, I have a large
I posted recently a question about the memory overhead due to virtuality in C++.
C#: Which uses more memory overhead? A string or a char holding a sequence
Possible Duplicate: Memory overhead of Java HashMap compared to ArrayList I try to search
Does somebody know what is the memory overhead of a ConcurrentHashMap (compared to a
In C++, what's the overhead (memory/cpu) associated with inheriting a base class that has
Is there any overhead using partial classes in case of memory, performance etc? If
I recently looked into some .NET memory leaks (i.e. unexpected, lingering GC rooted objects)
I'd like to count/sum up the overhead in an object file due to packing
I am wondering what is the memory overhead of java HashMap compared to ArrayList?

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.