Guest User!

You are not Sophos Staff.

[7.480][BUG][NOTABUG] Memory leak in Webadmin/dashboard

Hi all,

After leaving the dashboard open for approx. 12 hours, I get the following "top" output:

top - 22:09:14 up 13:06,  1 user,  load average: 0.30, 0.19, 0.14
Tasks: 107 total,   2 running, 102 sleeping,   0 stopped,   3 zombie
Cpu(s):  2.7%us,  3.3%sy,  0.0%ni, 47.3%id, 44.7%wa,  0.0%hi,  2.0%si,  0.0%st
Mem:   1036332k total,   975564k used,    60768k free,      368k buffers
Swap:  1052248k total,   108748k used,   943500k free,    58140k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5250 wwwrun    16   0  338m 280m 2760 S  3.0 27.7  13:22.79 index.plx
 8768 root      14  -1  198m 160m 1460 S  0.0 15.9   1:17.18 snort_inline
 4101 chroot    16   0  309m 132m 3812 S  0.0 13.0   1:07.42 httpproxy
 4318 chroot    16   0 85648  65m  996 S  0.0  6.5   0:56.03 clamd
 4105 root      16   0 81528  50m 2408 S  0.0  5.0   1:04.02 cssd
 3456 root      15   0 54728  47m 2448 S  0.0  4.7   0:18.26 mdw_daemon.plx
 5412 root      16   0 38372  20m 2708 D  1.7  2.1   8:50.55 confd.plx
 3173 root      15   0 31376  14m 2292 S  0.0  1.5   0:02.54 confd.plx
29367 root      16   0 24244  11m 1996 S  0.0  1.2   0:00.04 smtpd.bin
 3214 root      16   0 30696  11m 1428 S  0.0  1.1   0:06.43 confd.plx
 3267 root      16   0 18700  11m 2520 S  0.0  1.1   0:00.54 notifier.plx
 4122 root      15   0 24200  10m 2216 S  0.0  1.0   0:03.08 smtpd.bin
 4126 root      16   0 24196  10m 2108 S  0.0  1.0   0:00.66 smtpd.bin
 3176 root      15   0 13748 9480 1908 S  0.0  0.9   0:05.29 dns-resolver.pl
 3411 postgres  15   0 48952 9356 9008 S  0.0  0.9   0:00.40 postgres
 4829 root      16   0 11772 9276 2916 S  0.0  0.9   0:01.78 ips-reporter.pl
 4830 root      16   0 11656 9072 2792 S  0.0  0.9   0:02.09 pfilter-reporte
 3488 root      16   0 14848 8576 1568 S  0.3  0.8   2:28.47 selfmonng.plx
 4187 afcd      14  -1 10876 7768  868 S  0.0  0.7   1:27.37 afcd
 4826 root      15   0 11100 7764 2732 S  0.0  0.7   0:04.34 websec-reporter
 4848 root      16   0 10452 7664 2572 S  0.0  0.7   0:05.46 admin-reporter.
 3133 root      15   0 10076 7316  984 S  0.0  0.7   0:06.14 vmware-guestd
 4827 root      15   0 10684 6824 2732 S  0.0  0.7   0:01.74 mailsec-reporte
 3971 postgres  16   0 49640 6376 5432 S  0.0  0.6   0:01.14 postgres
 3509 root      16   0 14592 6320  516 S  0.0  0.6   0:00.02 selfmonng.plx
 4136 postgres  16   0 50000 5748 4688 S  0.0  0.6   0:00.38 postgres
 4921 root      16   0  9032 5672 2544 S  0.0  0.5   0:01.15 ddclient
 3249 root      15   0 16564 5424 1792 S  0.0  0.5   0:00.02 aua.bin
 3724 root      15   0  9532 5136 1272 S  0.0  0.5   0:08.48 named
 4165 root      16   0 29184 5120 3416 S  0.0  0.5   0:48.13 ctasd
 4828 root      16   0  7588 4940 2064 S  0.0  0.5   0:00.39 vpn-reporter.pl


After logging out the index.plx task finishes and frees up the memory.

Update:
the following three lines are repeated very often in the configuration daemon log:

2009:08:20-22:24:48 astaro1 confd[29866]: id="3100" severity="info" sys="System" sub="confd" name="thaw" client="index.plx" facility="webadmin" user="***" srcip="192.168.0.5"
2009:08:20-22:24:48 astaro1 confd[29866]: id="3108" severity="info" sys="System" sub="confd" name="reloading storage" client="index.plx" facility="webadmin" user="***" srcip="192.168.0.5" version="27" storage="/cfg"
2009:08:20-22:24:48 astaro1 confd[29866]: id="3100" severity="info" sys="System" sub="confd" name="freeze" client="index.plx" facility="webadmin" user="***" srcip="192.168.0.5"


Regards,
Bastian
Parents
  • I still see the same phenomenon with being logged out automatically when I leave WebAdmin on the Dashboard.  I don't get logged off with 7.404.  Both boxes are set on 9600 seconds for 'WebAdmin idle timeout', but I thought the idle timeout was not applicable when the Dashboard was up.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • I still see the same phenomenon with being logged out automatically when I leave WebAdmin on the Dashboard.  I don't get logged off with 7.404.  Both boxes are set on 9600 seconds for 'WebAdmin idle timeout', but I thought the idle timeout was not applicable when the Dashboard was up.


    You could open another bug thread on this one, Bob [;)]

    Perhaps you have this error on your machine: http://www.astaro.org/astaro-beta-versions/asg-v7-500-beta/27149-7-470-bug-ack-webadmin-httpd-logs-admin-out-due-error.html which wasn't ever confirmed by Astaro. Could you check your logs for this?
  • Ok I was finally able to replicate it today. The trick is not to use your PC at all and leave the main Dashboard screen up.
    Here is my usage stats first using top and then on the dashboard itself. Notice the high memory usage of index.plx. In my case, if I change to different pages the memory usage doesn't go up. Just leave it on Dashboard and don't touch anything and it will go up. Plus my cpu usage is fairly high with index.plx and confd using most of the cycles.

    This is not truely a memory leak since the memory is released back once webadmin is shut down. However there definitely is a memory management issue within the webadmin code itself. I realise that most of the minor bugs will probably be tackled in 7.51 etc but just wanted to confirm that I could replicate the issue also.
  • Hi guys,

    I tried to reproduce this with 7.5. In this package we released a new webadmin engine, too. I hope this will solve it. For verification I opend a webadmin session over night. But this morning all was normal.

    Greetings
    Andreas
Reply Children
No Data