high memory usage

Discussion in 'General' started by abubin, May 9, 2013.

  1. abubin

    abubin New Member

    I have been using ispconfig 3 for quite a while now. Recently, something is not right. Memory usage is hitting up the roof. So I upgraded from 2GB to 8GB yesterday.

    This morning when I check the system, I see all the 8GB used up. I feel something is not right. There might be some rogue processes running inside.

    I used top to see the memory usage but I can't see anything. Anyone can guide me on checking what is using up all the memory? The "show memory" in ISPconfig is not showing anything useful that I can used.

    Here is the top result sorted by memory:
    Code:
    top - 11:16:17 up 17:52,  2 users,  load average: 0.06, 0.19, 0.17
    Tasks: 179 total,   1 running, 178 sleeping,   0 stopped,   0 zombie
    Cpu(s):  6.1%us,  0.7%sy,  0.0%ni, 93.0%id,  0.0%wa,  0.0%hi,  0.2%si,  0.0%st
    Mem:   8310120k total,  7544108k used,   766012k free,   348508k buffers
    Swap:  6080560k total,      100k used,  6080460k free,  5527868k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
     4562 mysql     20   0 1222m 686m 6144 S    8  8.5   8:52.39 mysqld
     5030 clamav    20   0  257m 230m  936 S    0  2.8   0:24.44 clamd
    20566 amavis    20   0 60940  51m 3240 S    0  0.6   0:00.26 amavisd-new
    20534 amavis    20   0 60812  51m 3240 S    0  0.6   0:00.22 amavisd-new
     4488 amavis    20   0 59284  49m 2520 S    0  0.6   0:00.71 amavisd-new
    24644 www-data  20   0 60184  28m 5000 S    0  0.4   0:05.06 apache2
     4645 root      20   0 31148  27m 2368 S    0  0.3   0:03.98 spamd
     4810 root      20   0 31148  26m  640 S    0  0.3   0:00.02 spamd
     5029 root      20   0 31148  26m  548 S    0  0.3   0:00.02 spamd
     5972 www-data  20   0 46824  20m 7420 S    0  0.3   0:21.19 php-cgi
    12656 www-data  20   0 46840  20m 7352 S    0  0.3   0:28.86 php-cgi
    24744 www-data  20   0 51180  19m 5328 S    1  0.2   0:01.66 apache2
    24746 www-data  20   0 51180  19m 4708 S    0  0.2   0:00.78 apache2
    24930 www-data  20   0 47856  16m 5152 S    0  0.2   0:00.75 apache2
    24915 www-data  20   0 48248  16m 4736 S    0  0.2   0:00.15 apache2
    24992 www-data  20   0 47892  16m 4668 S    0  0.2   0:00.17 apache2
    24935 www-data  20   0 47684  15m 4436 S    0  0.2   0:01.04 apache2
    24853 www-data  20   0 47196  15m 4516 S    0  0.2   0:01.13 apache2
    24985 www-data  20   0 47924  15m 3760 S    0  0.2   0:00.10 apache2
    24998 www-data  20   0 48156  15m 3664 S    0  0.2   0:00.04 apache2
    24977 www-data  20   0 47892  15m 3732 S    0  0.2   0:00.11 apache2
    25106 www-data  20   0 48112  15m 3656 S    2  0.2   0:00.05 apache2
    25082 www-data  20   0 48104  15m 3640 S    0  0.2   0:00.05 apache2
    24926 www-data  20   0 47908  15m 3664 S    3  0.2   0:00.20 apache2
    24847 www-data  20   0 47892  15m 3668 S    0  0.2   0:00.11 apache2
     5449 root      20   0 25824  14m 2384 S    0  0.2   0:18.07 ruby
     5693 www-data  20   0 39000  12m 6832 S    0  0.2   0:20.21 php-cgi
    24912 www-data  20   0 43316  11m 4860 S    0  0.1   0:00.34 apache2
    24905 www-data  20   0 44072  11m 3856 S    0  0.1   0:00.04 apache2
     5535 root      20   0 40988  10m 6328 S    0  0.1   0:04.34 apache2
     5617 www-data  20   0 36860  10m 6868 S    0  0.1   0:20.86 php-cgi
    18679 www-data  20   0 36416 9600 6176 S    0  0.1   0:00.03 php-cgi
    14266 www-data  20   0 35784 8260 5720 S    0  0.1   0:00.01 php-cgi
    16169 www-data  20   0 35784 8164 5640 S    0  0.1   0:00.30 php-cgi
    20932 www-data  20   0 35784 8028 5540 S    0  0.1   0:00.01 php-cgi
    24888 www-data  20   0 41520 7096 2196 S    0  0.1   0:00.02 apache2
    24927 www-data  20   0 41516 6516 1540 S    0  0.1   0:00.00 apache2
    24881 www-data  20   0 41528 6396 1544 S    0  0.1   0:00.01 apache2
    25063 www-data  20   0 41520 6368 1524 S    0  0.1   0:00.00 apache2
    
     
  2. commentator

    commentator New Member

    running Munin stats or Piwik or Thinkup ?

    had same problem with running them all on the same server :)
    Solution is to split them or let Piwik and Thinkup update only once a day not @ the same time!
     
  3. abubin

    abubin New Member

    yes, our developer just install piwik on the server. That was when I notice the load starting to go up. So I upgraded the memory since there are some spare lying around. I did not expect piwik to be taking all the extra memory after upgrade. That's 6GB of extra memory.

    Is piwik really that memory hungry program? What can be done to reduce it's memory footprint? It is db internsive or web intensive software?
     

Share This Page