Thursday 30 October 2014

Modified ASP.NET 4.5 CPU Throttling
This feature is intended to correct negative scaling in server throughput when handling async requests on a server with saturated CPU.
ASP.NET throttles requests by adding them to a native queue until the managed layer is ready to process them. This is the same native queue used when MaxConcurrentRequestsPerCpu or MaxConcurrentThreadsPerCpu is exceeded. ASP.NET attempts to dequeue when other requests enter or complete the pipeline. This behavior is fine for requests queued due to high concurrency, since a large number of requests are executing and headed for completion. However, CPU throttling is not based on number of requests but on how expensive they are. As a result, there could be just a few CPU-intensive requests causing a backup in the native queue with no way to empty it aside from incoming requests.

ASP.NET CPU throttling was modified just prior to RTM. ASP.NET now supports more aggressive dequeuing from the native queue both with incoming/completing requests and via a timer. Also, a second configuration, “percentCpuLimitMinActiveRequestPerCpu” was added to ensure a minimum number of requests are being served before throttling kicks in. The default throttling limit was also lowered from 99% to 90% in order to detect high pressure and avoid negative scaling earlier.

In conclusion, it is highly recommended that you don’t run your web servers at full capacity. Enabled by default, this feature is primarily intended as a safety net to prevent degradation in performance when serving async requests under load. If you find that requests are sitting in the queue (see: “ASP.NET\Requests in Native Queue”) even after the CPU has normalized, try disabling the feature by setting percentCpuLimit to 0.

<configuration>
    <system.web>
        <applicationPool percentCpuLimit=”90” percentCpuLimitMinActiveRequestPerCpu=”100”>
    </system.web>

</configuration>

Tuesday 14 October 2014

Hi Everyone.
I am posting my first tech tip in the 100 series .

It's not new to everyone but regarding our most commonly used display control in Asp.net (Gridview).
We have been using Gridview in majority of cases as for data display.
Here i would suggest a better approach and alternative to conventional Asp.net using Jquery GRID.
Advantages :
1.Default sorting,search,paging by all available columns.very good styling and Ajax enabled with no page refresh updates data.
2.Data transfer using Jason hence lightweight and fast.
3.Simplified DML operations in  GRID for inline Add/Edit as well as Jquery Pop up for the same.
4.Easy integration with asp.net. i had used in already in my earlier application.Made JqGrid as user control and used it across all pages of my application for tabular data display.

For more details you may visit the below link
http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NET

I am sure this tip would be really helpful in making our Asp.net application faster and stylish.

#100ORIONTechtips