Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87F5EDA58 for ; Wed, 1 Aug 2012 10:53:05 +0000 (UTC) Received: (qmail 46275 invoked by uid 500); 1 Aug 2012 10:53:05 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 45968 invoked by uid 500); 1 Aug 2012 10:53:04 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 45107 invoked by uid 99); 1 Aug 2012 10:53:03 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 10:53:03 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 505FF1404B4 for ; Wed, 1 Aug 2012 10:53:03 +0000 (UTC) Date: Wed, 1 Aug 2012 10:53:03 +0000 (UTC) From: "Michal Fojtik (JIRA)" To: dev@deltacloud.apache.org Message-ID: <1765627685.176.1343818383331.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1740870209.2.1343813583527.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (DTACLOUD-290) Memory leaking on Fedora 17 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426513#comment-13426513 ] Michal Fojtik commented on DTACLOUD-290: ---------------------------------------- (remove the 'puts' ;-) > Memory leaking on Fedora 17 > --------------------------- > > Key: DTACLOUD-290 > URL: https://issues.apache.org/jira/browse/DTACLOUD-290 > Project: DeltaCloud > Issue Type: Bug > Components: Server > Environment: deltacloud-core-1.0.0-4.fc17.noarch (though same issue with dc-core from git) > sinatra (1.3.2) > sinatra-rabbit (1.0.6) > Fedora 17 > Reporter: Jan Provaznik > Priority: Critical > > Memory used by deltacloudd process increases with time. After 12 hours, it's common it uses ~4G of virt memory and >1G of physical memory (only conductor's dbomatic script which periodically checks running instances every minute was running). > You can reproduce the memory leak by this simple script: > #!/usr/bin/ruby > require 'rubygems' > require 'deltacloud' > 1000.times do |i| { DeltaCloud.new('mockuser', 'mockpassword', 'http://localhost:3002/api') } > Used memory will increase by >10M (both virt and physical). The problem is probably with lambda in check_capability usage in lib/deltacloud/collections/* files: > check_capability :for => lambda { |m| driver.respond_to? m } > if the lambda is replaced by true or other static value, the memory usage remains constant. > I see that in git the 'check_capability' call was replaced by 'set' call, this change has no influence on this problem. > Also it's weird that after starting deltacloudd, used memory is 233m/33m (virt/res), but after first request, used memory jumps to 776m/90m (virt/res) - this is far more than on Fedora 16, where used memory remains around 160m/50m. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira