Eric Wong <[email protected]> wrote:
> Lawrence Pit <[email protected]> wrote:
> > A related question: is it possible to get insight in what's in the
> > unicorn queue and for how long requests have been queued there?

<snip>

> Using SystemTap (or similar solutions), I think the same information may
> be retrieved without modifying the Ruby process.  I'm just starting my
> exploration of SystemTap, though...

With a little help from a SystemTap maintainer, I wrote a script
to get the TCP queue times easily.

The UNIX domain socket one is still pretty fragile (comments inline) but
appears to work:

http://mid.gmane.org/[email protected]

If you're using an older SystemTap, you may need to swap cpu_clock_*(0)
with gettimeofday_*().
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to