<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>The Napkin ~ A Blog By Highgroove Studios comments on Get notified of slow Rails web requests with Scout</title>
    <link>http://cleanair.highgroove.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The Napkin ~ A Blog By Highgroove Studios comments</description>
    <item>
      <title>"Get notified of slow Rails web requests with Scout" by derek</title>
      <description>&lt;p&gt;When something bad happens you want to find out about it as quickly as possible.&lt;/p&gt;


	&lt;p&gt;You&amp;#8217;re probably notified of uncaught exceptions. What about slow web requests, which can be just as annoying to a user?&lt;/p&gt;


	&lt;p&gt;Find about about slow web requests (and what might be causing them) in near real-time using &lt;a href="http://scoutapp.com"&gt;Scout&lt;/a&gt; and the &lt;a href="http://scoutapp.com/plugin_urls/3-ruby-on-rails-request-monitoring"&gt;Ruby on Rails Request Monitoring Plugin&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s how it goes down:&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;1. Install the Scout Client&lt;/strong&gt; &lt;span style="font-size:10px;padding-left:10px"&gt;&lt;img src="http://scoutapp.com/images/quicktime.jpg" alt="" /&gt; &amp;nbsp;&amp;nbsp;&lt;a href="http://scoutapp.com/videos/client_install"&gt;watch a video&lt;/a&gt;  (1 min 39 sec)&lt;/span&gt;&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2126240252/" title="Picture 8.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2401/2126240252_9768f4b8fd_o.png" width="408" height="23" alt="Picture 8.png" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;2. Install the Plugin&lt;/strong&gt; &lt;span style="font-size:10px;padding-left:10px"&gt;&lt;img src="http://scoutapp.com/images/quicktime.jpg" alt="" /&gt; &amp;nbsp;&amp;nbsp;&lt;a href="http://scoutapp.com/videos/plugin_install"&gt;watch a video&lt;/a&gt;  (1 min 55 sec)&lt;/span&gt;&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2125749837/" title="Picture 11.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2347/2125749837_6e11d5fbdc_o.png" width="257" height="163" alt="Picture 11.png" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;...that&amp;#8217;s it &amp;#8211; you&amp;#8217;re no longer a performance slacker.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;3. Scout reports back data&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Every 10 minutes, Scout collects information:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2125758599/" title="Picture 12.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2090/2125758599_d917b654f7.jpg" width="500" height="51" alt="Picture 12.png" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;If you have a slow request, an alert is generated. You can view the offending requests and their request times:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2125761553/" title="Picture 14.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2077/2125761553_e67f53b2a1.jpg" width="500" height="40" alt="Picture 14.png" /&gt;&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;strong&gt;View Web Requests on a Graph&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;You can easily graph this data as well with Scout&amp;#8217;s built-in graph builder:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2125766879/" title="Picture 16.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2413/2125766879_997d56816f_m.jpg" width="240" height="106" alt="Picture 16.png" /&gt;&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;strong&gt;Compare to other Rails applications&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;...but that&amp;#8217;s not all. You probably have multiple Rails applications. You can compare their performance on a single graph as well:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2125772397/" title="Picture 17.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2095/2125772397_d2f68de0cb.jpg" width="500" height="229" alt="Picture 17.png" /&gt;&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;strong&gt;Look for trends against other data&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;...we&amp;#8217;re not done yet though&amp;#8230;how about comparing the average request time vs. the size of the mongrel threads through the &lt;a href="http://scoutapp.com/plugin_urls/1-process-usage"&gt;Process Usage&lt;/a&gt; plugin?&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/72279533@N00/2126551554/" title="Picture 18.png by itsderek23, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2206/2126551554_9443f0dd19.jpg" width="500" height="189" alt="Picture 18.png" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Since it&amp;#8217;s easy to plot different data stats on Scout, you can quickly rule out possible reasons for slow performance. That&amp;#8217;s half the battle.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Signup for our launch email list&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;We&amp;#8217;re launching &lt;a href="http://scoutapp.com"&gt;Scout&lt;/a&gt; this winter. Signup on &lt;a href="http://scoutapp.com"&gt;our homepage&lt;/a&gt;, and we&amp;#8217;ll give you access to Scout before the public launch.&lt;/p&gt;

</description>
      <pubDate>Mon,  7 Jan 2008 08:22:00 EST</pubDate>
      <guid>&lt;a href="/articles/2008/01/07/ruby-on-rails-request-monitoring-with-scout"&gt;Get notified of slow Rails web requests with Scout&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2008/01/07/ruby-on-rails-request-monitoring-with-scout"&gt;Get notified of slow Rails web requests with Scout&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
