Re: [expert] Weird Mozilla & memory problem

2003-01-28 Thread kwan
On Mon, 27 Jan 2003, Jack Coates wrote:

> Actually, it's capital M. One side note about 'top' -- X will appear to
> be quite large because it reports that it's using all the RAM on your
> video card too. Subtract the card's RAM and you'll get actual usage. For
> instance, looking at my 16M Voodoo 3 AGP:
> 
>  2605 root  16   0 97072  27M  4848 R 1.9  3.6  47:07 X
> 
> minus 16M = 11M actual memory usage.

Yes, it is captial. 'm' will turn off the memory display!

You can also press the 'f' (and 'F') to add/subtract different columns
if you wanted a more detail picture of memory.

Somewhat interesting note:
I used to work at a company that used a lot of DOS based 3270 emulators
scattered throughout the buildings. During some troubleshooting of the
Token-Ring network, I had set up a few Linux boxes with some network
monitoring software to help locate an intermittent beaconing problem.
Unfortunately, every once in a while someone would wander by and reset
the machine in hopes of getting back the 3270 emulator. Or they'd try to
login, get rejected, then open up a trouble ticket. I started
launching 'top' on these machines so that they'd not touch. It worked :).


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Weird Mozilla & memory problem

2003-01-27 Thread Jack Coates
On Mon, 2003-01-27 at 15:35, [EMAIL PROTECTED] wrote:
> On Mon, 27 Jan 2003, Daniel Axtell wrote:
> 

> In 'top' you can press 'm' to sort by memory usage. This will show the
> total memory that the processes are using. This includes shared
> resources so the totalling the RSS column will give a number much higher
> than your actual, installed memory.

Actually, it's capital M. One side note about 'top' -- X will appear to
be quite large because it reports that it's using all the RAM on your
video card too. Subtract the card's RAM and you'll get actual usage. For
instance, looking at my 16M Voodoo 3 AGP:

 2605 root  16   0 97072  27M  4848 R 1.9  3.6  47:07 X

minus 16M = 11M actual memory usage.


-- 
Jack Coates
Monkeynoodle: A Scientific Venture...



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Weird Mozilla & memory problem

2003-01-27 Thread kwan
On Mon, 27 Jan 2003, Daniel Axtell wrote:

> Thanks.  This shows that Mozilla is running out of memory.  When I tried it 
> with a new .mozilla folder, it loads fine.  

In this case you can just copy the bookmarks.html file from the old to
the new. You'll also need to reset your homepage. 
> 
> What I've noticed from top is that memory usage keeps climbing.  I have 512 
> megs; how can I find out which process is causing this?  Top shows the total 
> usage climbing, while individual processes seem to be unchanging.
> 
> Any ideas?

Memory usage is not necessarily a bad thing. Linux will use all
available memory to buffer disk access. If an application requires the
memory, Linux will free it from buffers to make it accessible to the
application (i.e., you have 512M so Linux makes use of all of it). 

In 'top' you can press 'm' to sort by memory usage. This will show the
total memory that the processes are using. This includes shared
resources so the totalling the RSS column will give a number much higher
than your actual, installed memory.

The buff and cached numbers reflect how much memory Linux is using to
buffer disk access.  If you launch an application you may see this
number decrease or increase, depending on the state of your memory.

Swap usage is also not a bad thing. For example, say you have OpenOffice
loaded but have not used the application in several hours. The system
will swap the OpenOffice program to disk to make use of the physical RAM
for buffers/cache or application memory. This is better than keeping a
chunk of memory used for nothing.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Weird Mozilla & memory problem

2003-01-27 Thread Daniel Axtell
> You can also try strace'ing the browser by running:
>strace mozilla 2>&1 |tee outfile
>
> from a shell. This will produce a lot of output but the last few pages
> might give an idea of what's going wrong. This helped me find a problem
> with the sound server that was hanging mozilla. Yup, Flash was trying to
> initialize the sound server but I had disabled it a few days earlier.

Thanks.  This shows that Mozilla is running out of memory.  When I tried it 
with a new .mozilla folder, it loads fine.  

What I've noticed from top is that memory usage keeps climbing.  I have 512 
megs; how can I find out which process is causing this?  Top shows the total 
usage climbing, while individual processes seem to be unchanging.

Any ideas?

Thanks,
Dan


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com