Skip to content

Instantly share code, notes, and snippets.

@benjaminbarbe
Last active December 23, 2015 04:09
Show Gist options
  • Save benjaminbarbe/6577882 to your computer and use it in GitHub Desktop.
Save benjaminbarbe/6577882 to your computer and use it in GitHub Desktop.
Riak on Mac OS X tcp_inet driver #Port<0.9363> failed: fd=1024 is larger than the largest allowed fd=1023 gen_server memsup terminated with reason: maximum number of file descriptors exhausted

Erlang

curl -O http://erlang.org/download/otp_src_R15B01.tar.gz
tar zxvf otp_src_R15B01.tar.gz
cd otp_src_R15B01
CFLAGS="-O0 -DREDEFINE_FD_SETSIZE -DFD_SETSIZE=15000 -D_DARWIN_UNLIMITED_SELECT" ./configure --disable-hipe --enable-smp-support --enable-threads \
--enable-kernel-poll --enable-darwin-64bit
make && sudo make install

Riak

wget http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/riak-1.4.2.tar.gz
tar zxvf riak-1.4.2.tar.gz
cd riak-1.4.2
make rel

https://gist.github.com/vinoski/4689170

http://docs.basho.com/riak/1.2.1/tutorials/installation/Installing-Erlang/#Installing-on-Mac-OS-X

@Micka33
Copy link

Micka33 commented Oct 6, 2013

perl -i -pe 's/(define\s+FD_SETSIZE\s+)\d+/\1 96000/' erts/config.h.in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment