meilisearch: Cannot allocate memory

Describe the bug When creating an index in a freshly created Meilisearch instance I get the error Cannot allocate memory (os error 12)

To Reproduce Steps to reproduce the behavior:

  1. Download the new release of Meilisearch v1.0.0
  2. Execute it
  3. Try to add a new index
  4. Get the error

Expected behavior As it happens in the previous version of Meilisearch (v0.30.5), it should create an index.

Screenshots Not applicable

Meilisearch version: v1.0.0

Additional context Meilisearch works perfectly fine in the previous version (v0.30.5), but not in the newest one (v1.0.0). It’s a freshly created instance, with no current indexes/documents.

Running on the latest version of DietPi (v8.14.2) on a Raspberry Pi 4b with 8GB of RAM.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

Hello @dureuill

I’ve tested your prototype, I can’t say if the startup time is faster as both versions start really fast (I would say at the same time). Your prototype does work in my machine.

The three lines are: [2023-02-21T13:38:19Z INFO index_scheduler] memmap budget: 366668349439B [2023-02-21T13:38:19Z INFO index_scheduler] index budget: 172596756479B [2023-02-21T13:38:19Z WARN index_scheduler] 1 index of 69038702591B can be opened simultaneously.

Compiled from source and it works perfectly! I’ll be waiting for the next release of Meilisearch to update.

Thanks @curquiza and @dureuill for your quick responses!

I’m happy to test the Meilisearch dev versions and I’ll be awaiting the next release!

The issue was happening after adding the first index, it was a fresh instance. In previous versions I didn’t need to add the --max-index-size.

OK great!

To get the prototype, you can either use docker or build it from source.

  • Using docker, run the following command from your RPI: docker run -p 7700:7700 -v $(pwd)/meili_data:/meili_data getmeili/meilisearch:prototype-multi-search-0 docker run -p 7700:7700 -v $(pwd)/meili_data:/meili_data getmeili/meilisearch:prototype-unlimited-indexes-0
  • From source, clone the Meilisearch repository and compile it on the prototype-unlimited-indexes-0 (You either need to compile on the RPI or to cross-compile)

🙏 Please do not use this in production though, it is a prototype ⚠️

If everything goes well with testing, then we’ll release these changes in v1.1