【发布时间】:2019-04-08 23:57:52
【问题描述】:
我正在尝试使用 Docker 设置 OSRM 后端服务器。主机是运行 OS 10.14 (Mojave) 的具有 32GB RAM 的 MacBook Pro。
下载 england-latest.osm.pbf 文件后,我尝试使用以下命令启动该过程。
docker run -t -v $(pwd):/data osrm/osrm-backend osrm-extract -p /opt/car.lua /data/england-latest.osm.pbf
输出如下:
[info] Parsed 0 location-dependent features with 0 GeoJSON polygons
[info] Using script /opt/car.lua
[info] Input file: england-latest.osm.pbf
[info] Profile: car.lua
[info] Threads: 6
[info] Parsing in progress..
[info] input file generated by osmium/1.8.0
[info] timestamp: 2018-11-02T21: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] Using profile api version 4
[info] Using profile api version 4
此时,该过程会静默失败,并且不会写入您期望的任何文件。如果我使用 Greater-london-latest.osm.pbf 文件,那么一切正常,所以我猜这是某种内存限制。我该如何确定问题并解决它?
【问题讨论】:
标签: osrm