IIS taking 100% cpu during many minutes when having a lot of rows

5 replies. Last post: May 26, 2015 10:05 AM by leo Chandra
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

We have a grid with about 90,000 rows. It takes many minutes to show the page and during the page processing time, we noticed that w3wp.exe on the web server is taking all the available CPU.

We did some profiling in order to see where the problem was coming from and noticed that all the time is lost in WebGridRowCollection.Add doing Array.IndexOf. Is there a way for you to use HashTables or Dictionnary in this class instead? it would be more efficient for large data source.

See the attached png containing the Call Graph of the profing we did with Redgate Profiler.

Regards,

Alex

All times are GMT -5. The time now is 10:59 AM.
Previous Next