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

Hey guys, I'm trying to dump a recent planet.osm file to a local PostgreSQL database on OS X.

I'm running a 120 GB SSD for my system drive, and a 500GB 7200RPM external drive for the database connected via Firewire 800.

When I run osmosis with a simple read-xml, write-pgsql command I notice my system drive (the SSD) in activity manager fills up while my database (on the 500GB external drive) isn't being populated at all, or used at all.

It's on this step: Processing input data, building geometries and creating database load files.

Obviously the SSD isn't large enough to handle whatever operations are being cached / created. So my question is, what is osmosis creating in the background and is there a way to force it to utilize the other volume instead of the system default?

After some testing, I believe that Osmosis is utilizing the temp folder on OS X, which is why I am seeing drive usage on my system drive/my SSD.

I am unsure if I can relocated the temp folder or if Java / Osmosis can told made to use another directory.


asked 08 Jul '12, 21:59

Smartkid's gravatar image

accept rate: 0%

edited 08 Jul '12, 23:31

Frederik%20Ramm's gravatar image

Frederik Ramm ♦

You can set a different temporary directory with the command


Also read the information about the nodeLocationStorage parameter on the Osmosis wiki page.

permanent link

answered 08 Jul '12, 23:30

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%


Thanks so much, this worked like a charm.

For those who are following, running the JAVACMD_OPTIONS line above will move the location on disk that Java uses as a temporary directory.

In my case, the default was OS X's temp dir which is automatically emptied on system restart. When I moved Java's tmp dir, an artifact was that Java's temp files are no longer automatically removed on system restart. You can simply delete the content of the folder you choose and/or reset the Java tmp dir afterwards.

Anyway, thanks Frederik! -Cody

(10 Jul '12, 22:36) Smartkid

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 08 Jul '12, 21:59

question was seen: 6,081 times

last updated: 10 Jul '12, 22:36

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