Posts: 267
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Runs out of RAM, has to pull plug

Fri Feb 17, 2017 7:53 am

It happens that I run out of RAM (Random Access Memory) when I use the web browser Chromium on e.g. Twitter. I have a RAM-indicator ("Resource monitor") and 1 GB RAM - 64 MB for GPU. First the Raspberry Pi becomes slow and then it freezes completely. I usually can't shut down the tab or the browser, because the GUI is very sluggish before it freezes completely. Then I have to pull the plug, and reboot. Is there a way to avoid this problem by e.g. reserving some RAM for the GUI so that you still can shut down programs to free RAM?
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80…

User avatar
Posts: 36150
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Runs out of RAM, has to pull plug

Fri Feb 17, 2017 10:32 am

Find the program that's getting RAM but not freeing it, that's your storage leak.

You've got the monitoring to see when the problem starts. You then need to run something like top or htop (when RAM gets to about 70% used) so you can see which task grows.

Web browsers tend to be memory hogs because they're built for 8GB or 16GB laptops where holding everything in RAM is not a big deal.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Runs out of RAM, has to pull plug

Fri Feb 17, 2017 10:39 am

Don't open so many tabs in Chrome - they are a huge resource hog, although I hear the latest version does use a bit less memory.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Return to “Raspbian”