# Not enough memory error

**URL:** <https://ask.openrouteservice.org/t/not-enough-memory-error/1670>\
**Category:** openrouteservice\
**Created:** [May 6, 2020, 5:14pm UTC](https://ask.openrouteservice.org/t/not-enough-memory-error/1670 "2020-05-06T17:14:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adam](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/adam/32/8_2.png) [@adam](https://ask.openrouteservice.org/u/adam)\
**Post date:** [May 7, 2020, 5:56am UTC](https://ask.openrouteservice.org/t/not-enough-memory-error/1670/2 "2020-05-07T05:56:03Z")

</div>

I think this is likely because though the pbf size is small for south america, the geographical context is a lot bigger so there is quite a bit of elevation data that would be loaded aswell. The bit that it is failing on is in the landmark processing, and so what I expect is happening is that because the number of threads for preparing is set to 8, having both shortest and fastest calculations happening at the same time is too much. Try doing it again but in the following:

```auto
"lm":{
  "enabled":true,
  "threads":8,
  "weightings":"fastest,shortest",
  "landmarks":24
}

```

change `"threads": 8,` to be `"threads": 1,`

---

_[View the full topic](https://ask.openrouteservice.org/t/not-enough-memory-error/1670)._
