Hi, I am trying to import a large area from europe.osm. To do that I executed the following command: "C:\Program Files (x86)\osmosis\bin\osmosis.bat" --read-xml file="G:\Restricted\Radu\Facultate\2012-2013\Licenta\europe.osm" --bounding-box left=12.04 top=55.44 right=30.19 bottom=43.51 --write-pgsql host="localhost" database="eastern_europe" user="postgres" password="parola" After almost a day of executing the following error dropped: From what I've seen on http://wiki.openstreetmap.org/wiki/Osmosis/Tuning a quick fix for this error is to set JAVACMD_OPTIONS to change the amount of memmory allocated (JAVACMD_OPTIONS=-Xmx2G will allocate 2 GB). First of all I would like to know where do I have to set JAVACMD_OPTIONS. I am a Windows user. Do I have to edit osmosis.bat in bin directory? Also setting JAVACMD_OPTIONS to 2GB will be enough for osmosis to not crush again or do I have to set other variables? I want to be sure before executing the process again because I have to wait almost a day to see any results and I will loose a lot of time if it crashes again. Thank you asked 18 Apr '13, 10:33 raduzugravu |
Try typing at the command line that you're going to run osmosis, "set JAVACMD_OPTIONS=-server -Xmx2G" answered 11 May '15, 00:42 Heshy |
SET EXEC="%JAVACMD%" %JAVACMD_OPTIONS% -cp "%PLEXUS_CP%" -Dapp.home="%MYAPP_HOME%" -Dclassworlds.conf="%MYAPP_HOME%\config\plexus.conf" %MAINCLASS% %OSMOSIS_OPTIONS% %* As per osmosis.bat file , set java options in the bat file like any other parameter with set xxxx=value answered 06 Jun '16, 20:47 rajashekar |
Are you running a 32-bit or 64-bit version of Java? You're running a 64-bit version of Windows (you're running osmosis.bat out of "Program Files (x86)") but we don't know which Java you're running.
It seems I am running a 32-bit JVM. The command: "java -d64 -version" returned: "This instance does not support a 64-bit JVM".
Do I have to install the 64-bit version?