-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very slow geocoding after following installation instructions #258
Comments
Try an SSD? |
Ok! $ time curl -s "http://localhost:2322/api?q=berlin" > /dev/null $ time curl -s "http://localhost:2322/api?q=berlin&lon=10&lat=52" > /dev/null $ time curl -s "http://localhost:2322/reverse?lon=10&lat=52" > /dev/null $ time curl -s "http://localhost:2322/api?q=berlin&lang=it" > /dev/null $ time curl -s "http://localhost:2322/api?q=berlin&limit=2" > /dev/null Still all at least 3 seconds. The long ones got more than twice as fast but still ... 45s? (For the record, I always restarted photon between each query to make sure there is no immediate hot cache. I did wait a sufficient amount of time before each query.) |
What is your RAM setting for ElasticSearch and/or photon? Try to reduce the -Xmx setting so that more off-heap memory is available for ElasticSearch. |
I run I now tried Guess I am too spoiled by graphhopper's performance out of the box... Here is a log if that helps finding the problem?
|
Can you try -Xms12g -Xmx12g? And then run 3 warm up queries and after this it should be fine. |
Ah, seems like patience is key. Thanks! I managed to get ~25 queries/s by simply running through addresses of a specific city and letting it start slow. Does it start caching in some kind of hierarchy? |
Well, it did not become super fast, but simple "warming" resolved the very slow queries so I am closing this. |
I meet this issue too (#726) The strange thing is that for a same request it can take 2sec, 200ms or 90sec. |
I followed https://github.com/komoot/photon#installation
My system's decent: 3rd generation i5, 20G RAM, the photon_data directory is on a HDD that hdparm reads about 200MB/s on.
But the queries take many seconds to return. 3 seconds seems to be the minimum.
How can I get reasonably fast results?
The text was updated successfully, but these errors were encountered: