NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

[info] Parsing in progress..
[info] input file generated by osmium/1.8.0
[info] timestamp: 2019-09-14T20:15:02Z
[info] Using profile api version 4
[info] Found 3 turn restriction tags:
[info]   motorcar
[info]   motor_vehicle
[info]   vehicle
[info] Parse relations ...
[info] Parse ways and nodes ...
[info] Using profile api version 4
[info] Using profile api version 4
[info] Using profile api version 4
[info] RAM: peak bytes used: 4191161856
[error] [exception] std::bad_alloc
[error] Please provide more memory or consider using a larger swapfile

this the Error i am getting when i try to extract osrm pbf file help my server is virtual 60 Gb ram 2 TB

asked 15 Feb '22, 04:29

gramzrah's gravatar image

gramzrah
11447
accept rate: 0%

edited 15 Feb '22, 09:47

TZorn's gravatar image

TZorn
12.3k764225


For an osrm installation covering the planet (based on the used lua profile, car is the smallest, biking and walking are much larger in memory needed) you'll need at least 256GB of memory (and with the data in 2022, even that won't be enough anymore. The sample installation by routing.openstreetmap.de cuts up the planet in smaller areas and uses 3 servers with 256gb each - one wouldn't do a full planet anymore).

In general: vps won't help much if you want a full planet install (be it for a map, nominatim or osrm). And you won't be able to install more than one service on a dedicated server.

E.g. see here: https://github.com/Project-OSRM/osrm-backend/issues/6146 where 64gb of memory is not enough to do an Europe extract.

permanent link

answered 15 Feb '22, 08:38

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 15 Feb '22, 08:41

i managed to do Africa only thats fine with me coz i need Africa only

(15 Feb '22, 18:47) gramzrah

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×202
×85
×6
×4

question asked: 15 Feb '22, 04:29

question was seen: 2,934 times

last updated: 15 Feb '22, 18:47

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum