Out of memory error
Brought to you by:
r_x
This is strange as my machine has 64GB of RAM, so it should not get out of memory...
Version: Mobile Atlas Creator (MOBAC) 2.2.0-gradle-test7 (2568)
Platform: Windows 10 (10.0) (windows)
Java VM: AdoptOpenJDK OpenJDK 64-Bit Server VM (11.0.11+9)
Max heap size: 1900,00 MiB
CPU cores: 12
Thread: AWT-EventQueue-0
Error hierarchy:
OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Java has it's own memory management which does not play well with other programs if you allow it to use the whole memory. Therefore the for MOBAC the maximum memory usage is limited by the starter (see Max heap size: 1900,00 MiB) in the error message.
As MOBAC is implemented in a way to use memory as efficient as possible for most users this limit is enough. What are you doing (what atlas format) that requires so much RAM?
If you start MOBAC via command-line you can change the maximum memory parameter e.g. to 20GB:
Thanks for this fast response. I am trying to create an Oruxmaps DB of
whole France down to level 15 (1:25000).
The resulting DB should be around 12GB, which is indeed quite large!
Last edit: r_x 2022-01-12
"OruxMaps Sqlite" atlas format uses as implied by the name an sqlite database which is filled up tile by tile. For efficiency database operations are not auto-commited after adding a tile but accumulated until the heap size is down to 20MB free heap or 1000 tiles have been accumulated.
This algorithm has worked quite well and should be sufficient even with less than 2GB heap size.
BTW: Is there a reason you use the one year old experimental version 2.2.0-gradle-test7 (2568 -> ~Feb 2021) instead of Mobile Atlas Creator 2.2.1 which had been released in June last year?
Hello,
Yes there is a reason for using this old Mobac version: It comes
preconfigured from
https://oziandro.forumactif.org/t2580-sources-de-cartes-pour-mobac, with
lots of .bsh files which are working quite well (apart some TLS keys errors
on few sources).
I do not know if there is a better repository for such map sources, but I
found it really useful.
Thanks for you great work!
Last edit: r_x 2022-01-12