[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong memory count for apache2

From: Hagi Michael
Subject: Wrong memory count for apache2
Date: Thu, 10 Nov 2011 11:05:51 +0100



We have Ubuntu Webservers with Apache2 (mainly with PHPoverFCGI) monitored with monit.

Now i have noticed, that monit does some wrong calculations with the memory usage of apache2.

Here is an example.


Monit status output :


Process 'apache'

  status                            running

  monitoring status                 monitored

  pid                               1006

  parent pid                        1

  uptime                            21m

  children                          41

  memory kilobytes                  8620

  memory kilobytes total            1608976

  memory percent                    0.2%

  memory percent total              39.6%

  cpu percent                       0.0%

  cpu percent total                 7.6%


And the output form free –m:


                                total                      used       free     shared    buffers     cached

Mem:                   3963                      2690       1272          0          347             997

-/+ buffers/cache:                          1345       2617

Swap:                   1905                      27            1878


As you can see, there are just 1345 MB of memory used(without cache). So its IMHO not possible, that apache uses 1600 MB of memory.

This is a huge problem for us, because sometimes monit wants to restart the webserver because he thinks that there is too much memory used when there is still plenty of mem available.


Does anybody know why there are these miscalculations or have i possibly made some mistakes in the configuration ?



Kind regards


reply via email to

[Prev in Thread] Current Thread [Next in Thread]