<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Armin,<br>
<br>
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)<br>
<br>
I would suggest make sure you use the very latest jdk and reduce
the -Xmx and -Xms to 300mb<br>
<br>
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?<br>
<br>
Kind Regards,<br>
Peter<br>
<br>
PS: Please let us move the discussion to
<a class="moz-txt-link-freetext" href="https://discuss.graphhopper.com/">https://discuss.graphhopper.com/</a><br>
See
<a class="moz-txt-link-freetext" href="https://discuss.graphhopper.com/t/moving-mailing-list-to-discuss-graphhopper-com/42">https://discuss.graphhopper.com/t/moving-mailing-list-to-discuss-graphhopper-com/42</a><br>
<br>
On 10.09.2015 16:05, XCTrails wrote:<br>
</div>
<blockquote
cite="mid:CAMt9zrt1sx7XujJiZ=zQK4utM81LxRj7bDM90R-n6NwdHUe9xg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
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:<br>
<br>
Exception in thread "main" java.lang.OutOfMemoryError:
Metaspace when loading the data.<br>
<br>
</div>
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.<br>
<br>
</div>
Guess I'll have to upgrade the server before I can go to 0.5
:-/<br>
<br>
</div>
cheers,<br>
</div>
Armin<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-08-27 15:46 GMT+02:00 Peter <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Armin,<br>
<br>
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<br>
<br>
Kind Regards,<br>
Peter
<div>
<div class="h5"><br>
<br>
On 27.08.2015 15:39, XCTrails wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Hi Peter,<br>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-08-26 16:56
GMT+02:00 Peter <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:graphhopper@gmx.de"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:graphhopper@gmx.de">graphhopper@gmx.de</a></a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>[sorry for the very ugly thread
hijacking of my last email]<br>
<br>
Hi Armin,<br>
<br>
would you mind to try if jvm 1.7 works
if you add the following command line
parameter?<br>
<br>
-XX:CompileCommand=exclude,com.graphhopper.coll.GHLongIntBTree::put<br>
<br>
e.g. append to the existing -Xmx2g
setting like:<br>
JAVA_OPTS="-Xmx2g
-XX:CompileCommand=exclude,com.graphhopper.coll.GHLongIntBTree::put"<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I can confirm that in my dev env, java
1.7.0_79 works with GH 0.5 and these
switches.<br>
<br>
</div>
<div>cheers,<br>
</div>
<div>Armin<br>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>