`Steve,<div><br></div><div>I don't have lighttpd installed, but it should work like anything else that is a proper service.</div><div><br></div><div>You can add a project associated with lighttpd if there isn't already one, and set the max open file descriptors for that project.</div>
<div><br></div><div>Here's an example:</div><div></div><div class="markdown-here-wrapper" id="markdown-here-wrapper-716635" style="font-size:1em;font-family:Helvetica,arial,freesans,clean,sans-serif;color:rgb(34,34,34);background-color:rgb(255,255,255);border:none;line-height:1.2">
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;overflow:auto;margin:1em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;background-color:rgb(253,246,227);color:rgb(101,123,131);background-repeat:initial initial">$ 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</code></pre>
</div><div></div><div><br></div><div>That *should* do the trick. I'll let someone from OmniOS correct me if I'm wrong, but that's what we do with our service (Riak) that needs a ton of file descriptors.</div>
<div><br></div><div>-Jared</div><div><span style="background-color:rgb(255,255,255);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre"><br></span></div><div><span style="background-color:rgb(255,255,255);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre"><br>
</span></div><div><span style="background-color:rgb(255,255,255);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre"><br></span></div><div><div class="gmail_quote">
On Tue, Feb 12, 2013 at 11:13 AM, <span dir="ltr"><<a href="mailto:steve@linuxsuite.org" target="_blank">steve@linuxsuite.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Howdy!<br>
<br>
I need to up the max number of file descriptors of the<br>
network/http:lighttpd14<br>
service<br>
<br>
plimit can do it after the service is up, but what is the correct way<br>
to have this set when the service is started? Is there some "property"<br>
that can be changed with svccfg? I can find some reference to<br>
${PROPERTY_GROUP}/fd_limit but doesn't seem to exist in lighttpd ?<br>
<br>
This must be a common need. What is the correct way to<br>
do this on OmnOS?<br>
<br>
<br>
thanx - steve<br>
<br>
_______________________________________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
</blockquote></div><br></div>
`