Seite 1 von 1

Error: 'GC overhead limit exceeded' in mkgmap

Verfasst: 22.08.2023, 12:16
von ogrums
In MC 1.2b I start with java -Xmx4400M.
The map is divided into 32 segments, and in the process of constructing the 32 .IMGs this happens:

java -Xmx1200M -jar D:\Program\map_composer\map_composer\Tools\mkgmap.jar --tdbfile --preserve-element-order -c D:\Program\map_composer\map_composer\data\osmc_options

Mkgmap version 4905
Time started: Tue Aug 22 11:33:00 CEST 2023
WARNING (global): Setting max-jobs to 4
SEVERE (global): Out of memory.
Try using the Java -Xmx option to increase the available heap memory.
java.lang.OutOfMemoryError: GC overhead limit exceeded
Number of ExitExceptions: 1
Time finished: Tue Aug 22 11:44:50 CEST 2023
Total time taken: 11 minutes 49 seconds


If I execute the command outside of MC with java -Xmx2200M, the step succeeds, and I also have to build the final map by hand (outside of MC).
Can I change the -Xmx1200M memory parameter for the failing step somewhere in MC ?

Regards, Ole

Re: Error: 'GC overhead limit exceeded' in mkgmap

Verfasst: 22.08.2023, 19:10
von Nop
Yes. See the manual here: http://composer.waldpfa.de/index.php?n=MC.Einstellungen

It's "Speicher für java Aufrufe"