couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wood <>
Subject CouchDB pegging the CPU and not responding to requests
Date Tue, 01 Sep 2009 14:52:27 GMT
Hi everybody,

I'm currently facing an issue with our production installation of CouchDB.
Two times within the past 5 days, the Erlang process running CouchDB pegs
one of the 4 cores on the machine, consumes about 40% of the system RAM
(which is 4GB), and becomes completely unresponsive to incoming HTTP
requests.  The only way we can get it back to normal is to restart CouchDB.

I'm trying to determine what may be causing this, but I'm not having much
luck.  Nothing stands out in the CouchDB log files.  I can see that there
are no entries in the log files from the time it goes unresponsive until the
time I restart it.  Besides that, there doesn't appear to be any errors
leading up to the issue.  There are however a few errors like the one below,
but none right before CouchDB goes unresponsive:

[error] [<0.11738.288>] {error_report,<0.21.0>,
[error] [<0.56.0>] {error_report,<0.21.0>,

=ERROR REPORT==== 30-Aug-2009::04:29:07 ===

I checked some of the other system log files (/var/log/messages, etc), and
there doesn't appear to be any information there either.

Our CouchDB installation is fairly large.  We have 7 production databases,
totaling almost 250GB.  The largest database is 129GB.  We are running
CouchDB 0.9.0 on Red Hat Enterprise Server 5.3.  As far as usage goes, we
are constantly inserting documents into the database (5,000 at a time via a
bulk insert), and pausing to regenerate the views after 100,000 documents
have been inserted.  Besides for the process that does the inserts, all
views are accessed using stale=ok.

Has anybody else faced a similar issue?  Can anybody suggest tips regarding
how I should go about diagnosing this issue?


John Wood
Interactive Mediums

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message