-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osrm-extract Error bad_alloc #4479
Comments
Okay, I solved the problem. There was just not enough RAM available. Sorry :S |
Just my two cents... If you need to convert whole planet.pbf (2017-09-25) than you need at least
with real memory or swap space. Prerequisites:
Hardware:
Work:
Success if no exception, error or similar. |
using swap instead of ram will be very very slow |
We're running into the same problem today with OSRM 5.14.1 with foot.lua processing the planet file using a server with 256 GB RAM and 4 TB HDD. Question: If we preprocess the planet by filter out i.e. buildings=, natural= and a lot of other objects, could that help? If yes, does anybody has a list of keys which is used by OSRM? |
Hi, Before, in a server running osrm-extract version 5.15.0 with 4 GB RAM and 100 GB HD, and it worked fine. I'm processing Central America file. Any suggestions? |
@javalver |
In fact, I have 6 GB free RAM and about 70 GB free swap. |
As I've said before, before I hadn't that problem, even in another system with less RAM and HD. |
@javalver Can you please provide a bit more information about the error you're getting? Please copy/paste the complete output here. Note that OSRM 5.17 is not an official release, it sounds like you're building from |
root@osrm02:/opt/osrm/data# osrm-extract /opt/osrm/data/map.osm.pbf -p /opt/osrm/osrm-backend/profiles/car.lua I'm getting version 5.17 directly from git clone https://github.com/Project-OSRM/osrm-backend.git |
@javalver You are definitely running out of RAM. Is the |
I'm using this command to get .pbf file: wget -O map.osm.pbf http://download.geofabrik.de/central-america-latest.osm.pbf |
@javalver I just tried with that file and the same gitsha - it works fine for me and uses 2.7GB of RAM.
Try running the same command I did |
I've run that command and got the next results: Command terminated by signal 6 The server has 8 GB RAM and 300 GB HD |
@javalver there is some problem with your system.
Your program quit very quickly and didn't even allocate a lot of RAM, even though it received an OOM error. If you're running inside Docker or some other container, please ensure that you haven't specified some very low memory limits for the container. Also check that the RSS Unfortunately, the problem looks like a configuration problem on your system, not something to do with OSRM itself - I'm probably not going to be able to help you much further, you could try a StackOverflow forum regarding Linux system configuration. |
Hi everyone, |
I'm getting the same problem. RAM consumption doesn't even go up too much, the program just quits. |
Hi,
when using osrm-extract (after building from source) I get the following error message.
I am using Ubuntu 16.04 and did everything exactly like described in the readme.
The text was updated successfully, but these errors were encountered: