Re: [foxboro] AW51C RAM

There are several "simple-minded" approaches to checking for memory leaks.

You can use the following script fragment to get a "roughcut"

ps -el >f
sleep 60
ps -el >f1
diff f1 f


The ps command's -el option will list the overall memory size (SZ) column
for each process.

The diff command will compare the two outputs and show the ones that are
different. With a little effort, you can tell which commands have changed
their size in the 60 second interval. You'll also see programs that came and
went and any that changed for other reasons.


Here is the heading from the ps -el command:
ps -el | head -1
 F S   UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN TTY      TIME CMD

Here is an example run:

1AW51E# ps -el >f ; sleep 60 ; ps -el >f1 ; diff f1 f
7c7
<  8 O     0  4748  4732  0  41 20 61978ce0    105          pts/2    0:00 ps
---
>  8 O     0  4746  4732  0  41 20 61978ce0    105          pts/2    0:00 ps
47c47
<  8 S     0  1181  1115  0  41 20 60fe0018   2965 60fe01e8 ?        0:00
om_scann
---
>  8 R     0  1181  1115  0  41 20 60fe0018   2965          ?        0:00
om_scann
135c135
<  8 S     0  2147     1  0  47 20 6158ecd0   4362 613bf088 ?        0:00
hrfetch
---
>  8 S     0  2147     1  0  40 20 6158ecd0   4362 613bf088 ?        0:00
hrfetch

In this run you can see that the SZ column did not change, but other items
in the line did so you need to screen for that as you read.


Alternatively, you can download the utility 'top' from www.sunfreeware.com.
This utility gives you a display of each program running on your machine and
their memory allocations. You can watch those numbers over a period of time.


I like the first approach which you can vary to preserve the first grab and
compare to later grabs periodically.



Regards,
 
Alex Johnson
Invensys Systems, Inc.
10707 Haddington
Houston, TX 77043
713.722.2859 (voice)
713.722.2700 (operator)
713.932.0222 (fax)
ajohnson@xxxxxxxxxxx
For the latest information on ArchestrA, go to
http://www.invensys.com/Archestra.html.
 

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Omprakash
Sent: Wednesday, July 21, 2004 1:36 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] AW51C RAM 

Hi List
 
We have AW51C whose memory recently upgraded to 256 from 128 MB (from
two 64MB to four 64MB). Before upgrade there used to be at least 7or 8
MB free and very rare page outs.
 
Immediately after upgrade there used to be 110MB free. But after 2 weeks
period, now the free memory read 7 MB. "vmstat" showed no abnormal
process running. We have couple of user created C programs are running. 
 
Degradation of memory caused by leak? How to find which program is
causing the memory leak? Or other possible issues?
 
 
Regards
 
G.R.OMPRAKASH
Instrument & Control Engineer
Jubail Chemical Industries Company - JANA
PoBox:10661, Jubail Industrial City 31961
Jubail, Saudi Arabia
 
Phone +966 3 3585002 Ext 323
Fax     +966 3 3583192
Mobile +966 3 03965289
Email  omprakash@xxxxxxxxxxxx
Internet www.jana-ksa.com
 
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: