LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack 12 + Firefox + memory problem (https://www.linuxquestions.org/questions/slackware-14/slack-12-firefox-memory-problem-672992/)

raypen 09-28-2008 10:15 PM

Slack 12 + Firefox + memory problem
 
Having what appears to be memory problems when using Firefox on
my Slackware 12.0 system. Certain web sites with lots of graphics
such as news and movie sites take a long time to load and then
stop and hang. Commensurate with the hang is a lot of disk
activity as if RAM is being offloaded to swap. However it never
completes.

I have been using Firefox 3.0.1 and have changed back to the
2.0.0.4 version supplied with Slackware 12.0 after reading that
Firefox 3.0 is a memory hog. Unfortunately, the problem persists.

While my 256K of RAM is not large by today's standards, it has always
been sufficient. In fact, the Windows version of Firefox (v 2.0.0.17)
has no trouble loading the aforementioned web pages completely on
a Win98SE system on the same machine.

I have also tried the SeaMonkey browser included with Slack 12 with
the same result.

I suppose I could have picked up a virus or some sort of malware but
have no way of determining what the problem is on my system. There
also may be a problem with virtual memory.

Can anyone suggest how I might approach a solution to this problem?

H_TeXMeX_H 09-29-2008 01:53 AM

What plugins are you using for FF under Linux ? Anything to view movies ?

raypen 09-29-2008 09:13 AM

Only plugin is Flash 9

keefaz 09-29-2008 09:48 AM

Did you try to clear the firefox cache (edit > preferences > advanced)
Maybe a profile problem ?
mv ~/.mozilla ~/.mozilla.bak
mv ~/.firefox ~/.firefox.bak
firefox &

adriv 09-29-2008 10:38 AM

FF3.* uses less memory than FF2.*...
How is Konqueror behaving?

raypen 09-29-2008 02:15 PM

Clearing cache helped a little; at least the page loads completely,
but disk thrashing still occurring. Pretty sure not a profile problem.
Even though page loads completely, further navigation very slow and
disk thrashing intensifies even if I am just closing the browser.

It's surprising that FF2 would be more of a memory hog than FF3.
Konqueror and SeaMonkey exhibit similar slowness.

It appears that the only solution is more RAM, unless there are
any other ideas?

keefaz 09-29-2008 02:21 PM

Could you post output with: free -m and df -h ?

adriv 09-29-2008 02:26 PM

How much RAM do you have?

Edit:
sorry, hadn't read keefaz' reply.

raypen 09-29-2008 03:51 PM

256K RAM

free-m
Code:

            total      used      free    shared    buffers    cached
Mem:          218        215          3          0        21        95
-/+ buffers/cache:        98        119
Swap:            0          0          0

df -h
Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              20G  4.0G  15G  22% /
/dev/hda1            9.8G  3.9G  6.0G  40% /fat32


adriv 09-29-2008 04:00 PM

You don't have a swap partition?
Probably that's the reason of the slow response.
You might add some extra RAM, but I think the lack of swap (with this amount of RAM) is the culprit.

keefaz 09-29-2008 04:20 PM

Yes, you need a swap partition, say a 500-700MB partition for swap
BTW you have 256M of ram memory not 256k(!)

Bruce Hill 09-29-2008 04:56 PM

I'll wager /dev/hda2 is swap.

raypen 09-29-2008 05:04 PM

Yea, sorry, it's 256M RAM and 900M swap.

Trouble affects both FF and SeaMonkey even after
cache is cleared in both (i.e. both browsers are
now choking and hanging on graphics heavy web pages)

Tried to do a free -m after web page loaded but could
not get it to load completely again.

Hang occurs as status bar indicates either:

"transferring data from www......" or

"waiting for data from www......."

Activity indicator and progress bars just freeze.

adriv 09-29-2008 05:15 PM

Quote:

Originally Posted by Bruce Hill (Post 3295374)
I'll wager /dev/hda2 is swap.

Then how do you explain this:
Code:

Swap:            0          0          0
:scratch:

T3slider 09-29-2008 05:18 PM

Your swap partition is obviously not active. You should format the partition with mkswap, if necessary, and then activate it with swapon (both as root). There should be a line like the following in your /etc/fstab (assuming your swap partition is /dev/hda2):
Code:

/dev/hda2        swap            swap        defaults        0  0


All times are GMT -5. The time now is 02:00 PM.