This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memory Creep

This is about a home system ASL v6 with the home user bundle patched to current.

I’ve noticed over the last few months that my memory usage keeps creeping up. From a fresh boot, the system will use 250mgs for about 3 days and then slowly creep up until it starts regularly using the swap space and consuming all 1g of memory. This is a home system. The box isn’t doing very much work, it ran for almost a year without consuming more then 300mgs. 

What does everyone else think? Anybody seen memory issues like this before?

Thanks


This thread was automatically locked due to age.
Parents Reply Children
  • Update:

    Here is the process list. I've edited the below data. removing small items and anything that appears normal. 

    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    root      2802  0.3  1.6 19484 14868 ?       S     2005  48:46 /usr/bin/dns_resolver
    root      2826  1.5  1.1 13408 10440 ?       S     2005 215:24 /usr/bin/confd 127.0.0.1:16498 /etc/confd/dispatcher.xml /etc/confd/ /etc/confd/error_codes.xml
    root      2830  0.0  1.6 20044 15192 ?       S     2005   7:34 /usr/bin/v4watcher
    root      2976  0.0  4.3 44700 39204 ?       S     2005   0:39 /var/mdw/mdw_daemon.pl
    root      3007  0.7  1.4 18044 13388 ?       S     2005 100:45 /usr/local/bin/selfmonng.pl
    root      3298  0.0  1.1 15648 10852 ?       Ss    2005   0:19 /var/aua/aua.bin /etc/wfe/conf/aua_main_config.ini
    root     22375  0.0  0.0     0    0 ?        Z    02:53   0:00  \_ [aua.bin] 
    root      3816  0.1 14.2 132288 128752 ?     Ss    2005  22:16 /sbin/snort_inline -D -Q -c /etc/snort/snort.conf
    chroot    4145  0.7 30.1 283908 272908 ?     S     2005 105:36  \_ (squid) -sYD
    root     30223  1.0  1.6 3057040 14576 ?     S    Jan03  20:27 /usr/bin/hyperdyper --logmask=127
    chroot   30349  0.0  1.8 52272 16596 ?       S    Jan03   1:05 /usr/sbin/clamd
    root     30366  0.0  1.4 14544 13368 ?       S    Jan03   0:05 /opt/kav/bin/aveserver -c /etc/kav/5.0/kav4mailservers.conf

    Here is an updated memory usage image. No, I dont know what the spike is from. 
     

    I would appriciate any advice. 

    Thanks
  • Hyperdyper is the major offender, having claimed that it needs about 3GB of memory. Most of that process is probably swapped out. Looks like it has a memory leak.

    You might want to disable HTTP content filter (surf protection) unless you really need it.
  • Here is a copy of my edited process list It looks very much like yours in memory usage. How many users do you have? Do they use things like IP phones?

    My system memory use goes up and down over a period depending on dowloads, but sits on average about 450mb with swap at the moment of 4.6mb.

    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    root      1749  0.0  0.1  1580  724 ?        Ss    2005   0:00 /usr/sbin/cron
    root      1758  0.0  0.2  4700 1796 ?        Ss    2005   0:00 /usr/sbin/sshd -4 -f /etc/ssh/sshd_config
    root      1873  0.0  0.0  5516  564 ?        Ss    2005   0:00 /usr/sbin/ulogd -c /etc/ulogd.conf -d
    root      2122  0.0  0.4  5916 2880 ?        Ss    2005   0:23 /usr/local/bin/alicd -L syslog --daemon --loglevel 2
    root      2194  0.0  2.0 19484 14868 ?       S     2005  12:50 /usr/bin/dns_resolver
    root      2302  0.0  2.0 19724 14872 ?       S     2005   2:27 /usr/bin/v4watcher
    root      2345  0.0  0.4  5764 3072 ?        Ss    2005   0:03 /usr/sbin/httpd -f /etc/httpd/httpd.conf
    root     20284  0.0  0.0  1356  460 ?        S    10:41   0:00  \_ /bin/logger -t httpd -p local6.notice
    wwwrun   20285  0.0  0.4  5760 3116 ?        S    10:41   0:00  \_ /usr/sbin/fcgi- -f /etc/httpd/httpd.conf
    wwwrun   26616  1.6  2.9 27340 21328 ?       S    16:24   0:00  |   \_ /var/wfe/index.fpl
    wwwrun   20286  0.0  0.5  6332 3816 ?        S    10:41   0:00  \_ /usr/sbin/httpd -f /etc/httpd/httpd.conf
    wwwrun   26667  0.0  1.3 14216 9268 ?        R    16:25   0:00  |   \_ /var/wfe/syscall.pl
    wwwrun   26668  0.0  0.1  2344  840 ?        R    16:25   0:00  |       \_ /bin/ps auwxf
    wwwrun   26617  0.0  0.5  6084 3576 ?        S    16:24   0:00  \_ /usr/sbin/httpd -f /etc/httpd/httpd.conf
    root      2447  0.0  5.5 44868 39400 ?       S     2005   5:00 /var/mdw/mdw_daemon.pl
    root      2478  0.1  1.8 18032 13348 ?       S     2005  37:34 /usr/local/bin/selfmonng.pl
    root      2479  0.0  1.5 15648 10848 ?       Ss    2005   0:00 /var/aua/aua.bin /etc/wfe/conf/aua_main_config.ini
    chroot    3461  0.0  0.8 116600 6236 ?       S     2005   0:15 /usr/bin/mrpopper --logmask=127
    chroot    3551  0.0  0.4  9584 3052 ?        Ss    2005   0:00 /bin/exim -bd -q20m
    root      3916  0.0  0.1  4232 1208 ?        Ss    2005   0:00 /sbin/squidf -sYD
    chroot    3918  0.0 14.7 113508 105044 ?     S     2005   3:08  \_ (squid) -sYD
    root      4172  0.0  4.3 33412 30912 ?       Ss    2005   0:01 /usr/bin/spamd -d
    root      5360  0.0  5.2 39940 37308 ?       S     2005   0:33  \_ spamd child
    root      9999  0.0  4.6 35656 33236 ?       S    Jan03   0:02  \_ spamd child
    root      4555  0.0  0.2  3892 1864 ?        Ss    2005   0:00 /usr/sbin/dhcpd -lf /var/state/dhcp/dhcpd.leases eth1
    root      5810  0.0  0.1  1600  876 ?        Ss    2005   2:07 /usr/sbin/nacctd
    root      8036  0.0  8.0 2946464 57016 ?     S    Jan03   6:51 /usr/bin/hyperdyper --logmask=127
    root      8155  0.0  0.3  5580 2504 ?        Ss   Jan03   0:00 /usr/sbin/localhttpd -f /etc/httpd/httpd-loopback.conf
    wwwrun   20866  0.0  0.3  5716 2600 ?        S    11:09   0:00  \_ /usr/sbin/localhttpd -f /etc/httpd/httpd-loopback.conf
    wwwrun   20980  0.0  0.3  5716 2600 ?        S    11:16   0:00  \_ /usr/sbin/localhttpd -f /etc/httpd/httpd-loopback.conf
    chroot    8182  0.0  4.5 68712 32504 ?       S    Jan03   6:36 /usr/sbin/clamd
    root      8199  0.0  1.8 14584 13408 ?       S    Jan03   1:24 /opt/kav/bin/aveserver -c /etc/kav/5.0/kav4mailservers.conf
    root     24386  0.0  5.9 45604 42092 ?       Ss   Jan04   2:34 /sbin/snort_inline -D -Q -c /etc/snort/snort.conf
    root     10180  0.0  0.3  3960 2692 ?        SN   Jan06   0:10 /usr/sbin/snmpd -c /etc/snmpd.conf -Ls daemon
    root     10205  0.0  0.3  3288 2328 ?        Ss   Jan06   0:02 /usr/sbin/named

    With the spike in your memory, somebody or something downloaded a large file or you were subjected to an attack I think.

    Ian M [:)]
  • Ok I have experimented and watched.

    With antivirus and surf protection turned on the memory will creep until it grinds the system to a halt. (Actually, I have been afraid to see what would happen. So, I don’t let it get that far, though it will start grinding the hdd with constant swapping.)

    With it turned off it runs at 400 megs with nearly unnoticeable change just about indefinitely.

    If there is an Astaro person reading this, or any suitably knowledgeable person,  I would appreciate an idea as to why this may be. 

    The creeping seems to be about 50 megs a day.
  • sound like a memory leak. any firewall out there with working anti virus for web ;-)))

    contact support. you have a maintanance contract, right?