From user-return-5936-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Aug 10 19:43:58 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67882 invoked from network); 10 Aug 2009 19:43:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 19:43:57 -0000 Received: (qmail 90967 invoked by uid 500); 10 Aug 2009 19:44:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 90874 invoked by uid 500); 10 Aug 2009 19:44:03 -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 90856 invoked by uid 99); 10 Aug 2009 19:44:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 19:44:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of b.candler@pobox.com designates 64.74.157.62 as permitted sender) Received: from [64.74.157.62] (HELO sasl.smtp.pobox.com) (64.74.157.62) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 19:43:51 +0000 Received: from localhost.localdomain (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2AFFA24CAD for ; Mon, 10 Aug 2009 15:43:29 -0400 (EDT) Received: from mappit (unknown [80.45.95.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 96FB324CAC for ; Mon, 10 Aug 2009 15:43:28 -0400 (EDT) Received: from brian by mappit with local (Exim 4.69) (envelope-from ) id 1MaamE-0007F4-UC for user@couchdb.apache.org; Mon, 10 Aug 2009 20:43:26 +0100 Resent-From: brian@uk.tiscali.com Resent-Date: Mon, 10 Aug 2009 20:43:26 +0100 Resent-Message-ID: <20090810194326.GA27797@uk.tiscali.com> Resent-To: user@couchdb.apache.org Received: from [127.0.0.1] (helo=mappit) by mappit with esmtp (Exim 4.69) (envelope-from ) id 1Maal7-0007ED-NC for brian@localhost; Mon, 10 Aug 2009 20:42:17 +0100 Received: from pop3.linnet.org by mappit with POP3 (fetchmail-6.3.8) for (single-drop); Mon, 10 Aug 2009 20:42:17 +0100 (BST) Received: from mk-filter-7.mail.uk.tiscali.com ([212.139.137.134]) by mk-delivery-4.b2b.uk.tiscali.com with esmtp (Exim 4.69) (envelope-from ) id 1MaZTH-00040O-Ag for brian-pobox-7cad@linnet.org; Mon, 10 Aug 2009 19:19:47 +0100 Received-SPF: None identity=pra; client-ip=208.72.237.55; receiver=mk-inboundfilter-3-a-1.b2b.uk.tiscali.com; envelope-from="SRS0=fVYI=EC=gmail.com=tommy.chheng@bounce2.pobox.com"; x-sender="tommy.chheng@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass identity=mailfrom; client-ip=208.72.237.55; receiver=mk-inboundfilter-3-a-1.b2b.uk.tiscali.com; envelope-from="SRS0=fVYI=EC=gmail.com=tommy.chheng@bounce2.pobox.com"; x-sender="SRS0=fVYI=EC=gmail.com=tommy.chheng@bounce2.pobox.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass identity=helo; client-ip=208.72.237.55; receiver=mk-inboundfilter-3-a-1.b2b.uk.tiscali.com; envelope-from="SRS0=fVYI=EC=gmail.com=tommy.chheng@bounce2.pobox.com"; x-sender="postmaster@azure.pobox.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-Trace: 1210970263/mk-filter-7.mail.uk.tiscali.com/ListenerSBRS/$ACCEPTED/UNKNOWNLIST/208.72.237.55/3.0/SRS0=fVYI=EC=gmail.com=tommy.chheng@bounce2.pobox.com X-SBRS: 3.0 Received: from azure.pobox.com ([208.72.237.55]) by mk-inboundfilter-3-a-1.b2b.uk.tiscali.com with ESMTP; 10 Aug 2009 19:19:38 +0100 Received: from azure.pobox.com (localhost [127.0.0.1]) by azure.pobox.com (Postfix) with ESMTP id 0457441EBB9 for ; Mon, 10 Aug 2009 14:19:36 -0400 (EDT) X-Pobox-Delivery-ID: 5BE5D9B8-85DA-11DE-9C18-BB00764867FB-28021239!azure.pobox.com x-pobox-client-address: 209.85.221.184 x-pobox-client-name: mail-qy0-f184.google.com Received: from mail-qy0-f184.google.com (mail-qy0-f184.google.com [209.85.221.184]) by azure.pobox.com (Postfix) with ESMTP id AB0C94215AB for ; Mon, 10 Aug 2009 14:19:35 -0400 (EDT) Received: by qyk14 with SMTP id 14so3019705qyk.1 for ; Mon, 10 Aug 2009 11:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=JN2M8k2fMYnY//fXiN8r5FRjU3atlLP0AywUh2p7bao=; b=QRsJE54pTfzOgQMzOoq2XTTi9nJuFrfwkcroSS5/Vvlq9uMZHJN0Vx69XJdbXKJWYc 3bPTwIBgF3QoPtvS3QewUa48YjvKqs4sNBAFjkuCzDbPEJjaWyRZgOuyu+oGnBnvfQ9V KHbRQRmc+ZyRb99Oh5zRguq6b7RQuckcxlKl4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=an8vnG/FBYuuOdqUqhTla/3RwM6wpsX+nPH68aiE705U4BZ91RekwmzQFmEE//WanC PYR6fkcRzCFN5F9O7P55pp+NmVD5d8H2Sr4AL4lNN4t4Wm4tXeIwyyC/waO2cc1PFctS D4J/IqE6Pov9b5QwMyT+IAy7LRVXdtu5Y93lk= Received: by 10.224.2.138 with SMTP id 10mr3444898qaj.188.1249928374236; Mon, 10 Aug 2009 11:19:34 -0700 (PDT) Received: from ?192.168.1.2? (ip68-5-12-78.oc.oc.cox.net [68.5.12.78]) by mx.google.com with ESMTPS id 5sm1492675qwh.51.2009.08.10.11.19.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 Aug 2009 11:19:33 -0700 (PDT) Cc: user@couchdb.apache.org Message-Id: <7281FA64-D440-4C62-AD11-6616E474AF55@gmail.com> From: Tommy Chheng To: Brian Candler In-Reply-To: <20090810081957.GA9707@uk.tiscali.com> Content-Type: multipart/alternative; boundary=Apple-Mail-12-1038081591 Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: couchdb server connection refused error Date: Mon, 10 Aug 2009 11:17:01 -0700 References: <22D88A53-47D0-4AB4-9808-C7CD83D3F9CD@gmail.com> <20090810081957.GA9707@uk.tiscali.com> X-Mailer: Apple Mail (2.936) X-Pobox-Pass: tommy.chheng@gmail.com is whitelisted Resent-Date: Mon, 10 Aug 2009 20:43:26 +0100 X-Pobox-Relay-ID: 13F4597A-85E6-11DE-B45E-AEF1826986A2-28021239!a-pb-sasl-sd.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-12-1038081591 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Aug 10, 2009, at 1:19 AM, Brian Candler wrote: > On Sun, Aug 09, 2009 at 09:55:05PM -0700, Tommy Chheng wrote: >> I found the source of the problem for the connection refused error. >> >> Ubuntu defaults a open file limit of 1024. I had a lot of files >> opened >> on the system so any new TCP connections could not be created. The >> file >> limit can be checked with ulimit -n > > Was the open files bottleneck hit on the client process, or the > couchdb > erlang process? > > I imagine it was the former. They are on both the same machine so it wouldn't matter because it is at the OS level? If too many connections are being open, the OS will be refusing to open more, no matter the client or couchdb process. > >> I raised the limits in the /etc/security/limits.conf file by adding >> these lines: >> * soft nofile 32768 >> * hard nofile 32768 > > For the uid which was running the client application? I set it for all users in the limits file. > > Regards, > > Brian. --Apple-Mail-12-1038081591--