Increase MAXHINCR or MAX_HEAP_SECTS

Hi! compiling http://downloads.cloudmade.com/europe/austria/austria.osm.bz2 failed: 'java -Xmx3000M -jar /usr/share/mkgmap/mkgmap.jar --route austria.osm' failed with Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS. How can I increase that? Will it help? debians dpkg says its version 0.0.0+svn1067-1. I haven't tried the current version because that hasn't finished a smaller map after 15 mins while debians mkgmap finished in seconds. Bernhard

On Wed, Feb 02, 2011 at 09:07:52PM +0100, Bernhard Kuemel wrote:
compiling http://downloads.cloudmade.com/europe/austria/austria.osm.bz2 failed: 'java -Xmx3000M -jar /usr/share/mkgmap/mkgmap.jar --route austria.osm' failed with Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS. How can I increase that? Will it help?
Which Java runtime environment are you using? Oracle (Sun) Java could work better than OpenJDK.
debians dpkg says its version 0.0.0+svn1067-1. I haven't tried the current version because that hasn't finished a smaller map after 15 mins while debians mkgmap finished in seconds.
r1067 would be from 2009-06-17, over 18 months old. Many things have been implemented since then. Are you really trying to compile the entire Austria in a single tile using the mkgmap default style? I think that you should split it to smaller tiles with splitter.jar. I have published my scripts and configuration files at http://www.polkupyoraily.net/osm/. I run them on Debian to create a map of Finland. You may want to adapt your translation from them. Best regards, Marko

On 02/02/2011 09:07 PM, Bernhard Kuemel wrote:
Hi!
compiling http://downloads.cloudmade.com/europe/austria/austria.osm.bz2 failed: 'java -Xmx3000M -jar /usr/share/mkgmap/mkgmap.jar --route austria.osm' failed with Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS. How can I increase that? Will it help?
debians dpkg says its version 0.0.0+svn1067-1. I haven't tried the current version because that hasn't finished a smaller map after 15 mins while debians mkgmap finished in seconds.
Same with version 1804 after 169 minutes. There were also many of these messages: SEVERE (RoadNetwork): austria.osm: Road (http://www.openstreetmap.org/browse/way/28311585) contains zero length arc at http://www.openstreetmap.org/?mlat=&mlon=&zoom=17

On 02/02/2011 22:53, Bernhard Kuemel wrote:
There were also many of these messages: SEVERE (RoadNetwork): austria.osm: Road (http://www.openstreetmap.org/browse/way/28311585) contains zero length arc at http://www.openstreetmap.org/?mlat=&mlon=&zoom=17 Maybe try with "--remove-short-arcs" perhaps?

How much memory does your system have? If the systems starts to swap mkgmap will need multitudes of time it would need normally. The error message "Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS." sounds like overall memory problems. Please try to reduce the -Xmx3000M. If you don't use more than 1 thread at least -Xmx1000M should work. WanMil
On 02/02/2011 09:07 PM, Bernhard Kuemel wrote:
Hi!
compiling http://downloads.cloudmade.com/europe/austria/austria.osm.bz2 failed: 'java -Xmx3000M -jar /usr/share/mkgmap/mkgmap.jar --route austria.osm' failed with Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS. How can I increase that? Will it help?
debians dpkg says its version 0.0.0+svn1067-1. I haven't tried the current version because that hasn't finished a smaller map after 15 mins while debians mkgmap finished in seconds.
Same with version 1804 after 169 minutes.
There were also many of these messages:
SEVERE (RoadNetwork): austria.osm: Road (http://www.openstreetmap.org/browse/way/28311585) contains zero length arc at http://www.openstreetmap.org/?mlat=&mlon=&zoom=17

I think the problem could be the cloudmade extracts. At least 2 years ago they would not work. Try with geofabrik extracts instead. (and austria without splitting into at least 7-8 tiles will not work anyhow). On 03.02.2011 19:57, WanMil wrote:
How much memory does your system have? If the systems starts to swap mkgmap will need multitudes of time it would need normally. The error message "Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS." sounds like overall memory problems.
Please try to reduce the -Xmx3000M. If you don't use more than 1 thread at least -Xmx1000M should work.
WanMil
On 02/02/2011 09:07 PM, Bernhard Kuemel wrote:
Hi!
compiling http://downloads.cloudmade.com/europe/austria/austria.osm.bz2 failed: 'java -Xmx3000M -jar /usr/share/mkgmap/mkgmap.jar --route austria.osm' failed with Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS. How can I increase that? Will it help?
debians dpkg says its version 0.0.0+svn1067-1. I haven't tried the current version because that hasn't finished a smaller map after 15 mins while debians mkgmap finished in seconds. Same with version 1804 after 169 minutes.
There were also many of these messages:
SEVERE (RoadNetwork): austria.osm: Road (http://www.openstreetmap.org/browse/way/28311585) contains zero length arc at http://www.openstreetmap.org/?mlat=&mlon=&zoom=17
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (5)
-
Bernhard Kuemel
-
Felix Hartmann
-
Marko Mäkelä
-
SomeoneElse
-
WanMil