title: What is the memory overhead of an object in Java?
body: <h3>Duplicate:</h3>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/258120/what-is-the-memory-consumption-of-an-object-in-java">What is the memory consumption of an object in Java?</a></p>
  </blockquote>
  <p>Assuming Java 1.6 JVM on 64-bit Linux on an Intel or AMD box, creating a simple object uses how much memory overhead in bytes? For example, each row in a 2-dimensional array is a separate object. If my array is large, how much RAM will I be using?</p>