influxdb: tsdb store: cannot allocate memory

Trying to start the influxd server with sudo influxd (or influxd) gives
open server: open tsdb store: cannot allocate memory

Running Influx 1.5.2 on Ubuntu 18.04 LTS on WSL (Windows 10 1803). Reinstall fixed the problem, but as the database gets larger, the same issue repeats. Looking at other issues on GitHub, I wondered if it was a RAM issue, but I have over 5GB of ram (while trying to start the server), and the influxdb folder is just over 143MB.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 26 (2 by maintainers)

Most upvoted comments

It seems I have the same problem. After trying out influxdb in Debian Strech on WSL (Windows 10 1803) yesterday and adding some data (the database files are around 187 MB), the influxd service terminates silently after starting. The only thing I’ve done in the meantime is power off and reboot Windows. When I input sudo influxd, I receive the error message run: open server: open tsdb store: cannot allocate memory, even though there should be plenty of RAM available (8 GB total).

Reopened, thanks for calling out that it’s still a problem on 2.x.

I’ve seen similar confusing allocation failures on Windows when trying to open the embedded bolt DB. I wonder if it has something to do with mmap…