Memory leak?
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.0.12
- OS version: OS X Sierra 10.12.1
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window) com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
Detailed steps to reproduce the problem:
- Scrollback saving is enabled for saving all output.
- Have multiple iTerm2 windows / tabs open for a long time, containing a lot of history.
- Use Clear scrollback buffer on every tab.
- Close all windows / tabs.
What happened:
iTerm2 memory usage is only a little less than peak usage: 1.6 GB vs 1.7 GB peak.
What should have happened:
iTerm2 should use the about the same amount of memory as in startup (around 50MB).
My educated guess is that this is related to the scrollback buffer, and that the memory allocations for it are not freed properly during Clear scrollback buffer / window closing events. There might be other reasons for the memory bloat.