[OSM-talk] Slim mode in osm2pgsql and out of memory error

Saphy Mo saphyfar at yahoo.com
Wed Jun 8 15:44:11 BST 2011


Dear friend,
I am trying to import whole Europe.os.bz2 in a Postgis database named EuropeLl as you see in the script below.

CPU: Dual Coe 3 Ghy
RAM: 3 GB
HDD: 1 TB

osm2pgsql.exe -d EuropeLL --latlong --slim -c -C 500 -H localhost -P 5432 -U osm -W -S default.style europe.osm.bz2
------------------------------------------------------------------------------------------------------------------

It reads Nodes(495155k), Ways(57513k), relations(669k) properly.
Exception Caught processings ways id=1479960
Processing: Node(495155k),Ways(57513k), relations(718k)
Node State: total (495155996),max(1281994925)
Way state: total(57513025), max(158054)

going over pending ways
pending_ways faild : out of memory for query result

(7)
error occurred cleaning up--------------------------------------------------------------------------------------------------------------------

Please let me know, what I shoud modify and change to get it working.
Shoudl I use a PC with more than 8 or 16 GB

regards,
Saphy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20110608/10568f13/attachment.html>


More information about the talk mailing list