High memory usage?

1,719 views
Skip to first unread message

Charles Sprickman

unread,
Jan 19, 2022, 7:08:10 PM1/19/22
to iterm2-discuss
I found iterm using slightly more than Safari today, just under 3GB.

This seems a bit high for a terminal app…

I have 2 local tabs in the hotkey window, then 4 other windows, 3 of which are all tmux and have about 8 tabs each.

Here’s a summary from sampling:

Analysis of sampling iTerm2 (pid 32678) every 1 millisecond
Process:         iTerm2 [32678]
Path:            /Applications/iTerm.app/Contents/MacOS/iTerm2
Load Address:    0x10af47000
Identifier:      com.googlecode.iterm2
Version:         3.5.0beta4 (3.5.0beta4)
Code Type:       X86-64
Parent Process:  ??? [1]

Date/Time:       2022-01-19 18:55:30.093 -0500
Launch Time:     2022-01-11 21:06:54.496 -0500
OS Version:      Mac OS X 10.14.6 (18G9323)
Report Version:  7
Analysis Tool:   /usr/bin/sample

Physical footprint:         2.9G
Physical footprint (peak):  3.0G
----

Any ideas on what I can do to keep this under 1GB or so? Laptop only has 16GB, so things are a bit tight with a few browsers running.

Thanks,

Charles

Adrian Bool

unread,
Jan 20, 2022, 5:03:25 PM1/20/22
to iterm2-...@googlegroups.com
Hi Charles,

I see only around 500MB of RAM being used by iTerm (3.4.12) on my machine.

For the following profile settings,


Could you have selected Unlimited Scrollback within your profile; perhaps leading to the high RAM usage you're seeing?

(Best to check both your default and tmux profiles...)

Kind regards,

aid

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/8DF0C738-D8B2-44F8-90FD-336E6E785A64%40morefoo.com.

George Nachman

unread,
Jan 24, 2022, 12:10:49 AM1/24/22
to iterm2-...@googlegroups.com
Unlimited scroll back is the most common reason for memory growth but of course leaks are always possible. Please follow these steps to get diagnostic info on your memory usage and file a task:


I’m woefully behind on tasks right now because of a giant refactor, so it may be some time before I can look at it.

--

Charles Sprickman

unread,
Jan 28, 2022, 2:17:47 AM1/28/22
to iterm2-discuss
Thanks for the info!

I just checked and my tmux profile had scrollback set to 30K lines. Not sure if that’s huge or not?

My “Default” profile had unlimited (which I’ve changed to 30K lines), but I also don’t usually have any active windows/tabs for that profile.

After making sure no profiles had unlimited, I restarted iterm and was able to hit about 2.5GB after a few days.

Before I go exploring and open a task, can you confirm whether my large (but not unlimited) scrollback is likely the issue?

Thanks,

Charles

George Nachman

unread,
Feb 3, 2022, 8:39:41 PM2/3/22
to iterm2-...@googlegroups.com
No, it’s not your scroll back. Please file an issue and if you can get a memgraph that would be really helpful. Instructions are here: https://gitlab.com/gnachman/iterm2/-/wikis/Heapshot

Reply all
Reply to author
Forward
0 new messages