You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/11/19 22:18:45 UTC
[Couchdb Wiki] Update of "Troubleshooting" by AdamKocoloski
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Troubleshooting" page has been changed by AdamKocoloski.
http://wiki.apache.org/couchdb/Troubleshooting?action=diff&rev1=17&rev2=18
--------------------------------------------------
== Misc Errors ==
+ CouchDB using a lot of memory (several hundred MB) on startup? This one seems to especially affect Dreamhost installs. It's really an issue with the Erlang VM pre-allocating data structures when ulimit is very large or unlimited. A detailed dicussion can be found [[http://www.erlang.org/cgi-bin/ezmlm-cgi/4/46168|on the erlang-questions list]], but the short answer is that you should decrease ulimit -n or define ERL_MAX_PORTS to something reasonable like 1024.
+
Erlang backtraces are quite "hard" to read for non-Erlangers. The list here tries to give keywords to help you pinpointing your problem and suggests possible solutions
system_limit, erlang, open_port:: Erlang has a default limit of 1024 ports, where each FD, tcp connection, and linked-in driver uses one port. You seem to have exceeded this. You can change it at runtime using the ERL_MAX_PORTS env variable.