SUMMARY: Urgent: memory disappearing

From: Angel Lopez Luengo (alopezlu@asnefequifax.es)
Date: Mon Jun 14 1999 - 03:15:24 CDT


Hi to all,

    thanks to all for your quick responses,

    the problem was related with an application running under Lotus
Notes. Since we stopped it, free memory is now stabilised.

    Bellow are the responses that I have received.

Greetings,

    Angel Lopez Luengo

================================================
Casper Dik <casper@holland.sun.com>

The solaris FAQ says:

5.72) After the system has been up for a while, freemem is only a couple
of MB.

    This is normal. When the system operates, it will gather more and
    more cached data. E.g., every file ever read will be cached until
    the memory is needed for some other purpose.

    Free memory is wasted memory.

    --- end of excerpt from the FAQ

Questions marked with a * or + have been changed or added since
the FAQ was last posted

The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>

================================================
"Johannessen, Erik" <ejohannessen@Carlson.com>

I would first check how much memory is being used for the buffer cache.
Solaris will happily it your memory down to about 60mb with file buffer
cache. This is very normal. The easiest way to check this is to download
the
memory toolkit from
ftp://playground.sun.com/pub/memtool/RMCmem3.7.3.tar.Z

After installing it, run the command "prtmem" and you can see where all
your
memory is going.

Erik Johannessen
CSS Technology - Systems Management Services
(612)212-8807

================================================
"Reichert, Alan" <aareichert@tasc.com>

What is the output of top? Memory might be getting allocated to
buffers, and not really under "someone's" use.

- Alan

================================================
"John Clinton" <jclinton@ccci.com>

I would download top from sunfreeware.com, install it, and take a look
what
is using the memory. My guess it your tmp/swap is being used up by an
errant
application.

Top can sort your processes by cpu util, memory size, etc. A very handy

tool!

Regards,
John

================================================
"Leonard, Roger" <rleonard@cvty.com>

try /usr/ucb/ps aux and see who is the culprit.

================================================
"Mike Allmen (rp1251)" <rp1251@email.sps.mot.com>

I don't know that I can be much help, but I did have a similar problem.

At the time, we had a UE450 with 1GB RAM, running Solaris 2.5.1, and
Lotus
Notes 4.6.1c.
We had the same problem where the notes processes seemed to run away
with
all of the memory.
It basically used everything it could get and the loads shot up on all
processes.

To remedy the situation in our case, I backed up my notes data, did a
clean
install of Solaris 2.6,
a clean install of Lotus Notes 4.6.2a, and restored the data directory.
Since then, we have had no issues
with runaway memory usage on the system.

Unfortunately, we were never able to determine a "cause" for this
problem.
Lotus Notes is not the greatest
program out there IMHO, and I chalk it up to the unpredictable nature of

Lotus Notes. BTW, we have other Solaris servers running 4.6.4 with no
problems, smaller configurations though, and our plan is to upgrade the
450
to 4.6.4. Based on your experiences, I hope we are not going to revisit

this problem again.

Mike

================================================
Somesh Nagthan <dpurple@m-net.arbornet.org>

Angel,

The figure that u are getting from vmstat is the no. of pages on the
free list but not the actual memory that is free...this is a misleading
figure.
this has to do with the way memory is managed in Solaris. Please see
infodoc no. 14136 which i have attached below.

the real criteria for memory shortage wud be the sr column which is
always zero....which means u are ok.

hope this helps.
rgds,
somesh.

================================================
"Ram Kumar" <ramk1@excite.com>

hi

do it like this to find out which process(es) eat away memory....

put the following script in cron and collect the statistics and see
which
process grows with time...

ps -ae -o user,pid,pcpu,pmem,vsz,args > "file"

hope this helps

cheers
ram

================================================
"Morel, Joe" <Joe.Morel@disney.com>

Angel,

I use the following methods to see where my
memory is:

1. As root I use the pmap command to give
memory usage for each process and even splits
it out to subprocesses.

/usr/proc/bin/pmap -r /proc/* > mymemory

I them do a more on mymenory and find the
heaviest user.

Do a man on pmap to educate yourself.

2. ps -ly will also show the size (SZ) and resident (RSS) memory
columns for each process.

3. Now the hard part, finding out if it's the user (owner) of the
process causing the problem, or the application itself.

Have fun,

Joe

================================================
"Anit G. Lulla" <AnitGL@ilx.com>

This is normal. Memory is used for file-system buffering.

As SUN always says, free memory is wasted memory.

================================================
Alvaro Coronel - CECAL <acoronel@fing.edu.uy>

Los comandos top, ps o proctool no muestran cual es ese proceso glotón?

Buena suerte.

--------------------------------------------------
            Alvaro Coronel Ligrone
            Facultad de Ingenieria
               Centro de Calculo
 Universidad de la Republica Oriental del Uruguay
             acoronel@fing.edu.uy
--------------------------------------------------
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now? [ OK ]

================================================
Rashad.Al-Yawir@ii.uni.wroc.pl

Hi,
 You can use top to see which process use the memory or ps as follow
ps -ef -o user,pid,rss,vsz,comm | sort -nr +2 | more
The third and fourth column is the real a virtual memory usage.

Best regards
Rashad



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:21 CDT