I have been tasked with checking out this service with the limitation that I cannot use docker
as such I’ve been following the the steps to build from source here
So far things have been going fine I’ve been able to get the service to run if I run the tomcat 8 server in the foreground without errors. However when I try to start the server as a background service I get a
ERROR [routing.RoutingProfileManager] - java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
I have set up my environment using the following env values
JAVA_OPTS= -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1000M -Xmx2000M -XX:MaxMetaspaceSize=50m
my pbf file is only 311 mb
I have played with the java heap sizes to see if anything would change but its always the same outcome.
At this point I’m at a loss and hoping one of you fine folks will be able to point me in the right direction
I am only using two profiles
I’m working in a windows environment
I have increased heap size to 5g
I am deleting the graphs folder from the server with every attempt
For anyone having a similar issue using windows service tom cat you have to set the heap size using the “tomcat8w.exe” configuration utility the env scripts will be ignored completely when running as a windows service.