I'm using Graphhopper
on my local to get driving direction between two latitude/longitude. Everything was fine and I was getting results in less than 100ms when I had loaded data for only one country. Now I've loaded the dataset to Asia
and the result has became too slow (In some cases more than 10s). And now for some routes I'm getting this error:
ERROR com.graphhopper.http.GHErrorHandler - GC overhead limit exceeded,
java.lang.OutOfMemoryError: GC overhead limit exceeded
My goal is to load all of the world data and get results in less than 1 second. What performance optimization I can do to achieve this goal ?
Currently I'm using a system with 8 GB RAM
. I'm open to increase the RAM if required to optimize the performance.