You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sheng Yang (JIRA)" <ji...@apache.org> on 2014/07/25 23:06:39 UTC

[jira] [Resolved] (CLOUDSTACK-7185) Apache2 logrotate policy can result in memory leak

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sheng Yang resolved CLOUDSTACK-7185.
------------------------------------

    Resolution: Fixed

> 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)