IlyaM
Posts: 5
Joined: Thu Nov 23, 2017 8:01 pm

Problem with launching web browser on Pi Model B

Thu Nov 23, 2017 8:08 pm

I got RPi Model B (2011) and installed Raspbian. Gonna use it for localhost with node js. After fist boot I updated my firmware. When I tried to launch some web browser (Chromium, Firefox, Surf, Epiphany) my CPU is equal 100% and I wait about 5 minutes to see browser window and Connecting message. How to speed up browser?

First of all, I thought the problem with SD card, I tried several different, the same behaviour

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

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 5:15 am

IlyaM wrote:
Thu Nov 23, 2017 8:08 pm
How to speed up browser?
How much memory does your ancient model B have? Originals RPi1Bs were 256MB. Later model RPi1Bs were 512MB.

https://github.com/pimoroni/RPi.version ... version.py

Lack of memory means it's not possible to run any web browser other than Midori (and even that is horrible) as you'll push the system into swapping.

So the only practical solution is a shiny new RPi 3B.
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.

IlyaM
Posts: 5
Joined: Thu Nov 23, 2017 8:01 pm

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 7:19 am

Thanks for your reply. Indeed, my raspberry has 256Mb only of ram. It describes why web browser is starting so slow. How do you think if I run a python’s windowed app which displays some data as text and some pics, it would work better? And if to compare with zero W, will I have the same problems?

I’m gonna use it with smart mirror and designed it to display data via web browser and nodejs. As alternative way to use python or x11

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

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 7:26 am

Look at stuff that's running on your small memory RPi? Do you need all of those services? Do you need things like the GUI clock widget (for example)? Everything that runs as a service has a memory footprint.

Python with tkinter is a good way to get started building your own GUIs (although it's memory footprint is way bigger than it should be). Compiled programming languages are always going to have a smaller footprint than a scripted language.

To run a magic mirror you're going to need a new RPi with more than 256MB as the picamera support costs 128MB.
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.

IlyaM
Posts: 5
Joined: Thu Nov 23, 2017 8:01 pm

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 7:41 am

Thank you, DougieLawson!

Pi zero W is enough for this case? It has 512 Mb

sora03
Posts: 118
Joined: Mon Dec 29, 2014 4:11 pm

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 10:15 am

this may be irrelevant but you can try to use a text based browser like lynx,elinks or links.

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

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 12:33 pm

sora03 wrote:
Fri Nov 24, 2017 10:15 am
this may be irrelevant but you can try to use a text based browser like lynx,elinks or links.
It's 100% irrelevant for a "magic mirror" graphics project using a browser in kiosk mode.
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.

IlyaM
Posts: 5
Joined: Thu Nov 23, 2017 8:01 pm

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 12:43 pm

sora03 wrote:
Fri Nov 24, 2017 10:15 am
this may be irrelevant but you can try to use a text based browser like lynx,elinks or links.
DougieLawson is right, text based browsers are not comfortable for my purpose. I will try to launch some python "large" app to find out how it would be useful and performed. If everything would be ok, it wouldn't be a problem to rewrite my app to python

SurferTim
Posts: 1100
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 1:56 pm

If you are running the server and client on the same machine, and it has less than 1 GB RAM, it is probably running out of memory and going into disk swapping.

Have you tried accessing the server from another computer?

IlyaM
Posts: 5
Joined: Thu Nov 23, 2017 8:01 pm

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 2:00 pm

SurferTim wrote:
Fri Nov 24, 2017 1:56 pm
If you are running the server and client on the same machine, and it has less than 1 GB RAM, it is probably running out of memory and going into disk swapping.

Have you tried accessing the server from another computer?
The problem is I can't start browser normally. Even if I open some web page, i.e. google.com, it's starting for ages

SurferTim
Posts: 1100
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Problem with launching web browser on Pi Model B

Fri Nov 24, 2017 2:03 pm

The server uses RAM, even if not being accessed. The web browser uses RAM, even if it isn't downloading anything.

Open a terminal when you have the web browser open and run this.

Code: Select all

free -h

Return to “Troubleshooting”

Who is online

Users browsing this forum: No registered users and 64 guests