Error: 'GC overhead limit exceeded' in mkgmap

Diskussionen zu dem Werkzeug hinter der Karte und für eigene Garminkarten
Antworten
ogrums
Beiträge: 15
Registriert: 17.04.2021, 17:40

Error: 'GC overhead limit exceeded' in mkgmap

Beitrag 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
Benutzeravatar
Nop
Site Admin
Beiträge: 599
Registriert: 10.01.2019, 20:46

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

Beitrag von Nop »

Yes. See the manual here: http://composer.waldpfa.de/index.php?n=MC.Einstellungen

It's "Speicher für java Aufrufe"
Antworten