Daily Archives: May 24, 2005

WSE2 Built In Tracing… Memory Problems??

I just had a call from a client with some big problems on their server that has IIS and SQL Server on it.

Their most used application that interacts directly with SQL Server was having problems – from many computers and randomly throughout the application.

I watched the SQL Server profiler and saw rpc requests coming in and occasionaly that request was not being followed by a BatchCompleted.

Also on that server, things were really slow.

A quick peek in the task manager showed a very bloated ASP.Net worker process (w3wp.exe). On the first call to a particular webservice, it was flying up from about 108,000K to over 550,000K.

Restarting that application made the memory drop back down to 108,000 or so.

I checked everything I could think of and tested each time after I made a change. Still the worker process was bloating.

Finally, I targetted two little seemingly innocent lines in my web.config. The flags whcih enable wse2 to trace it’s incoming and outgoing messages to xml files and also policy tracing. These are simple settings in the WSE2 config tool.

I commented them out and voila – all was well again.

Lesson learned – remember to turn of the darn analysis tools in a live app when you are not using them.

Crisis averted – phew!

http://www.AcehAid.org

Reminder: ADO.NET 2.0 MARS Webcast tomorrow

I hope everyone got to catch the ADO.NET 2.0 (What’s New Overview) webcast that Mark Dunn and Glen Gordon did yesterday. If not, look for it to show up in the on-demand webcasts soon.

Tomorrow at 12pm EST I will be doing another ADO.NET 2.0 webcast with Glen, specifically on the topic of MARS (Multiple Active Result Sets). This is a great feature of SQL Server 2005 that is leveraged by ADO.NET, but before you use it, you should understand what it does, where you will benefit from it, where you will be better off without it and some potential booby traps to avoid.

MARS will let you do some really interesting stuff with transactions as well as help you write some cleaner code in your ADO.NET.

Register here for the MARS webcast.

http://www.AcehAid.org