title: Firebase Firestore Emulator throwing java out of memory exception
body: <p>I'm having some serious issues understanding why the emulator won't import the exported firestore data I am feeding it. It keeps throwing a memory error. <strong>Any help/ideas?</strong></p>
  <p>These are the logs given by firestore-debug.log when trying to run command:
  firebase emulators:start --import=./production_data_export</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.OutOfMemoryError: Java heap space
      at java.nio.HeapByteBuffer.&lt;init&gt;(Unknown Source)
      at java.nio.ByteBuffer.allocate(Unknown Source)
      at com.google.cloud.datastore.emulator.impl.LevelDBLogReaderChannel.readRecord(LevelDBLogReaderChannel.java:84)
      at com.google.cloud.datastore.emulator.impl.LevelDBLogReaderChannel.readProtoMessage(LevelDBLogReaderChannel.java:63)
      at com.google.cloud.datastore.emulator.impl.ExportImportUtil.parseEntityProtoFile(ExportImportUtil.java:194)
      at com.google.cloud.datastore.emulator.impl.ExportImportUtil.fetchEntities(ExportImportUtil.java:66)
      at com.google.cloud.datastore.emulator.firestore.CloudFirestore.main(CloudFirestore.java:90)
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/OHRcz.png" rel="nofollow noreferrer">folder structure of production_data_export</a></p>
  <p>code for firebase-export-metadata.json</p>
  <pre><code>{
    &quot;version&quot;: &quot;10.2.0&quot;,
    &quot;firestore&quot;: {
      &quot;version&quot;: &quot;1.13.1&quot;,
      &quot;path&quot;: &quot;&quot;,
      &quot;metadata_file&quot;: &quot;mock-db.overall_export_metadata&quot;
    }
  }
  </code></pre>