<div dir="ltr">I have a simple cron script for updating gh graph:<div><br></div><div>wget "$LATEST_PBF" -O "$GH_PBF_FILE"<br>rm -rf "$GH_GRAPH_PATH"<br>service jetty8 restart<div></div></div><div><br></div><div>After last step of this script (Jetty restarting) Jetty starts and run process of graph creation.</div><div>But after couple of minute I try to check Jetty status and get:</div><div><br></div><div> * Jetty servlet engine is not running, but pid file exists.<br></div><div><br></div><div>graph.location directory also emty (contains only lock file). Log file shows that graph creation is interrupted:<br></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">2015-05-29 10:00:34.284:INFO:oejs.Server:Graceful shutdown <a href="http://SelectChannelConnector@0.0.0.0:8080">SelectChannelConnector@0.0.0.0:8080</a><br>2015-05-29 10:00:34.288:INFO:oejs.Server:Graceful shutdown o.e.j.w.WebAppContext{,file:/var/lib/jetty8/webapps/root/},file:/var/lib/jetty8/webapps/root/<br>2015-05-29 10:00:34.288:INFO:oejs.Server:Graceful shutdown o.e.j.w.WebAppContext{/graphhopper-web-0.4-SNAPSHOT,file:/var/cache/jetty8/data/jetty-0.0.0.0-8080-graphhopper-web-0.4-SNAPSHOT.war-_graphhopper-web-0.4-SNAPSHOT-any-/webapp/},file:/var/lib/jetty8/webapps/graphhopper-web-0.4-SNAPSHOT.war<br>2015-05-29 10:00:35.320:INFO:oejsh.ContextHandler:stopped o.e.j.w.WebAppContext{/graphhopper-web-0.4-SNAPSHOT,file:/var/cache/jetty8/data/jetty-0.0.0.0-8080-graphhopper-web-0.4-SNAPSHOT.war-_graphhopper-web-0.4-SNAPSHOT-any-/webapp/},file:/var/lib/jetty8/webapps/graphhopper-web-0.4-SNAPSHOT.war<br>2015-05-29 10:00:35.326:INFO:oejsh.ContextHandler:stopped o.e.j.w.WebAppContext{,file:/var/lib/jetty8/webapps/root/},file:/var/lib/jetty8/webapps/root/<br>2015-05-29 10:00:38.198:WARN:oejd.WebAppDeployer:WebAppDeployer is deprecated. Use WebAppProvider<br>2015-05-29 10:00:38.199:INFO:oejs.Server:jetty-8.1.3.v20120416<br>2015-05-29 10:00:38.336:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet<br>2015-05-29 10:00:38.387:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{,file:/var/lib/jetty8/webapps/root/},file:/var/lib/jetty8/webapps/root/<br>2015-05-29 10:00:38.387:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{,file:/var/lib/jetty8/webapps/root/},file:/var/lib/jetty8/webapps/root/<br>2015-05-29 10:00:38.400:INFO:oejw.WebInfConfiguration:Extract jar:file:/var/lib/jetty8/webapps/graphhopper-web-0.4-SNAPSHOT.war!/ to /var/cache/jetty8/data/jetty-0.0.0.0-8080-graphhopper-web-0.4-SNAPSHOT.war-_graphhopper-web-0.4-SNAPSHOT-any-/webapp<br>2015-05-29 10:00:39.284:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /graphhopper-web-0.4-SNAPSHOT, did not find org.apache.jasper.servlet.JspServlet<br>2015-05-29 10:00:39.366:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/graphhopper-web-0.4-SNAPSHOT,file:/var/cache/jetty8/data/jetty-0.0.0.0-8080-graphhopper-web-0.4-SNAPSHOT.war-_graphhopper-web-0.4-SNAPSHOT-any-/webapp/},file:/var/lib/jetty8/webapps/graphhopper-web-0.4-SNAPSHOT.war<br>2015-05-29 10:00:39.367:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/graphhopper-web-0.4-SNAPSHOT,file:/var/cache/jetty8/data/jetty-0.0.0.0-8080-graphhopper-web-0.4-SNAPSHOT.war-_graphhopper-web-0.4-SNAPSHOT-any-/webapp/},file:/var/lib/jetty8/webapps/graphhopper-web-0.4-SNAPSHOT.war<br>2015-05-29 10:00:39,563 [main] INFO  com.graphhopper.GraphHopper - version 0.4|2015-01-12T12:08:48+0300 (3,9,3,2,2)<br>2015-05-29 10:00:39,567 [main] INFO  com.graphhopper.GraphHopper - graph LevelGraphStorage|foot|RAM_STORE|2D|NoExt|,,,,, details:edges:0(0), nodes:0(0), name: /(0), geo:0(0), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308<br>2015-05-29 10:00:39,585 [main] INFO  com.graphhopper.GraphHopper - start creating graph from /home/dr/graphhopper/data/RU-MOS.osm.pbf<br>2015-05-29 10:00:39,586 [main] INFO  com.graphhopper.GraphHopper - using LevelGraphStorage|foot|RAM_STORE|2D|NoExt|,,,,, memory:totalMB:38, usedMB:17<br>2015-05-29 10:01:36,052 [main] INFO  com.graphhopper.reader.OSMReader - 50 000 (preprocess), osmWayMap:8 totalMB:246, usedMB:152<br>2015-05-29 10:01:36,457 [main] INFO  com.graphhopper.reader.OSMReader - creating graph. Found nodes (pillar+tower):2 323 676, totalMB:246, usedMB:96<br>2015-05-29 10:01:59,742 [main] INFO  com.graphhopper.reader.OSMReader - 11 129 757, now parsing ways<br>2015-05-29 10:02:27,477 [main] INFO  com.graphhopper.reader.OSMReader - 12 640 549, now parsing relations<br>2015-05-29 10:02:27,559 [main] INFO  com.graphhopper.reader.OSMReader - finished way processing. nodes: 717337, osmIdMap.size:2326244, osmIdMap:32MB, nodeFlagsMap.size:2568, relFlagsMap.size:11 totalMB:354, usedMB:291<br>2015-05-29 10:02:27,576 [main] INFO  com.graphhopper.reader.OSMReader - time(pass1): 56 pass2: 51 total:107<br>2015-05-29 10:02:27,578 [main] INFO  com.graphhopper.GraphHopper - start finding subnetworks, totalMB:354, usedMB:291<br>2015-05-29 10:02:28,475 [main] INFO  com.graphhopper.routing.util.PrepareRoutingSubnetworks - optimize to remove subnetworks (5413), zero-degree-nodes (0), unvisited-dead-end-nodes(0), maxEdges/node (8)<br>2015-05-29 10:02:29,848 [main] INFO  com.graphhopper.GraphHopper - edges: 956287, nodes 700118, there were 5413 subnetworks. removed them => 17219 less nodes. Remaining subnetworks:2<br>2015-05-29 10:02:29,848 [main] INFO  com.graphhopper.GraphHopper - optimizing ... (totalMB:347, usedMB:181)<br>2015-05-29 10:02:29,849 [main] INFO  com.graphhopper.GraphHopper - finished optimize (totalMB:347, usedMB:181)<br>2015-05-29 10:02:29,855 [main] INFO  com.graphhopper.GraphHopper - calling prepare.doWork for foot ... (totalMB:347, usedMB:182)<br>2015-05-29 10:02:35,402 [main] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 0, updates:0, nodes: 700 118, shortcuts:0, dijkstras:3 749 152, t(dijk):2, t(period):0, t(lazy):0, t(neighbor):0, meanDegree:1, algo:10MB, totalMB:347, usedMB:242<br>2015-05-29 10:02:37,229 [main] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 140 020, updates:0, nodes: 560 098, shortcuts:5 520, dijkstras:3 846 398, t(dijk):0, t(period):0, t(lazy):0, t(neighbor):1, meanDegree:1, algo:10MB, totalMB:347, usedMB:252<br>2015-05-29 10:03:01,446 [main] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 280 040, updates:1, nodes: 420 078, shortcuts:93 870, dijkstras:7 594 725, t(dijk):20, t(period):20, t(lazy):0, t(neighbor):1, meanDegree:1, algo:10MB, totalMB:348, usedMB:260<br>2015-05-29 10:03:24,852 [main] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 420 060, updates:2, nodes: 280 058, shortcuts:226 007, dijkstras:10 731 996, t(dijk):19, t(period):17, t(lazy):0, t(neighbor):2, meanDegree:3, algo:10MB, totalMB:347, usedMB:240</blockquote><div><br></div><div>For fix this problem I have to restart Jetty manually. Sometimes I have to restart it multiple times because after first restarting I get the same problem as described above. </div></div></div>