Sheng Yang created CLOUDSTACK-7185:
--------------------------------------

             Summary: Apache2 logrotate policy can result in memory leak
                 Key: CLOUDSTACK-7185
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7185
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Virtual Router
    Affects Versions: 4.5.0
            Reporter: Sheng Yang
            Assignee: Sheng Yang
             Fix For: 4.5.0


Apache 2.2.22-13+deb7u1(latest debian stable version) have the issue that may 
result in memory leak.

Logrotate would use apache2 reload to reload the service after log rotated. But 
the memory used by apache2 increased after each reload, which can be a problem 
for limited memory VR.

Here is how I measure the memory:
root@r-4-VM:~# for i in `ps -eo comm,pid|awk '$1=="apache2"
{ print $2 }'`; do pmap $i|tail -n 1; done
total 85680K
total 84916K
total 309108K
total 309108K
root@r-4-VM:~# i=0; while [ $i -lt 356 ] ; do /etc/init.d/apache2 reload 2>1 > 
/dev/null; sleep 1; i=$(($i+1)); done
root@r-4-VM:~# for i in `ps -eo comm,pid|awk '$1=="apache2" { print $2 }
'`; do pmap $i|tail -n 1; done
total 120552K
total 344576K
total 344576K
total 121148K



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to