<div class="gmail_quote">I was talking to Miyagawa about this and he mentioned Plack::Middleware::ServerStatus(::Lite); it does essentially what Apache's mod_status does and returns info on workers and active requests. Maybe something to look at? The Lite edition should do what you want if I understood your initial post correctly…</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Matt</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On 15 March 2012 07:33, Toby Corkindale <span dir="ltr"><<a href="mailto:toby.corkindale@strategicdata.com.au">toby.corkindale@strategicdata.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 14/03/12 18:14, Andrew McN wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Measure the number of open sockets perhaps? Some limitation die to<br>
keep-Alive sockets.<br>
<br>
Sockets are probably better than looking at process states, but that's<br>
also possible.<br>
</blockquote>
<br>
I considered this, but there are many states sockets can be in, and not all of them indicate that a process is held open for them.<br>
(ie. There are pending open and pending close states which are handled in the kernel)<br>
<br>
I have also considered using an IPC semaphore flag, which you can atomically increment or decrement from any process, so you could put increments and decrements in appropriate parts of your code..<br>
<br>
but I was really hoping that someone else had already created all of this! Surely monitoring the number of active Starman processes is an important metric for anyone using it in production?<br>
<br>
-Toby<br><span class="HOEnZb"><font color="#888888"><br></font></span><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Melbourne-pm mailing list<br>
<a href="mailto:Melbourne-pm@pm.org" target="_blank">Melbourne-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/<u></u>listinfo/melbourne-pm</a><br>
</div></div></blockquote></div><br>