Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Memory leak on macOS?

Open MuhammedKpln opened this issue 3 years ago • 11 comments

Describe the bug

Memory usage get higher and higher after using 2-3 days in a row, even after you kill the process inside terminal.

To Reproduce

No response

Expected behaviour

No response

Screenshots

No response

Operating System

MacOS

OS Version

12.1

Additional context

No response

MuhammedKpln avatar Feb 05 '22 17:02 MuhammedKpln

From @kodeninja via Discord: https://discord.com/channels/851854972600451112/851854972600451115/950912557504430140

Hey, everyone. Been using warp for a month or so now. Question about its memory usage. Just today I noticed that even though I only have one window opened, warp's using 1.8G of memory!

Is that normal/expected? I'm on an Apple M1 (Monterey), and the latest warp.

Note: This seems to happen when the Warp app has been left open for multiple days.

Checking htop it seems to have been running since March 04th.

elviskahoro avatar Mar 09 '22 18:03 elviskahoro

I am also having this issue. I have MacBook Air M1 16GB, when I keep Warp running for more than one day, memory usage reaches 3~4GB.

hathamneh avatar Mar 17 '22 08:03 hathamneh

Same story on MacBook Pro m1 pro 16gb ram macOS 12.3

theramzay avatar Apr 20 '22 17:04 theramzay

image MacBook Pro 2018 Intel Core i5 16gb macOS 12.3.1

dupu222 avatar May 07 '22 02:05 dupu222

MacBook Pro (16-inch, 2019)

Having the same issue as well, basically caused by long-running commands (e.g. compiling output from web pack, compiling output from storybook)

I only have 2 tabs:

Screenshot 2022-05-17 at 11 25 07

luizfonseca avatar May 17 '22 09:05 luizfonseca

Does CMD-K help?

elviskahoro avatar May 30 '22 20:05 elviskahoro

I had the same issue. I had a psql session running for several days and the memory usage hit 3GB.

acarl005 avatar Jun 01 '22 05:06 acarl005

Does CMD-K help?

This instantly reduced memory usage for me from >4GB to 200MB

mowchan avatar Jun 16 '22 18:06 mowchan

Does CMD-K help?

Helped here too. Looks like Warp need a better way to manage history without keeping everything in memory.

gawry avatar Jul 17 '22 00:07 gawry

If my understanding right, warp is written in Rust which is less likely have memory leak issue. But, ... Hopefully this can be addressed soon!

silenceleaf avatar Jul 29 '22 21:07 silenceleaf

A late follow up because I am in a situation that CMD+K does not help(much)

This is what I got before taking any actions with 3 tabs and a couple of history:

Screen Shot 2022-09-16 at 09 35 18

After CMD+K, open a new tab and close all previous ones, I still got >4GB , although reduced memory footprint:

Screen Shot 2022-09-16 at 09 36 47

Now, if CMD+Q to quit Warp and open it again, I got <200MB memory usage: Screen Shot 2022-09-16 at 09 40 09


One potential reason I could think of is that, I had opened other tabs, performing some tasks and then closed them, but warp keeps the history of already-closed tabs as well and there is no way( I know) to clear the history for those closed tabs.

gnattu avatar Sep 16 '22 01:09 gnattu

@MuhammedKpln I'm Danny, the Support Engineer at Warp. We've made a number of performance improvements, are you still experiencing this issue?

dannyneira avatar Oct 04 '22 20:10 dannyneira

On my side I haven't seen it crossing the GB mark anymore and I have been running it with a lot of tabs/commands/history

Screenshot 2022-10-06 at 11 09 53

luizfonseca avatar Oct 06 '22 09:10 luizfonseca

@MuhammedKpln I'm Danny, the Support Engineer at Warp. We've made a number of performance improvements, are you still experiencing this issue?

It has improved a lot since then, 400mb is the maximum usage what i have been seen for the last weeks.

MuhammedKpln avatar Oct 06 '22 09:10 MuhammedKpln

From my mac: Screenshot 2022-11-24 at 17 57 40

800MB

nguyenlamzx avatar Nov 24 '22 13:11 nguyenlamzx

Same result here, single tab, single window, memory usage grows ~1GB every 36 hours (caught it at around the 4GB utilization mark) and goes back down to ~200MB after a quit and re-open.

16-inch M1 Pro Macbook Pro, 16GB RAM, Ventura 13.0.1 zsh 5.8.1 (x86_64-apple-darwin22.0) Warp v0.2022.11.14.14.55.stable_01

cvanhorn09 avatar Nov 30 '22 12:11 cvanhorn09

I use Warp usually with 2-3 tabs in a single window, only the first tab uses split panes. The RAM usage ramps up pretty quickly for me, having to restart Warp once a week...

5GB with 2 tabs (3 panes in total) Screenshot 2022-12-10 at 08 01 50

When trying out the Cmd + K shortcut, it first hangs for ~2 minutes for me: Screenshot 2022-12-10 at 08 02 44

And then reduces memory usage by roughly half Screenshot 2022-12-10 at 08 09 13

Warp v0.2022.10.11.08.13.stable_01 (I can't believe I can't copy this from Settings > About 🫠) MacOS 12.5.1 (MacBook Pro 13-inch 2019, 16GB RAM, 2,8 GHz Quad-Core Intel Core i7)

andreasvirkus avatar Dec 10 '22 06:12 andreasvirkus

We rolled out a significant improvement for memory usage in the 2022.12.06 release; please update to the latest version (currently 2022.12.13) and let me know how things are!

vorporeal avatar Dec 20 '22 18:12 vorporeal

Things have been significantly better for me! Currently on 2022.12.13 and haven't had to restart a single time 😍

andreasvirkus avatar Jan 05 '23 10:01 andreasvirkus

Awesome! I'm going to close this issue for now; please re-open it if necessary!

vorporeal avatar Jan 05 '23 17:01 vorporeal

I am still seeing a large amount of memory usage. Cmd-K helps somewhat. I have around 14 tabs open, most of them tailing logs on various systems, and it doesn't take long to bring my 8 core 64GB MacBook Pro to a crawl. I don't believe this is entirely memory related as Warp has 60+ threads active.

donCarlosOne avatar Feb 13 '23 09:02 donCarlosOne