Created
December 2, 2012 17:00
-
-
Save kgrz/4189837 to your computer and use it in GitHub Desktop.
CouchDB Erlang issues. Troubleshooting notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| If the error has "emfile" in the reason, it most probably has to do with the ulimit. | |
| If the error is a TCP driver error saying that max file descriptors can be only a certain value, it has to do with the compilation of Erlang. This link: http://boorad.github.com/2009/07/09/mac-kpoll.html has info. | |
| Setting the FD_SETSIZE to 8192 worked and limited the TCP driver connections to 8192. | |
| Setting it to 81920 makes CouchDB fail to start. | |
| ^ | |
| | That worked. The reason why couch didnt start up was the setting of mochiweb acceptor pool to an atrocious 81000! | |
| things to look out for: | |
| ulimit | |
| ERL_MAX_PORTS | |
| FD_SETLIMIT | |
| and the usual kern.maxproc, kern.maxfiles, kern.maxfilesperproc settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment