Improve ASP.NET Performance By Disabling ViewState And Setting Session As ReadOnly

During recent engagement we tried to improve performance of some web page. Original response time was 0.74 seconds. Our objective was to get 0.4 seconds. The page was simple Html Frameset that was loading two dynamic ASPX pages. Using technique described in Performance Testing For The Masses we identified that it takes 0.4  seconds for one page…

7

Use Performance Counters Templates To Streamline Performance Analysis

I create perf counters sets up front. That way I could start collecting and measuring proper metrics right away each time I am assigned to do detailed performance analysis. Measuring .NET Application Performance lists important perf counters. What I really love about it is that the guide holds the list of performance counters to collect, explanation for…

2

Web Services Over SSL – Is It Really That Slow Like They Say?

My answer is “no”. I am working on solution where there is no Windows Active Directory Domain so we cannot utilize our beloved Kerberos and Windows Integrated Authentication saving big on configuration and management while taking advantage of increased security it offers. Other technique that we thought that could give us a lots of benefits in…

2

WCF Security In Intranet Scenario : Thoughts On Cons and Pros

I am researching on best practices with WCF security in terms of “YOU SHOUD” vs “YOU CAN”. While it is great to have “How to” stuff I am also interested in “Why” angle. I have common simple scenario of WinForms client consuming WCF service inside corp walls with Active Directory deployed. Here is what I…

3

Typed DataSet – Potential Performance And Security Risk

Are you using Typed DataSet as DTO (data transfer object)? Are you building distributed systems where the DTO goes back and forth including your Smart Client? If yes then I think you should be aware that the most of your DB schema can be easily revealed using my friends ILDASM and FindStr. It is common pattern…

4

Performance Workshop In Munich MTC Labs – Lessons Learned

How to get a hold of what’s going on when getting ownership of the running project? How to achieve results when strictly time- and resource-boxed? How to keep team members focused on objectives and reduce distraction?   Here is what I’ve done: Visualizing and modeling. White board is my best friend to get fast hold…

1

Performance Testing Objectives Document Template

Concise performance testing objectives document helps me staying focused, save time by creating shared vision among so many hands that are in it – biz analysts representing end users, dev teams, testers, IT folks and some more. To generate simple performance testing objectives document template I used stuff found here: Improving .NET Application Performance and…

6

Performance Testing For The Masses

“FAST is cool, huh” – good friend of mine told me. No doubt. How do I identify the bottleneck with architecture like this? Is it Browser starving resources for client side JavaScript/AJAX heavy processing? Is it jumbo Http Responses (ViewState for example)? Is it Web Server processing takes my time? Is it Application Server (let’s assume it…

10

Performance Gain – Security Risk

Reposted from Performance Gain – Security Risk Good intention for better performance may lead to flawed design and bring in more security risks. Consider the following ASPX page: Here is why it cannot be accessed: When trying to navigate there you get:   Great, love URL authorization!!   Now let’s examine another ASPX page: When navigating to…

4