title: MongoDB not enough storage, 32 bit
body: <p>I'm getting the "not enough storage" error when trying to insert data into my MongoDB. But I'm nowhere near the size limit, as seen in the stats.</p>
  
  <pre><code>&gt; db.stats()
  {
          "db" : "{my db name}",
          "collections" : 20,
          "objects" : 281092,
          "avgObjSize" : 806.4220539894412,
          "dataSize" : 226678788,
          "storageSize" : 470056960,
          "numExtents" : 95,
          "indexes" : 18,
          "indexSize" : 13891024,
          "fileSize" : 1056702464,
          "nsSizeMB" : 16,
          "ok" : 1
  }
  </code></pre>
  
  <p>Journaling is on, but the journal file size is only 262232 KB.</p>
  
  <p>The data file at size 524032 KB has been created, although dataSize is below the smaller file of 262144 KB.</p>
  
  <p>The NS file is 16384 KB.</p>
  
  <p>I've read several places that this error is caused by the size limit on a 32 bit of around 2 GB, but then why am I getting this error when my dataSize is below that?</p>