Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67BD9E653 for ; Mon, 25 Feb 2013 23:52:12 +0000 (UTC) Received: (qmail 26191 invoked by uid 500); 25 Feb 2013 23:52:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 26156 invoked by uid 500); 25 Feb 2013 23:52:10 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 26147 invoked by uid 99); 25 Feb 2013 23:52:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 23:52:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 23:52:02 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UA7px-0000PW-Gi for user@couchdb.apache.org; Tue, 26 Feb 2013 00:52:01 +0100 Received: from uom-128-250-150-70.eresearch.unimelb.edu.au ([128.250.150.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 00:52:01 +0100 Received: from lmorandini by uom-128-250-150-70.eresearch.unimelb.edu.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 00:52:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: Luca Morandini Subject: Unclosed connections to CouchDB using Cradle Date: Tue, 26 Feb 2013 10:51:30 +1100 Lines: 31 Message-ID: Reply-To: lmorandini@ieee.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: uom-128-250-150-70.eresearch.unimelb.edu.au User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 X-Virus-Checked: Checked by ClamAV on apache.org Folks, I have set up an application using Cradle 0.6.4 connected to CouchDB 1.2.0, and started stress testing it... and encountered an issue. After setting up a simulated load -using nodeload- of 60 users each requesting 100 documents of about 60MB (they vary from a few bytes to 60MB, but most of them are 60MB) I found out that some connections to CouchDB were not closed after the load program terminated. I have set the maxSockets parameters of both http module and Cradle to 50, hence the app ramps up to 110 open connections, then the number of connections decreases... but some of them remains in an "ESTABLISHED" status. Here's the netstat output: tcp 5896064 0 127.0.0.1:37968 127.0.0.1:5984 ESTABLISHED 31914/node tcp 6051609 0 127.0.0.1:37977 127.0.0.1:5984 ESTABLISHED 31914/node tcp 1095733 0 127.0.0.1:37947 127.0.0.1:5984 ESTABLISHED 31914/node tcp 1590408 0 127.0.0.1:37949 127.0.0.1:5984 ESTABLISHED 31914/node All of them are connections from my app to CouchDB: is there any way to prevent this or -failing that- force a periodic closing ? Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini