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 3DFC610B00 for ; Sat, 16 Nov 2013 17:04:40 +0000 (UTC) Received: (qmail 91773 invoked by uid 500); 16 Nov 2013 17:04:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 91696 invoked by uid 500); 16 Nov 2013 17:04:38 -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 91688 invoked by uid 99); 16 Nov 2013 17:04:34 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Nov 2013 17:04:34 +0000 Received: from localhost (HELO mail-la0-f49.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Nov 2013 17:04:34 +0000 Received: by mail-la0-f49.google.com with SMTP id er20so3672180lab.36 for ; Sat, 16 Nov 2013 09:04:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+GcPKikxciiyC8wAH+3k9/FuFgWCR7XQuXUlJuAfKG0=; b=ci0wRtSNFstiQua2v3WuRkStGdHf4UIrfci6zX9j+sBY5CLlLvlZH6n/W2W76BEckW oWadtJ020mXwl1pTRC+VGZcqfMbZEHxw/gsoktGaDNLwzoEIbneGstSwYeRp3mHGJoIV 94TKxsa1zXXU4sEXxjg34DjjVbFqhO9L02ZgMONWc605Hh3rLyUQ8PULCUfIHmVJDZTz PyoYX/aV35XDJ8a3C/jmdwbwu54EmQHvmSEZwBHj07JRo+rNMvJeaKMoA5cFqDecr7AR bso4HKRt1d7C8v/DUVu7NYDCBiydk5H/ErQkoRLTcWDKQ7QCX4FxKx9aLnd32kTumAI2 jmmw== MIME-Version: 1.0 X-Received: by 10.152.19.2 with SMTP id a2mr3006180lae.2.1384621472549; Sat, 16 Nov 2013 09:04:32 -0800 (PST) Received: by 10.112.67.12 with HTTP; Sat, 16 Nov 2013 09:04:32 -0800 (PST) In-Reply-To: References: Date: Sat, 16 Nov 2013 17:04:32 +0000 Message-ID: Subject: Re: Couch crashing under medium load From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 eaddrinuse means that couchdb can't bind to the 5984 port. Perhaps you have two couchdb's attempting to run at once? B. On 16 November 2013 16:59, Joe RNL wrote: > OS: Ubuntu 12.04 > Server : m1.xlarge amazon (but have tried on other sizes with no success) > Couchdb Version: 1.2.0 > Crash Report: > > [Fri, 15 Nov 2013 22:30:51 GMT] [error] [<0.124.0>] {error_report,<0.30.0>, > {<0.124.0>,crash_report, > [[{initial_call, > > {mochiweb_socket_server,init,['Argument__1']}}, > {pid,<0.124.0>}, > {registered_name,[]}, > {error_info, > {exit,eaddrinuse, > [{gen_server,init_it,6}, > {proc_lib,init_p_do_apply,3}]}}, > {ancestors, > [couch_secondary_services,couch_server_sup, > <0.31.0>]}, > {messages,[]}, > {links,[<0.93.0>]}, > {dictionary,[]}, > {trap_exit,true}, > {status,running}, > {heap_size,1597}, > {stack_size,24}, > {reductions,455}], > []]}} > erlang: 5.8.5 > spidermonkey: 1.9.1.15-2ppa0+1 > > Siege command : > siege -c 80 -i -d 1 URL > Typical response: > > Transactions: 562 hits > Availability: 77.95 % > Elapsed time: 43.96 secs > Data transferred: 2.99 MB > Response time: 4.85 secs > Transaction rate: 12.78 trans/sec > Throughput: 0.07 MB/sec > Concurrency: 61.97 > Successful transactions: 721 > Failed transactions: 159 > Longest transaction: 14.01 > Shortest transaction: 0.01 > > Trying with 20-40 concurrent users is fine. > Tweaks: I've tried everything listed in this document: > http://wiki.apache.org/couchdb/Performance > > Using htop I can see the memory usage slowly climb before couchdb crashes. > Usually around 3000 available of 14980MB available. > > Thanks > > joe > > > On Sat, Nov 16, 2013 at 7:33 AM, Robert Newson wrote: > >> There's no detail here for us to even begin to help. What OS, machine >> specs, version of couchdb, erlang, spidermonkey, what is "medium >> load"? which tweaks have you made? What were the crashes (See >> couch.log)? >> >> B. >> >> >> On 16 November 2013 13:26, Joe RNL wrote: >> > Apologies if double post. We are testing a new system architecture and >> > couch keeps crash under relatively light loads, about 40 concurrent >> > requests. >> > >> > Any thoughts? >> > >> > What I've tried: >> > - Tweaking settings >> > http://wiki.apache.org/couchdb/Performan< >> http://wiki.apache.org/couchdb/Performance> >> > - Testing with both Siege and AB >> > - Tried different cloud-based servers. >> > >> > Doesn't seem to be a memory issue, as there is always plenty of available >> > memory. >> > >> > thanks >> > >> > joe >>