[OmniOS-discuss] Setting service max file descriptors on OmniOS

steve at linuxsuite.org steve at linuxsuite.org
Wed Feb 13 10:36:57 EST 2013


> Steve,
>
> I don't have lighttpd installed, but it should work like anything else
> that
> is a proper service.

       Ok, I'm a newbee on Solaris, but why can't something like this be
possible, have a property like this

root at live-dfs-2:~# svccfg -s network/http:lighttpd14 listprop
general/fd_limit
general/fd_limit              count    8192

      And this would set this service up with this parameter
max-file-descriptor=8192

        Setting resource limits on services like http are a common
requirement. If there
is an alternative to editing the method script and simply adding "ulimit
-n 8192"
then perhaps a property is needed?

      Is the above possible? How do I implement it?

   I found reference to the following for a printer service


# svccfg
svc:> select svc:/application/print/server
svc:/application/print/server> setprop lpsched/num_filters = count: 1
svc:/application/print/server> setprop lpsched/num_notifiers = count: 1
svc:/application/print/server> setprop lpsched/fd_limit = count: 4096
svc:/application/print/server> setprop lpsched/reserved_fds = count: 2
svc:/application/print/server> quit


>
> You can add a project associated with lighttpd if there isn't already one,
> and set the max open file descriptors for that project.
>
> Here's an example:
>
> $ projadd -c "lighttpd settings" -U <username> -G <groupname> -K
> "process.max-file-descriptor=(basic,65535,deny)" lighttpdproj
> $ svccfg -s network/http:lighttpd14 setprop
> 'method_context/project=lighttpdproj'
> $  svcadm disable network/http:lighttpd
> $  svcadm enable network/http:lighttpd
>
>
> That *should* do the trick.

       I get complaint about no such property

svccfg: No such property group "method_context"

         Need to create a property group?

      Must be an easier way? Setting max fd's is a common need....
I want to do something like this

    svccfg -s network/http:lighttpd14  setprop general/fd_limit = count: 8192

      possible? How?


    -steve

>
> -Jared
>
>
>
> On Tue, Feb 12, 2013 at 11:13 AM, <steve at linuxsuite.org> wrote:
>
>>
>>    Howdy!
>>
>>           I need to up the max number of file descriptors of the
>> network/http:lighttpd14
>> service
>>
>>      plimit can do it after the service is up, but what is the correct
>> way
>> to have this set when the service is started? Is there some "property"
>> that can be changed with svccfg? I can find some reference to
>>  ${PROPERTY_GROUP}/fd_limit but doesn't seem to exist in lighttpd ?
>>
>>      This must be a common need. What is the correct way to
>> do this on OmnOS?
>>
>>
>>           thanx - steve
>>
>> _______________________________________________
>> OmniOS-discuss mailing list
>> OmniOS-discuss at lists.omniti.com
>> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>>
>




More information about the OmniOS-discuss mailing list