Web form applications performance

Hi everyone,
I am trying to solicit discussion related to performance monitoring, 
scalability, and the solutions for Web form applications.

Let's say you start out with an elementary c/s pb app with connect on 
open, disconnect on close with Auto commit = False, and only two tiers
architecture. Then the users complain, "Sometimes the application is too 
slow".

So first question how could I tell where is the problem?
Database, Web server, Network...
But, more specifically:
1.Database: Database connections, exclusive locks etc.
2.Web server: Postbacks, IIS memory etc.
3.Network latency
4.anything else?

Then what are the possible solutions?
1. Connection pooling, commits, keeping the app stateless as possible, 
          data cashing, architectural redesign/tiering ?
2. Code changes like removing code in the rowfocuschanged event etc.
    Configuring IIS for better performance? Some memory management?
3. I doubt if network latency issues are relevant for webform.

Finally, can anyone with implantations experience share -what can be 
expected as scaling limits,and where the benefit of applying these 
solutions vs. keeping it simple diminishes.

There may be articles out there so urls are welcome as well.
I think this a very relevant topic for this forum, so thanks to anyone 
willing to contribute knowledge.

Alon Baadani.







0
Alon
2/4/2009 9:05:44 PM
sybase.net.webform 1327 articles. 0 followers. Follow

1 Replies
412 Views

Similar Articles

[PageSpeed] 36

> So first question how could I tell where is the problem?
> Database, Web server, Network...
> But, more specifically:
> 1.Database: Database connections, exclusive locks etc.
> 2.Web server: Postbacks, IIS memory etc.
> 3.Network latency
> 4.anything else?

For the database side, use what you did when it was normal client server.  
Locks, connections, processes..all still show the DB level.

On the web server,.Net brings a whole bunch fun tools to play with but  
lets start at the server first. Memory, Network utilization etc all can  
show if things are passing smoothly in/out of the machine. Some of these  
tools you may find useful  
http://technet.microsoft.com/en-us/library/cc780913.aspx .

Now to the web application itself, one of the great things about .Net is  
all the performance counters  
(http://msdn.microsoft.com/en-us/library/fxk122b4.aspx). They can really  
help you locate problem areas. You can Google, debugging and monitoring  
asp.net for some other good resources.

You basically walk the tech stack looking for problems. Start with your  
application and work down because usually, these computers do exactly what  
we tell them to do :)


> Then what are the possible solutions?
> 1. Connection pooling, commits, keeping the app stateless as possible,  
>           data cashing, architectural redesign/tiering ?
> 2. Code changes like removing code in the rowfocuschanged event etc.
>     Configuring IIS for better performance? Some memory management?
> 3. I doubt if network latency issues are relevant for webform.
>

Depends on the problem really. Everything you mention can be used in  
various situations to alieve particular problems. Each has its own  
tradeoffs. For example, I wouldnt suggest just anyone start caching things  
on the server without knowing the ins-outs of it. However something like  
connection pooling is relatively standard and harmless provided you  
licensed your DB that way. Thats a big difference for web apps too because  
usually we opt for a service account connection rather than a actual user.

I tend to believe that for most PB applications moving to this environment  
will need require some redesign unless you are very lucky. How do you know  
if your lucky? Well, if your application has good segmentation using NVOs  
for example, you may be better off than those who shove everything in the  
event. Keeping the application stateless helps on the web side as well but  
being stateful was exploited in C/S for speed. How you manage state also  
matters. For example, on the scaling point, if you ever deploy into a web  
farm, then you might want move state and session management into a DB.  
Once again tradeoffs.

In most cases, you will not have to mess with IIS much after  
configuration. However, there are best practices for configuration and  
security that you will want to read through. IIS 6 and later are pretty  
good at managing the details for you unless you get into some large scale  
operations with farms and clusters and such.

One of the more problematic areas with web applications is that its so  
easy to build them but requires a lot of knowledge to manage servers full  
of them. For these type, you have your basic MSDN v TechNet split. Many of  
your concerns can be located by having server management knowledge. But  
thats a lot of non-dev stuff to know if your not interested in it.  
Otherwise, you need a good Windows system admin to help you out and point  
out problems. But at the same time, the admin has to take active interest  
in your work as well.


Troy



0
Troy
2/10/2009 7:55:24 PM
Reply:

Similar Artilces:

ASP.NET 2.0 Web Application installed in IIS as an ASP.NET 1.1 application (Web Application Project)
I have a Web Application Project (newly migrated from VS2003 with VS2005-SP1) and a Web Setup Project.When I install the generated msi on a computer that has both .NET 1.1 and .NET 2.0, the application does not start because of a tag in Web.config that does not exist in ASP.NET 2.0. When I check the ASP.NET version (right-clic on the Web Application Folder in IIS > Properties > ASP.NET) I can see that the ASP.NET version is 1.1.  i have the same kind of problem .. can any one solve it..prasant In web Setup project on Custom Action tab add in Install action next *.vbs-script:Di...

ASP.NET web application vs ASP.NET mobile web application
Hello, i have one question here. In New Project section, i found two item that are ASP.NET web application and ASP.NET mobile web application. Since i would like to start my project by creating a web application that can be accessed through mobile devices such as PDA, therefore can anyone suggest me which one is better to be chosen and why should i choose the suggested answer...Tq... An ASP.NET mobile web application uses a different set of controls to output HTML optimized for mobile devices, so thats your best bet :)...

Deploying Web Application
Hi AllI have been playing around with both setups and have a few questions. Firstly the ASP.Net web application: I have created a Web Application with a default.aspx. I have added a class library project to this project called DAL (Data Access Layer) and in this project created a simple class that opens and closes a connection just for testing purposes. I have added a reference to this project in the original web application... the one with the Default.aspx. Anyway everything works perfectly as it should but my question for this one is how do you deploy this to a server? I've re...

Converting .net desktop application(vb.net app) to .net web application(asp.net app)
is it possible to convert/upgrad .net desktop application(vb.net application) to .net web application(asp.net application) ? If possible how? is there any extra software or wrapper for it? If possible please...Thanks..  There is no conversion software or wrappers that I know of. For the most part, you will have to rewrite it since the platforms are completely different.Cheers,       Kevin JonesMy Blog...

Difference between mobile web applications and standard web applications + mobile web forms in them ?
I have a series of existing sites, but I need to make a PPC version of them (there already is one, but it uses standard web forms). Since the code-behind looks a lot in the PC and in the PPC version, I'd like both versions to use the same files for the code. I'm left with 2 options : - either create a new mobile web application for each existing web application, and put all the code behind in .dlls which I'll call from each page ; - or, if this is possible (and I'd rather do it), simply add mobile web forms to the existing web applications and redirect at login to the appropriate ve...

Using a windows form application on a webpage/HTML/ASP.net web application (with some other controls).
hi there  I am a final year engineering student and doing a project to design a website which include some kind of controls to control the water level of a tank. but I got some problems with putting a windows form application (with the extra.dll files and some controls that are not supplied by VS2005) on a webpage by using VS 2005. in addtion maybe i also need to ask the client to download the  several .dll ( maybe 10)  files . can anyone please help?    Thanks a lot >< Jessica These links should help you out. http://aspnet.4guysfromrolla.co...

C#.NET WEB APPLICATION
hei guys, i need help on my application, i'm using C#.NET as front-ed and SQL as back-end, aside from a datagrid, i want to display my data using textboxes and not a datagrid, i can do it using Visual Basic 6 but since i'm a newbee at C#.NET i don't know how to do it, specially the codes, can anyone help me with it? thank you in advance! If you are doing windows development, i would suggest using 'DataForm wizard' (Use Solution Explorer-->Rightclick project-->Add new Item-->New DataForm). It will guide you through steps. If you are doing web apps. Use quickstart to learn them. h...

No Asp.net mobile web application template in VS 2005 team suite How Can I create Asp.net mobile web application
I am using VS 2005 team suite. I want's to create a mobile web application. How Can I create a mobile web application in VS 2005. There is no template for Asp.net mobile web application [as in VS 2003] Not if I create a new Project or If I create a new WebSite project Also I have make a project of smart device which works perfectly fine. In the toolbox If I add new item I can see System.web.ui.mobilecontrols. I think I am just missing the template for ASP.NET Mobile Web Application. I don't want's to download and install full windows CE 5.0 [800mb] for just this temp...

web.net window form to asp.net form
is there a way to convert a form written in vb.net in a window form to an asp.net form ?Computer Engineer, CIW , MCP , MCSAhttp://www.elmajdal.net...

Call one web application forms with in another web application ..
I am having forms named A1,A2,A3,A4,A5 in my web application1. And i am having B1,B2,B3,B4 and B5 in my web application2.I am using Windows authentication for my web application1. And i am using Form Authentication for my web application2.I am planning to host these 2 applications in 2 different servers.Here i am planning to have web application1 as a stand alone application.And Web application2 should interact with web application1.I want to call my web application1 forms in my web application2.But both authentication types are different.........???How to do it....??Any ideas ??Kamran Shahi...

How to embed VB.Net application in ASP.Net web application
Hi, I developed a VB.Net application. I want to embed it in my ASP.Net application. Please help me to do the task.Regards,Jawad Naeem Hi , Its easy to embed a desktop application accessing the .NET framework and the class liberary but it depended on services that the application proivde as you know there are limitions as web applications doesn't act like fully desktop application so you should know what services does your application provides then you can do the following compile the application into DLL file or bulid it as exe but keep in mind classes should be public ...

Windows Principle security working in C#.NET Windows application, but not on ASP.NET Web Application with C#.NET as code behind
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); WindowsPrincipal usrPrincipal = (WindowsPrincipal)Thread.CurrentPrincipal; WindowsIdentity usrIdentity = (WindowsIdentity)usrPrincipal.Identity; String usrPrincipalName = usrPrincipal.Identity.Name; String usrPrincipalType = usrPrincipal.Identity.AuthenticationType; String usrPrincipalAuth = usrPrincipal.Identity.IsAuthenticated.ToString()   Can you check why this code is not working in Web application, however it is working in Windows application  Is it crashing at runtime? Not compiling? What...

ASP.Net Web Application Form
I want to create a web application page that allows a user to capture Personal details and save in the SQL Database, whats wrong with this code:SqlDataSource2.InsertCommand = "INSERT INTO Personal_Details (" + "[ID_No],[Title], [Name], [Surname], [Age], [Gender], [Race], [Height] " + ")VALUES('" + txtName.Text + "','" +txtSurname.Text + "','" + txtAge.Text + "','" +txtID_No.Text + "','" + txtTitle.Text + "','" + "')";DetailsView1.Visible =...

Web form applications performance #2
Hi everyone, I am disappointed no one has responded to my post dated Feb 2nd. Is this subject not relevant to this group? Thanks for anyone who cares to reply. Alon Baadani I responded down there...thought I had already. It is a interesting topic, especially for those moving apps out onto the web. Troy > Hi everyone, > I am disappointed no one has responded to my post dated Feb 2nd. > Is this subject not relevant to this group? > Thanks for anyone who cares to reply. > Alon Baadani ...

Web resources about - Web form applications performance - sybase.net.webform

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Second visa application 'likely' to be approved
The family of a terminally ill Pakistani student can 'hopefully come to Australia sooner rather than later' says Immigration Minister Peter Dutton. ...

Tashfeen Malik's visa application under scrutiny - Business Insider Deutschland
The US government has released the visa application for Tashfeen Malik, who along with her husband killed 14 people in an attack in San Bernardino, ...

Panasonic Develops a Stretchable Resin Film and Its Application Materials for Stretchable Electronics ...
A stretchable film is developed. This film stretches to 2.5 times the original length and then returns to the original form. A conductive paste ...

MBA: Mortgage Applications Increase in Latest MBA Weekly Survey, Purchase Applications up 37% YoY
From the MBA: Refinance, Purchase Applications Both Up in Latest MBA Weekly Survey Mortgage applications increased 7.3 percent from one week ...

Cal State Schools Get Record Number Of Applications For 2016 Term
Schools in the California State University system received a record number of applications for the upcoming 2016 fall term, with more than 830,000 ...

German-Based Spirea Promotes Decentralized PV Applications In Uruguay
... Its technical operations specialist, Laurie Lawrence, pointed out that Uruguay [&hellip German-Based Spirea Promotes Decentralized PV Applications ...

Visa application of San Bernardino shooter released
CNN Visa application of San Bernardino shooter released CNN (CNN) The visa application of one of the San Bernardino shooters was released ...

Panasonic touch panel production to be solely for vehicle applications by 2020, says report
Panasonic is aiming to transfer its touch panel production completely to vehicle applications by 2020 in order to meet increasing demand for ...

What's Important in IT in 2016? It's the Applications, Stupid
NEWS ANALYSIS: What should organizations invest in next year? Applications, of course. In particular, customer-focused applications.

Resources last updated: 1/5/2016 2:42:57 PM