RSS

Archive for tag: debugging

The rogue Umbraco package

by Karl Kopp on Thursday, 15 July 2010

We recently had a situation where we had a client site that was built in Umbraco perform very poorly. I was asked to take a look, and the first thing I did was to use the umbdebugshowtrace=true query string to see what controls or XSLT were performing badly. To my surprise, everything seemed normal, the the pages were generated within 200ms.

So I opened up Charles Web Proxy, and watched a few requests. I then noticed that the image requests were taking AGES when we were using ImageGen. Digging a bit deeper, I noticed that on the server, every time a request was made for an image that used ImageGen, the CPU would spike to 100% for a few seconds then drop. Strange.

I logged on to the server, and found the cached directory thinking that the cache files weren't being written due to a permission problem. Explorer waited. and waited. and crashed! So I jumped on to our.umbraco.org and found this post about a bug in ImageGen. It seems that the cache files weren't being deleted or reused, so we had millions of files written to the cached directory!

I jumped to a command prompt, ran 'rd /s cached', waited 45 minutes (!), updated the DLL and ASHX files from the patch available here, and everything seems to be back to normal with CPU load well below 10%.

Tagged: , | Leave comment

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact me so we can take care of it!

Visit my friends!

A few highly recommended friends...

About

Some semi-interesting ramblings from a technology geek (me, Karl Kopp) about some future adventures...