<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Nicolas,<br>
      <br>
      creating world wide graph needs lots of RAM (normal graph needs
      8GB, CH needs 13GB, creating the latter one needs ~22GB). Although
      for only belgium territority this should be sufficient. Not sure
      how your additional data source looks like and what the exact
      reason of the OOM might cause. What is the exact stacktrace?<br>
      <br>
      Did you increase the default -Xmx1000m settings either by editing
      graphhopper.sh or by providing your own JAVA_OPTS? (export
      JAVA_OPTS="-Xmx2000m ..."; ./graphhopper.sh ...)<br>
      <br>
      <span lang="EN-US">> I’d like to know if there could be a way
        to flush the DataAccess on a regular basis to release memory.</span><br>
      <br>
      You could use the MMapDataAccess but you'll have to make this
      thread-safe (e.g. with a simple DataAccess wrapper). But if not
      enough RAM is available => everything will be slower (import +
      queries)<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
    </div>
    <blockquote
cite="mid:2210caaaa30745d8a9dcf3a4b07dc7b7@AMXPR05MB056.eurprd05.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I’m facing an
            OutOfMemoryError (heap space) when creating a bigger graph.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Actually, I am creating
            a graph out of our own data source including speed profile
            definitions on the Belgian territory.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Creating a simple graph
            works fine but when it comes to create the speed profiles,
            my process quickly runs out of memory.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">To store these speed
            profiles, I have created 7 more DataAccess, one for each day
            of week and each edge has one speed profile stored in there.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I’d like to know if
            there could be a way to flush the DataAccess on a regular
            basis to release memory.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">When I see that you
            managed to create a worldwide graph, I guess there might be
            such mechanism but I couldn’t find it.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thank you<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:#1F497D;mso-fareast-language:FR-BE">Nicolas
            GILLET<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:FR-BE"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="color:#1F497D;mso-fareast-language:FR-BE"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="color:#1F497D;mso-fareast-language:FR-BE">Market-IP
              –</span></b><i><span
              style="color:#1F497D;mso-fareast-language:FR-BE">
            </span></i><i><span
              style="color:#404040;mso-fareast-language:FR-BE">Creating
              Mobile Intelligence</span></i><span
            style="color:#1F497D;mso-fareast-language:FR-BE"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:FR-BE">Phone : +32
            81 33 11 11
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:FR-BE">Fax : +32
            81 33 11 10<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:FR-BE"><a
              moz-do-not-send="true" href="http://www.market-ip.com/"><span
                style="color:blue">www.market-ip.com</span></a> –
            <a moz-do-not-send="true" href="http://www.telefleet.com/"><span
                style="color:blue">www.telefleet.com</span></a> –
            <a moz-do-not-send="true" href="http://www.geoplanning.net/"><span
                style="color:blue">www.geoplanning.net</span></a> –
            <a moz-do-not-send="true" href="http://www.drivexpert.net/"><span
                style="color:blue">www.drivexpert.net</span></a>
            <o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/graphhopper">http://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>