This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass API installation ‘Out of memory’

1

Hi all, I'm trying to install an overpass implementation on a custom server (to free resources on the public server), but im running into an 'out of memory' error while trying to build the database for a small .bz2 file (for the UK).

As the documentation states, 1GB ram is the minimum for the server install.

My server has 3072MB RAM, 512MB VSWAP, quad core, 275 GB SSD-Cached.

I have already set up the overpass api on a 4GB RAM server (with lower spec on everything else).

Should my server be able to run this? I also tried to install the API with a 512MB ram server before now, and the install ran for 10mins before terminating but on this new server it terminates almost immediately.

The error itself (from dmesg) is

[4551398.870288] Out of memory in UB 25187: OOM killed process 21091 (update_database) score 0 vm:4228424kB, rss:3102376kB, swap:503952kB.

Regards and many thanks,

George

asked 16 Aug '14, 12:48

gmeister's gravatar image

gmeister
16111
accept rate: 0%

1

Did you try to bump up your swap space to say 8-16GB?

(11 Sep '14, 19:08) mmd
1

Hey, Thanks for the reply, I managed to avoid the out of memory error by adding --flush-size=1 as a parameter when calling update_database, so in my case, adding it to the last line in the init_osm3s.sh script. Ill add this to the wiki.

(14 Sep '14, 19:43) gmeister4

Source code available on GitHub .