Eric Wong <normalper...@yhbt.net> wrote: > Lawrence Pit <lawrence....@gmail.com> 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/20121130223518.ga13...@dcvr.yhbt.net If you're using an older SystemTap, you may need to swap cpu_clock_*(0) with gettimeofday_*(). _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying