[geeks] Solaris 10 max connections limit?

Nadine Miller velociraptor at gmail.com
Wed May 27 23:42:33 CDT 2009


On May 27, 2009, at 3:25 PM, Phil Stracchino wrote:

> Phil Stracchino wrote:
>> Phil Stracchino wrote:
>>> I'm installing NUT (Network UPS Tools) on my Solaris 10 x86 box, and
>>> upsd is dying because when it requests FD_SETSIZE (1024) maximum
>>> connections by default, it's apparently getting back only 256  
>>> allowed.
>>>
>>> Not that I'm ever going to need even 256 ... I actually just  
>>> patched the
>>> code to request only 128, and even that is overkill in my  
>>> environment.
>>> But does anyone know why Solaris 10 would limit a privileged  
>>> application
>>> started by root to 256 connections?  Is it a configurable limit?
>>
>> Further:  it appears tcp_conn_req_max_q defaults to 128.  I can't  
>> find
>> any applicable tunables that default to 256.
>
> Aaaahhh ....   found it.  Looks like rlim_fd_cur is the culprit,
> defaulting to 256.  I'll increase this to 2048 on my next reboot and  
> see
> if that does the job.

That may be a tunable that doesn't require a reboot.  Check out /etc/ 
projects and related.  It is part of the new "fair share scheduler"  
system for handling resource management of processes, owners and groups.

=Nadine=



More information about the geeks mailing list