AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Memory leak in AIX 5.3?

    Posted Thu December 27, 2007 11:01 AM

    Originally posted by: SystemAdmin


    I have been monitoring an AIX 5.3 ML5 for the past feew days and have seen memory slowly decline.

    (e.g.) 180MB gone in two days

    Here are the processes that are running:

    UID PID PPID C STIME TTY TIME CMD
    root 1 0 0 09:40:56 - 0:00 /etc/init
    root 90236 110778 0 09:42:05 - 0:00 /usr/sbin/muxatmd
    root 94370 1 0 09:42:03 - 0:00 /usr/sbin/uprintfd
    root 98404 1 0 09:41:49 - 0:00 /usr/sbin/syncd 60
    root 106610 1 0 09:41:50 - 0:00 /usr/lib/errdemon
    root 110778 1 0 09:41:55 - 0:00 /usr/sbin/srcmstr
    root 135338 110778 0 09:42:14 - 0:00 /usr/sbin/rsct/bin/IBM.ERrmd
    root 143518 110778 0 09:42:02 - 0:00 /usr/sbin/syslogd
    root 151638 1 0 09:42:02 - 0:00 /usr/sbin/cron
    root 164038 110778 0 09:42:06 - 0:00 /usr/sbin/sshd
    root 168018 1 0 09:41:50 - 0:00 /usr/ccs/bin/shlap64
    root 172154 110778 0 09:41:59 - 0:00 /usr/sbin/xntpd
    root 200832 110778 0 09:42:01 - 0:00 /usr/sbin/inetd
    root 213110 110778 0 09:42:14 - 0:00 /usr/sbin/rsct/bin/IBM.AuditRMd
    root 221292 1 0 09:42:06 - 0:01 /usr/bin/xmwlm -L
    root 225394 110778 0 09:42:12 - 0:00 /usr/sbin/rsct/bin/IBM.ServiceRMd
    root 229490 1 0 09:42:20 vty0 0:00 /usr/sbin/getty /dev/console
    root 237716 110778 0 09:42:15 - 0:00 /usr/sbin/rsct/bin/IBM.CSMAgentRMd
    root 241782 1 0 09:42:06 lft0 0:00 /usr/sbin/getty /dev/lft0
    nagios 254090 1 0 09:42:07 - 0:00 /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
    root 258176 110778 0 09:42:09 - 0:00 /usr/sbin/rsct/bin/rmcd -a IBM.LPCommands -r
    root 282798 327708 0 10:57:25 pts/0 0:00 -bash
    root 311442 282798 0 10:59:10 pts/0 0:00 ps -ef
    root 327708 164038 0 10:57:20 - 0:00 sshd: root@pts/0
    Anyone else see this?

    Thanks!

    BTW: I used "svmon" to collect the statistics through cron

    DaveZ
    #AIX-Forum


  • 2.  Re: Memory leak in AIX 5.3?

    Posted Thu December 27, 2007 12:12 PM

    Originally posted by: hdkutz


    ... which is normal behaviour under AIX.
    Look at
    http://www.ibm.com/developerworks/aix/library/au-aixoptimization-memtun1
    to get Information how Memory is used in AIX.

    Cheers,
    ku
    #AIX-Forum


  • 3.  Re: Memory leak in AIX 5.3?

    Posted Thu December 27, 2007 12:28 PM

    Originally posted by: SystemAdmin


    Thanks for the info!

    However, why would the system, using the IBM OS default parameters, use so
    much memory?

    We're talking going from 900 MB free to 12MB free in 2 days.....

    This seems a bit too much to "counter attack" using tuning parameters.
    #AIX-Forum


  • 4.  Re: Memory leak in AIX 5.3?

    Posted Thu December 27, 2007 12:45 PM

    Originally posted by: orphy


    180M in 2 days doesn't seem to be a lot to me. I mean my Firefox is using almost 150M at this moment!

    Now there's always a chance that you have a memory leak but in general AIX's VMM is always trying to maximize your return by using as much memory that YOU/YOUR COMPANY PAID FOR as possibly, mostly in the form of filesystem caching. The article that ku posted is quite good. In fact, the entire series is.

    I recall seeing a Techdoc from IBM that has some ideas you can use to catch memory leak programs. You might want to look for it and give those ideas a try.
    Orphy
    #AIX-Forum


  • 5.  Re: Memory leak in AIX 5.3?

    Posted Thu December 27, 2007 12:53 PM

    Originally posted by: SystemAdmin


    Thanks!

    I'll try and see if I can apply some of the tuning techniques from the article.
    #AIX-Forum