mob-i-l
Posts: 204
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook 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?
Raspberry Pi0&1A&1B2&1B+&2B&3B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… http://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://www.youtube.com/MOBiL4u/ https://twitter.com/mobluse/

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

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.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 17882
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.
Please direct all questions to the forum, I do not do support via PM.

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 29 guests