[GraphHopper] Can't import small pbf file with GH 0.5

Peter graphhopper at gmx.de
Thu Sep 10 14:37:47 UTC 2015


Hi Armin,

the problem with 32bit is that the heap size is extremly limited (like
1.4 or 2gb) and you could hit the problem already with D only. Using
memory mapping helps a bit here as the linux OS can use more memory than
the JVM (I think)

I would suggest make sure you use the very latest jdk and reduce the
-Xmx and -Xms to 300mb

Are you using CH or without? And again, what stacktrace exactly do you
get? And did you try the exact same OSM file with 0.4.1 and 0.5.0?

Kind Regards,
Peter

PS: Please let us move the discussion to https://discuss.graphhopper.com/
See
https://discuss.graphhopper.com/t/moving-mailing-list-to-discuss-graphhopper-com/42

On 10.09.2015 16:05, XCTrails wrote:
> Hi,
>
> further to that: It turns out that neither of the above approaches
> works on my production server which so far is unfortunately a 32bit
> 12.04 Ubuntu. Tried with both Java7 and 8 and the above mentioned
> compiler flags:
>
> Exception in thread "main" java.lang.OutOfMemoryError: Metaspace when
> loading the data.
>
> The data in the production case is built every week by a bigger server
> and then copied to the smaller, it's an OSM extraction for D/A/CH/I.
> Works fine with 0.4.
>
> Guess I'll have to upgrade the server before I can go to 0.5 :-/
>
> cheers,
> Armin
>
>
> 2015-08-27 15:46 GMT+02:00 Peter <graphhopper at gmx.de
> <mailto:graphhopper at gmx.de>>:
>
>     Hi Armin,
>
>     thanks a bunch for confirming this! Which also means that a
>     vanilla JDK 8 now works and won't trigger the JVM bug in #187
>
>     Kind Regards,
>     Peter
>
>
>     On 27.08.2015 15:39, XCTrails wrote:
>>     Hi Peter,
>>
>>     2015-08-26 16:56 GMT+02:00 Peter <graphhopper at gmx.de
>>     <mailto:graphhopper at gmx.de>>:
>>
>>         [sorry for the very ugly thread hijacking of my last email]
>>
>>         Hi Armin,
>>
>>         would you mind to try if jvm 1.7 works if you add the
>>         following command line parameter?
>>
>>         -XX:CompileCommand=exclude,com.graphhopper.coll.GHLongIntBTree::put
>>
>>         e.g. append to the existing -Xmx2g setting like:
>>         JAVA_OPTS="-Xmx2g
>>         -XX:CompileCommand=exclude,com.graphhopper.coll.GHLongIntBTree::put"
>>
>>
>>     I can confirm that in my dev env, java 1.7.0_79 works with GH 0.5
>>     and these switches.
>>
>>     cheers,
>>     Armin
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150910/d0becd71/attachment.html>


More information about the GraphHopper mailing list