couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Chheng <tommy.chh...@gmail.com>
Subject Re: couchdb server connection refused error
Date Mon, 10 Aug 2009 18:17:01 GMT

On Aug 10, 2009, at 1:19 AM, Brian Candler wrote:

> On Sun, Aug 09, 2009 at 09:55:05PM -0700, Tommy Chheng wrote:
>> I found the source of the problem for the connection refused error.
>>
>> Ubuntu defaults a open file limit of 1024. I had a lot of files  
>> opened
>> on the system so any new TCP connections could not be created. The  
>> file
>> limit can be checked with ulimit -n
>
> Was the open files bottleneck hit on the client process, or the  
> couchdb
> erlang process?
>
> I imagine it was the former.

They are on both the same machine so it wouldn't matter because it is  
at the OS level?
  If too many connections are being open, the OS will be refusing to  
open more, no matter the client or couchdb process.

>
>> I raised the limits in the /etc/security/limits.conf file by adding
>> these lines:
>> * soft nofile 32768
>> * hard nofile 32768
>
> For the uid which was running the client application?

I set it for all users in the limits file.

>
> Regards,
>
> Brian.


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