Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 379B210E29 for ; Fri, 25 Jul 2014 21:02:40 +0000 (UTC) Received: (qmail 96692 invoked by uid 500); 25 Jul 2014 21:02:40 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 96599 invoked by uid 500); 25 Jul 2014 21:02:39 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 96494 invoked by uid 500); 25 Jul 2014 21:02:39 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 96490 invoked by uid 99); 25 Jul 2014 21:02:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2014 21:02:39 +0000 Date: Fri, 25 Jul 2014 21:02:39 +0000 (UTC) From: "Sheng Yang (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-7185) Apache2 logrotate policy can result in memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)