Open alexeyismirnov opened 9 years ago
A bit aged already but maybe it helps somebody else. I encountered the same issue. Issuing the following command should output the current java version java -Xms128m -Xmx128m -version
If this works for you can add the following line to the export _JAVA_OPTIONS='-Xms128M -Xmx128m'
to the nominatim users .profile. for the regular installation found at /home/nominatim/.profile
to use this values executing under the nominatim user as well.
I'm no Java pro, but I assume this is related somehow to the process architecture as I'm running on an x64 Ubuntu. Probably as you do as well. Will validate this issue by testing with a x86 machine.
Looks like the root cause is/was a missing swap file on my machine.
Executeing cat /proc/meminfo
showed me
...
SwapTotal: 0 kB
SwapFree: 0 kB
...
I added a script that checks for a swap file and if it's not available it creates it. Solved the problem for me without fiddling with the -Xms and -Xmx parameters.
Will create a pull request including the script.
I am using Ubuntu 14.04 VM on DigitalOcean wtih 8GB of RAM. But the setup fails after downloading many packages. Here is the error message:
Here is my .config.sh