-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Slowing down of planning performance after prolonged OTP2 execution #3273
Comments
Based on this discussion this morning I installed jvmtop, the HPCUR is constantly cycling between 20GB to 82GB in a period of 50-55s on the instance that is running for 2 days. PID MAIN-CLASS HPCUR HPMAX NHCUR NHMAX CPU GC VM USERNAME #T DL The instance that is running for 2 hours now is constantly cycling the HPCUR between 8GB to 70GB in approximately 4 minutes. If you want run to run jvmtop on your own machine patric-r/jvmtop#109 (comment) is a handy comment (the master version is not supporting java 11). |
I see that you are running with Running a graph built using the provided files in IntelliJ, I see 3.5G of used memory after about 45 minutes. This is the realtime feeds provided, but not running any requests against the OTP instance. (Currently using I do see the number of
|
The machines do have 126GB of RAM available, that could be a reason why garbage collection is done less often. Is that 3.5G with complete functionality (including streetGraph) or is the 3.5G only related to the realtime part? |
The 3.5G is with a graph built using |
@sven4all Do you still see the issue using the newest |
The performance is fine now after longer time, I have to investigate the memory further. It's still using a lot of memory but I also provide that. It doens't seem to run out of memory. |
I will close this issue now, since it seems that the memory leak is fixed. If you @sven4all find the memory usage to be too greedy or have any other problems with it, then please do not hesitate to reopen the issue. |
Expected behavior
I expect the performance of planning with OTP more or less the same wether you run it for 1 hour in a row or 48 hours. I also expect to have a more or less stable memory usage (anyway not forever increasing).
Observed behavior
The performance of planning is slowing down, that is also reflected in the debugOutput.
This is the output for planning exactly the same trip on a OTP instance (two different machines with exactly the same hardware configuration) that is running for 5 minutes
and this is the result for a machine that is running for approximately two days.
When changing the requested date in the request from today (3 december), to (7 december Monday with more or less the same schedule as today). The performance of the machine that is running for 5 minutes is more or less the same as for the machine that is running for almost two days.
5 minutes:
2 days:
The memory consumption of the machine that is running for 2 days is 4gb more than on the machine that is running for 5 minutes, but it happened multiple times that it keeped increasing until there was no more memory available.
Version of OTP used (exact commit hash or JAR name)
https://repo1.maven.org/maven2/org/opentripplanner/otp/2.0.0/otp-2.0.0-shaded.jar
Data sets in use (links to GTFS and OSM PBF files)
https://data.moopmobility.nl/gtfs/new/
http://download.geofabrik.de/europe/netherlands-latest.osm.pbf
gtfs-rt config in router-config en build-config
Command line used to start OTP
/usr/bin/java -Djava.io.tmpdir= -XX:NewRatio=1 -Xms124G -Xmx124G -server -jar /home/otp/otp-2.x-SNAPSHOT-shaded.jar --load /home/otp/graphBuildFiles/newest/graphs --serve --maxThreads 16
Router config and graph build config JSON
https://gist.github.com/sven4all/08e46bdacc32699a91684d72638bef7e
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: