Note that there are some explanatory texts on larger screens.

plurals
  1. POBookSleeve Wait() timeout in Razor page while benchmarking
    text
    copied!<p>I'm just beginning to mess around with BookSleeve (and redis) on Windows and just wanted to see if I could get some direction on what I may be doing wrong here. Using the following code, and then running ab against it, I can serve ~500 requests before w3wsvc.exe crashes. When I attach to the process to debug I see that the request to the redis server is timing out.</p> <pre><code>@using (var conn = new BookSleeve.RedisConnection("localhost")) { conn.Open(); var catgrabber = conn.ListRange(0,"categories",0,-1); byte[][] categories = conn.Wait(catgrabber); foreach (byte[] category in categories) { &lt;h3&gt; @System.Text.UTF8Encoding.UTF8.GetString(category) &lt;/h3&gt; var actgrabber = conn.ListRange(0, String.Format("activity:{0}", System.Text.UTF8Encoding.UTF8.GetString(category).Replace(' ', '_')), 0, - 1); byte[][] activities = conn.Wait(actgrabber); foreach (byte[] activity in activities) { &lt;label for="@System.Text.UTF8Encoding.UTF8.GetString(category).Replace(' ', '_'):@System.Text.UTF8Encoding.UTF8.GetString(activity):12345"&gt; &lt;input type="checkbox" id="@System.Text.UTF8Encoding.UTF8.GetString(category).Replace(' ', '_'):@System.Text.UTF8Encoding.UTF8.GetString(activity):12345" value="@System.Text.UTF8Encoding.UTF8.GetString(activity)"/&gt; @System.Text.UTF8Encoding.UTF8.GetString(activity) &lt;/label&gt;&lt;br /&gt; } } } </code></pre> <p>I have not yet installed the .NET async/await CTP. </p> <p>Now, for just a a single webpage hit this works great. I just wanted to bang on the server hosting this so I did ...</p> <p><code>ab -n 1000 -c 5 <a href="http://server/page.cshtml" rel="nofollow">http://server/page.cshtml</a></code></p> <p>It'll serve the 500-700 requests and then crash. While I am not sure I'll ever have this kind of load, I believe that this indicates a glaring flaw in my code and would like to have someone smarter than I point out what I'm doing wrong.</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload