SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Sundararajan Subramanian
Associate Technical Architect | Aditi Technologies Ltd.,
http://tinyurl.com/codeshelve | sundararajans@hotmail.com
Asp.Net Resource Monitoring
Traditionally monitored at worker process
level
No insight into the individual applications
sharing the same worker process.
CLR 4 introduces ARM – Application
domain resource management
Enables monitoring resources at individual
appdomain level
Asp.Net Resource Monitoring
ASP.NET 4 exposes performance counters
built on ARM
Managed Memory Used
% Managed Processor Time
Asp.Net Resource Monitoring
• Enable ARM in aspnet.config file in the .Net
framework directory
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<runtime>
<appDomainResourceMonitoring enabled="true"/>
</runtime>
</configuration>
Resource Monitoring
Extensible Request Validation
Write your own custom Request Validators
Step1: Inherit from
System.Web.Util.RequestValidator
Step2: Override IsValidRequestString(….)
Step3: configure custom request validator in
web.config
<httpRuntime requestValidationType="Samples.MyValidator,
Samples" />
Request Validation
Session State
Out-Of-Proc Session State Compression
Compressed using GZIP -
System.IO.Compression.GZipStream
<sessionState mode="SqlServer"
sqlConnectionString="data source=dbserver;Initial
Catalog=aspnetstate"
allowCustomSqlDatabase="true"
compressionEnabled="true" />
Auto start Web applications
Intensive operations to be performed when
application starts?
First request takes time?
Asp.Net 4 + IIS 7.5 + Windows 2008 R2 –
Configure Autostart Web apps
<applicationpools>
<add name="defaultappPool" startMode="AlwaysRunning"
/>
</applicationpools>
<sites>
<site name="MySite" id="1">
<application path="/"
serviceAutoStartEnabled="true"
serviceAutoStartProvider="PrewarmMyCache" >
<!-- Additional content -->
</application>
</site>
</sites>
<!-- Additional content -->
<serviceautostartproviders>
<add name="PrewarmMyCache"
type="MyNamespace.CustomInitialization, MyLibrary"
/>
</serviceautostartproviders>
Output Caching
Cache the response (output) in memory
previously
High memory footprint in case of
applications with heavy traffic
Asp.Net 4.0 provides features to write
custom output cache providers
Can use any storage mechanism to store
HTML content
Output cache
Create Custom output cache provider by
inheriting from
System.Web.Caching.OutputCacheProvider
Configure the provider in the providers
section of the web.config
Output Caching
URL limit
Previously 260 character limit.
Extend this character limit in Asp.net 4.0 by
config
<httpRuntime maxRequestPathLength="260"
maxQueryStringLength="2048" />
requestPathInvalidChars - Configure the
set of valid characters in the url
<httpRuntime
requestPathInvalidChars="&lt;,&gt;,*,%,&amp;,:,,?
" />
Other features
Custom Encoders
encoderType in <httpruntime> element
Object caching
Features of Asp.Net cache brought to other
non web applications
RedirectPermanent(..) – HTTP 301
References
Asp.Net
http://www.asp.net/
Feedback / QnA
Your Feedback is Important!
Please take a few moments to fill out our online
feedback form
Use the Question Manager on LiveMeeting
to ask your questions now!
Contact (optional slide)
Code snippets blog
http://tinyurl.com/codeshelve
http://sundars.net
Email Address
sundararajans@hotmail.com
Twitter - @sundararajans
Asp.Net 4.0 Core runtime enhancements

Weitere ähnliche Inhalte

Was ist angesagt?

Test Automation in Flex - Richa Sharma
Test Automation in Flex - Richa SharmaTest Automation in Flex - Richa Sharma
Test Automation in Flex - Richa SharmaIndicThreads
 
How to Configure the CA Workload Automation System Agent agentparm.txt File
How to Configure the CA Workload Automation System Agent agentparm.txt FileHow to Configure the CA Workload Automation System Agent agentparm.txt File
How to Configure the CA Workload Automation System Agent agentparm.txt FileCA Technologies
 
OpsWorks for Chef Automate - Auckland AWS
OpsWorks for Chef Automate - Auckland AWS OpsWorks for Chef Automate - Auckland AWS
OpsWorks for Chef Automate - Auckland AWS Matt Ray
 
Azure Meetup: Understanding Azure App Service Plan
Azure Meetup: Understanding Azure App Service PlanAzure Meetup: Understanding Azure App Service Plan
Azure Meetup: Understanding Azure App Service Plandotnetcode
 
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...WASdev Community
 
Integrating ONE Automation with Business Systems with the API
Integrating ONE Automation with Business Systems with the APIIntegrating ONE Automation with Business Systems with the API
Integrating ONE Automation with Business Systems with the APICA | Automic Software
 

Was ist angesagt? (10)

OpManager 7
OpManager 7OpManager 7
OpManager 7
 
Test Automation in Flex - Richa Sharma
Test Automation in Flex - Richa SharmaTest Automation in Flex - Richa Sharma
Test Automation in Flex - Richa Sharma
 
How to Configure the CA Workload Automation System Agent agentparm.txt File
How to Configure the CA Workload Automation System Agent agentparm.txt FileHow to Configure the CA Workload Automation System Agent agentparm.txt File
How to Configure the CA Workload Automation System Agent agentparm.txt File
 
Performance testing material
Performance testing materialPerformance testing material
Performance testing material
 
Ambari
AmbariAmbari
Ambari
 
CI: Meow or Never
CI: Meow or NeverCI: Meow or Never
CI: Meow or Never
 
OpsWorks for Chef Automate - Auckland AWS
OpsWorks for Chef Automate - Auckland AWS OpsWorks for Chef Automate - Auckland AWS
OpsWorks for Chef Automate - Auckland AWS
 
Azure Meetup: Understanding Azure App Service Plan
Azure Meetup: Understanding Azure App Service PlanAzure Meetup: Understanding Azure App Service Plan
Azure Meetup: Understanding Azure App Service Plan
 
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
 
Integrating ONE Automation with Business Systems with the API
Integrating ONE Automation with Business Systems with the APIIntegrating ONE Automation with Business Systems with the API
Integrating ONE Automation with Business Systems with the API
 

Andere mochten auch

Visie op armoede Tjeerd de Boer
Visie op armoede Tjeerd de BoerVisie op armoede Tjeerd de Boer
Visie op armoede Tjeerd de BoerChris Noordam
 
Opaque to clear standards
Opaque to clear standardsOpaque to clear standards
Opaque to clear standardsTansy Jessop
 
Immunosuppression post liver transplant
Immunosuppression post liver transplantImmunosuppression post liver transplant
Immunosuppression post liver transplantShankar Zanwar
 
pollution - Noise pollution
 pollution - Noise pollution  pollution - Noise pollution
pollution - Noise pollution anju1992
 
Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.
Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.
Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.alena4344
 
extreme adventure activities
extreme adventure activitiesextreme adventure activities
extreme adventure activitiesMackenzie DeMuth
 
pancreatic neuroendocrine tumors
pancreatic neuroendocrine tumorspancreatic neuroendocrine tumors
pancreatic neuroendocrine tumorsShankar Zanwar
 
Volunteers Application Form The Newcastle Spanish Circle
Volunteers Application Form The Newcastle Spanish CircleVolunteers Application Form The Newcastle Spanish Circle
Volunteers Application Form The Newcastle Spanish CirclePoncela
 
Public trust doctrinE
Public trust doctrinEPublic trust doctrinE
Public trust doctrinEshassim
 

Andere mochten auch (12)

Historical Buildings
Historical BuildingsHistorical Buildings
Historical Buildings
 
Visie op armoede Tjeerd de Boer
Visie op armoede Tjeerd de BoerVisie op armoede Tjeerd de Boer
Visie op armoede Tjeerd de Boer
 
Opaque to clear standards
Opaque to clear standardsOpaque to clear standards
Opaque to clear standards
 
GANO PLUS
GANO PLUSGANO PLUS
GANO PLUS
 
Bad science 2015
Bad science 2015 Bad science 2015
Bad science 2015
 
Immunosuppression post liver transplant
Immunosuppression post liver transplantImmunosuppression post liver transplant
Immunosuppression post liver transplant
 
pollution - Noise pollution
 pollution - Noise pollution  pollution - Noise pollution
pollution - Noise pollution
 
Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.
Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.
Відкритий урок з трудового навчання, вчитель – Аверков Анатолій Павлович.
 
extreme adventure activities
extreme adventure activitiesextreme adventure activities
extreme adventure activities
 
pancreatic neuroendocrine tumors
pancreatic neuroendocrine tumorspancreatic neuroendocrine tumors
pancreatic neuroendocrine tumors
 
Volunteers Application Form The Newcastle Spanish Circle
Volunteers Application Form The Newcastle Spanish CircleVolunteers Application Form The Newcastle Spanish Circle
Volunteers Application Form The Newcastle Spanish Circle
 
Public trust doctrinE
Public trust doctrinEPublic trust doctrinE
Public trust doctrinE
 

Ähnlich wie Asp.Net 4.0 Core runtime enhancements

NET Aspire - NET Conf IL 2024 - Tamir Dresher.pdf
NET Aspire - NET Conf IL 2024 - Tamir Dresher.pdfNET Aspire - NET Conf IL 2024 - Tamir Dresher.pdf
NET Aspire - NET Conf IL 2024 - Tamir Dresher.pdfTamir Dresher
 
Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023
Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023
Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023VMware Tanzu
 
Free OpManager training Part1- Discovery and classification season#3
Free OpManager training Part1- Discovery and classification season#3Free OpManager training Part1- Discovery and classification season#3
Free OpManager training Part1- Discovery and classification season#3ManageEngine, Zoho Corporation
 
Delivering High-Availability Web Services with NGINX Plus on AWS
Delivering High-Availability Web Services with NGINX Plus on AWSDelivering High-Availability Web Services with NGINX Plus on AWS
Delivering High-Availability Web Services with NGINX Plus on AWSNGINX, Inc.
 
FabricServer Technology Overview
FabricServer Technology OverviewFabricServer Technology Overview
FabricServer Technology OverviewIvan_datasynapse
 
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon Web Services
 
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon Web Services
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentChui-Wen Chiu
 
DevOps for Windows Admins
DevOps for Windows Admins DevOps for Windows Admins
DevOps for Windows Admins Rex Antony Peter
 
Using Apache as an Application Server
Using Apache as an Application ServerUsing Apache as an Application Server
Using Apache as an Application ServerPhil Windley
 
Secure Management of Fleet at Scale
Secure Management of Fleet at ScaleSecure Management of Fleet at Scale
Secure Management of Fleet at ScaleAmazon Web Services
 
Setup and run automated test framework for android application
Setup and run automated test framework for android applicationSetup and run automated test framework for android application
Setup and run automated test framework for android applicationKonstantin Natalukha
 
cloud basics.
cloud basics.cloud basics.
cloud basics.Mercy joy
 
Operations: Production Readiness Review – How to stop bad things from Happening
Operations: Production Readiness Review – How to stop bad things from HappeningOperations: Production Readiness Review – How to stop bad things from Happening
Operations: Production Readiness Review – How to stop bad things from HappeningAmazon Web Services
 

Ähnlich wie Asp.Net 4.0 Core runtime enhancements (20)

NET Aspire - NET Conf IL 2024 - Tamir Dresher.pdf
NET Aspire - NET Conf IL 2024 - Tamir Dresher.pdfNET Aspire - NET Conf IL 2024 - Tamir Dresher.pdf
NET Aspire - NET Conf IL 2024 - Tamir Dresher.pdf
 
PDC Highlights
PDC HighlightsPDC Highlights
PDC Highlights
 
Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023
Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023
Simplify and Scale Enterprise Spring Apps in the Cloud | March 23, 2023
 
Free OpManager training Part1- Discovery and classification season#3
Free OpManager training Part1- Discovery and classification season#3Free OpManager training Part1- Discovery and classification season#3
Free OpManager training Part1- Discovery and classification season#3
 
Delivering High-Availability Web Services with NGINX Plus on AWS
Delivering High-Availability Web Services with NGINX Plus on AWSDelivering High-Availability Web Services with NGINX Plus on AWS
Delivering High-Availability Web Services with NGINX Plus on AWS
 
FabricServer Technology Overview
FabricServer Technology OverviewFabricServer Technology Overview
FabricServer Technology Overview
 
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
 
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component Development
 
DevOps for Windows Admins
DevOps for Windows Admins DevOps for Windows Admins
DevOps for Windows Admins
 
Fs And Self Service
Fs And Self ServiceFs And Self Service
Fs And Self Service
 
Using Apache as an Application Server
Using Apache as an Application ServerUsing Apache as an Application Server
Using Apache as an Application Server
 
Secure Management of Fleet at Scale
Secure Management of Fleet at ScaleSecure Management of Fleet at Scale
Secure Management of Fleet at Scale
 
Setup and run automated test framework for android application
Setup and run automated test framework for android applicationSetup and run automated test framework for android application
Setup and run automated test framework for android application
 
Netflix conductor
Netflix conductorNetflix conductor
Netflix conductor
 
cloud basics.
cloud basics.cloud basics.
cloud basics.
 
Operations: Production Readiness Review – How to stop bad things from Happening
Operations: Production Readiness Review – How to stop bad things from HappeningOperations: Production Readiness Review – How to stop bad things from Happening
Operations: Production Readiness Review – How to stop bad things from Happening
 
Si so product 1 day technical
Si so product 1 day technicalSi so product 1 day technical
Si so product 1 day technical
 
App fabric introduction
App fabric introductionApp fabric introduction
App fabric introduction
 
Asp.net tips
Asp.net tipsAsp.net tips
Asp.net tips
 

Asp.Net 4.0 Core runtime enhancements

  • 1. Sundararajan Subramanian Associate Technical Architect | Aditi Technologies Ltd., http://tinyurl.com/codeshelve | sundararajans@hotmail.com
  • 2. Asp.Net Resource Monitoring Traditionally monitored at worker process level No insight into the individual applications sharing the same worker process. CLR 4 introduces ARM – Application domain resource management Enables monitoring resources at individual appdomain level
  • 3. Asp.Net Resource Monitoring ASP.NET 4 exposes performance counters built on ARM Managed Memory Used % Managed Processor Time
  • 4. Asp.Net Resource Monitoring • Enable ARM in aspnet.config file in the .Net framework directory <?xml version="1.0" encoding="UTF-8" ?> <configuration> <runtime> <appDomainResourceMonitoring enabled="true"/> </runtime> </configuration>
  • 6. Extensible Request Validation Write your own custom Request Validators Step1: Inherit from System.Web.Util.RequestValidator Step2: Override IsValidRequestString(….) Step3: configure custom request validator in web.config <httpRuntime requestValidationType="Samples.MyValidator, Samples" />
  • 8. Session State Out-Of-Proc Session State Compression Compressed using GZIP - System.IO.Compression.GZipStream <sessionState mode="SqlServer" sqlConnectionString="data source=dbserver;Initial Catalog=aspnetstate" allowCustomSqlDatabase="true" compressionEnabled="true" />
  • 9. Auto start Web applications Intensive operations to be performed when application starts? First request takes time? Asp.Net 4 + IIS 7.5 + Windows 2008 R2 – Configure Autostart Web apps
  • 10. <applicationpools> <add name="defaultappPool" startMode="AlwaysRunning" /> </applicationpools> <sites> <site name="MySite" id="1"> <application path="/" serviceAutoStartEnabled="true" serviceAutoStartProvider="PrewarmMyCache" > <!-- Additional content --> </application> </site> </sites> <!-- Additional content --> <serviceautostartproviders> <add name="PrewarmMyCache" type="MyNamespace.CustomInitialization, MyLibrary" /> </serviceautostartproviders>
  • 11. Output Caching Cache the response (output) in memory previously High memory footprint in case of applications with heavy traffic Asp.Net 4.0 provides features to write custom output cache providers Can use any storage mechanism to store HTML content
  • 12. Output cache Create Custom output cache provider by inheriting from System.Web.Caching.OutputCacheProvider Configure the provider in the providers section of the web.config
  • 14. URL limit Previously 260 character limit. Extend this character limit in Asp.net 4.0 by config <httpRuntime maxRequestPathLength="260" maxQueryStringLength="2048" /> requestPathInvalidChars - Configure the set of valid characters in the url <httpRuntime requestPathInvalidChars="&lt;,&gt;,*,%,&amp;,:,,? " />
  • 15. Other features Custom Encoders encoderType in <httpruntime> element Object caching Features of Asp.Net cache brought to other non web applications RedirectPermanent(..) – HTTP 301
  • 17. Feedback / QnA Your Feedback is Important! Please take a few moments to fill out our online feedback form Use the Question Manager on LiveMeeting to ask your questions now!
  • 18. Contact (optional slide) Code snippets blog http://tinyurl.com/codeshelve http://sundars.net Email Address sundararajans@hotmail.com Twitter - @sundararajans