Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 18 | Comments: 72

filter by tags archive

Bug HuntWhat made this blog slow?

time to read 1 min | 98 words

A while ago the blog start taking 100% CPU on the client machines. Obviously we were doing something very wrong there, but what exactly was it?

We track down the problem to the following code, can you figure out what the problem?

image

image

More posts in "Bug Hunt" series:

  1. (30 Jan 2012) What made this blog slow?
  2. (27 Jan 2012) What made this blog slow?

Comments

ashic

ajaxComplete calls fetchResults causes ajaxComplete causes fetchResults....

Josh Reuben

IIS applicationPool MaxConcurrentRequestsPerCPU ?

simone

ajaxComplete triggers fetchResults which in turn triggers ajaxComplete

Ryan Heath

Each and every ajax call will trigger an ajaxComplete, which will trigger an ajax get, which will trigger an ajaxComplete, which will trigger an ajax get, which etc etc ... ;)

// Ryan

Frank Quednau

Kudos ayende for not misusing your position with regard of having the keenest and fastest bug finders.

PS I regularly must reload your captchas because they are hard. I am staring at what seems to be hebrew...

Matt Owen

I just happened to have Fiddler and this blog open on the day this happened. I saw the madness for myself. Hilarity ensued.

Rob White

ajaxComplete -> fetchResults -> ajaxComplete etc.

Even on a Friday, after a drink I spotted that one.

I assume that the real scenario was not as clearly presented.

More hard things please. ;-)

João Bragança

It would have worked if the profiler itself did not return X-RavenDb-Profiling-Id. Unless the profiler markup / js also needs this

Markus

I'm tempted to say stuff like "idiotic", "stupid" and "wtf?!". But I'm not going to.

Phil

I assume the fix is :-

if (!id) fetchresults(id.split(', '));

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

  1. RavenDB 3.0 New Stable Release - 5 hours from now
  2. Production postmortem: The industry at large - about one day from now
  3. The insidious cost of allocations - 2 days from now
  4. Buffer allocation strategies: A possible solution - 5 days from now
  5. Buffer allocation strategies: Explaining the solution - 6 days from now

And 3 more posts are pending...

There are posts all the way to Sep 11, 2015

RECENT SERIES

  1. Find the bug (5):
    20 Apr 2011 - Why do I get a Null Reference Exception?
  2. Production postmortem (10):
    01 Sep 2015 - The case of the lying configuration file
  3. What is new in RavenDB 3.5 (7):
    12 Aug 2015 - Monitoring support
  4. Career planning (6):
    24 Jul 2015 - The immortal choices aren't
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats