-
Notifications
You must be signed in to change notification settings - Fork 281
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
Possible log playback memory leak #47
Comments
1 similar comment
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). I can confirm that this is a problem. |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). I don't see a memory leak when running just the server during log playback. |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). |
Original comment by Michael Carroll (Bitbucket: Michael Carroll, GitHub: mjcarroll). I believe that I have tracked the leaks down to some of the move constructors and move assignment operators in Running an
|
Original comment by Michael Carroll (Bitbucket: Michael Carroll, GitHub: mjcarroll). Fixing the ones mentioned above changes the heap allocation profile.
|
Original comment by Michael Carroll (Bitbucket: Michael Carroll, GitHub: mjcarroll). https://bitbucket.org/osrf/sdformat/pull-requests/641/fix-move-assignment-constructor-leaks |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). This issue is almost resolved. I believe @mjcarroll has one more leak based on this comment. |
Original comment by Michael Carroll (Bitbucket: Michael Carroll, GitHub: mjcarroll). This was the follow-up, all should be addressed now: https://bitbucket.org/osrf/sdformat/pull-requests/644 |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original report (archived issue) by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).
The original report had attachments: state.tlog
Description
Log playback consumes a lot of memory. It was observed that when playing back the attached
state.tlog
(2.7MB) recorded inlevels.sdf
world, memory usage grew consistently over time to roughly >300MB by the end of the playback (~46s sim time)Steps to Reproduce
state.tlog
(or any other log file), e.g.ign gazebo -v 4 -p [path_to_log_dir]
top
and observe memory usageExpected behavior:
It is expected that memory may grow as states get loaded but it should be at a slower pace. There should also be a cap on how much memory that can be consumed.
Actual behavior:
High memory usage ( >300MB over 46s sim time)
Reproduces how often:
All the time
Versions
ign-gazebo 2.0
Additional Information
Related subt issue. It was reported that playback used up all 32GB of RAM
The text was updated successfully, but these errors were encountered: