# Failed to open persistent datastore: MapViewOfFile

**URL:** https://discuss.elastic.co/t/failed-to-open-persistent-datastore-mapviewoffile/138537
**Category:** Beats
**Tags:** auditbeat
**Created:** [July 4, 2018, 10:43am UTC](https://discuss.elastic.co/t/failed-to-open-persistent-datastore-mapviewoffile/138537 "2018-07-04T10:43:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BabkaFox](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BabkaFox](https://discuss.elastic.co/u/BabkaFox)
#### Post date: [July 4, 2018, 10:43am UTC](https://discuss.elastic.co/t/failed-to-open-persistent-datastore-mapviewoffile/138537/1 "2018-07-04T10:43:09Z")

</div>

When I launch auditbeat, I see such a message: "_failed to open persistent datastore: MapViewOfFile: Not enough storage is available to process this command_".  
The file beats.db has a size of 1 gigabyte and no longer increases.  
Auditbeat version: 6.3.0  
My config:

#========================== Modules configuration =============================  
auditbeat.modules:

module: file\_integrity  
paths:  
D:\_Public\Exchange  
E:\Departament  
recursive: true  
scan\_rate\_per\_sec: 25 MiB  
scan\_at\_start: false

#==================== Elasticsearch template setting ==========================  
setup.template.settings:  
index.number\_of\_shards: 3

#-------------------------- Elasticsearch output ------------------------------  
output.elasticsearch:  
hosts: ["{SITE}:{PORT}"]  
username: "{username}"  
password: "{pass}"

xpack.monitoring.enabled: true

---

<div class="post-metadata">

### Author: ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)
#### Post date: [July 4, 2018, 3:05pm UTC](https://discuss.elastic.co/t/failed-to-open-persistent-datastore-mapviewoffile/138537/2 "2018-07-04T15:05:29Z")

</div>

This means that memory-mapping the beats.db file is failing because there is not enough memory available (or better said, address-space).

Are you running auditbeat on a 32-bit system?

---

<div class="post-metadata">

### Author: ![BabkaFox](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BabkaFox](https://discuss.elastic.co/u/BabkaFox)
#### Post date: [July 4, 2018, 4:33pm UTC](https://discuss.elastic.co/t/failed-to-open-persistent-datastore-mapviewoffile/138537/3 "2018-07-04T16:33:00Z")

</div>

You're right!  
Nearly..  
I used the 32 bit version auditbeat and it stopped working after the file was full(1GB). I replaced auditbeat with a 64 bit version and it all worked

The topic can be closed

Thank you!

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [July 8, 2018, 10:59am UTC](https://discuss.elastic.co/t/failed-to-open-persistent-datastore-mapviewoffile/138537/4 "2018-07-08T10:59:16Z")

</div>


