DCSIMG
February 2012 - Posts - Rotem Bloom's Blog

Rotem Bloom's Blog

Share knowledge on .NET and web development

News

About Me

Glad to help and share knowledge on .NET and also huge fan of Dream Theater.

Contact me via messenger

View Rotem Bloom's profile on LinkedIn

Dream Theater Pics

Blogs I Read

February 2012 - Posts

CultureInfo.GetCultures High CPU and Memory problems under ASP.NET application with High Traffic

Hi,

I would like to share a problem I found when working with the class:

CultureInfo.GetCultures on ASP.NET application that has high traffic.

It look like the implementation of CultureInfo.GetCultures does not appropriate written to ASP.NET or there is a bug in code that cause to a High CPU peeks (80%-100% CPU peeks).

If you need to use this code on your ASP.NET application I would recommend to wrap the code inside a static object and not use the .NET CultureInfo.GetCultures.

 Rotem