Ayende @ Rahien

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

ayende@ayende.com

+972 52-548-6969

@

Posts: 5,947 | Comments: 44,540

filter by tags archive

Bug HuntWhat made this blog slow?


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

No future posts left, oh my!

RECENT SERIES

  1. RavenDB Sharding (2):
    21 May 2015 - Adding a new shard to an existing cluster, the easy way
  2. The RavenDB Comic Strip (2):
    20 May 2015 - Part II – a team in trouble!
  3. Challenge (45):
    28 Apr 2015 - What is the meaning of this change?
  4. Interview question (2):
    30 Mar 2015 - fix the index
  5. Excerpts from the RavenDB Performance team report (20):
    20 Feb 2015 - Optimizing Compare – The circle of life (a post-mortem)
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats