Performance Counter And How To Use Them In Application
Feb 9, 2011What is Performance Counter and how to use them in ASP.NET application.
View 2 RepliesWhat is Performance Counter and how to use them in ASP.NET application.
View 2 RepliesI am not sure if this is the right forum. I can not find a forum for LINQ.
I am working on an application using LINQ. Application performance is not up to par and my tests show that it is LINQ queries that are slow. I was wondering if anybody can recommend where I can find an article about optimizing LINQ performance maybe by compilation or other methods.
I want to data bind jQuery Counter just like we do to Ajax Counter. Also I would like to know that do we have events for jQuery counter just like we have a tick event in Ajax Counter?
View 9 RepliesI have a strange situation on a production server. Connection for asp.net get queued but the CPU is only at 40%. Also the database runs fine at 30% CPU.
Some more history as requested in the comments:
In the peak hours the sites gets around 20,000 visitors an hour.
The site is an asp.net webforms application with a lot of AJAX/POSTs
The site uses a lot of User generated content
We measure the performance of the site with a testpage which does hit the database and the webservices used by the site. This page get served within a second on normal load. Whe define the application as slow when the request takes more than 4 seconds.
From the measurements we can see that the connectiontime is fast, but the processing time is large.
We can't pinpoint the slowresponse the a single request, the site runs fine during normal hours but gets slow during peak hours
We had a problem that the site was CPU bound (aka running at 100%), we fixed that
We also had problems with exceptions maken the appdomain restart, we fixed that do
During peak hours I take a look at the asp.net performance counters. We can see behaviour that we have 600 current connections with 500 queued connections.
At peak times the CPU is around 40% (which makes me the think that it is not CPU bound)
Physical memory is around 60% used
At peak times the DatabaseServer CPU is around 30% (which makes me think it is not Database bound)
My conclusion is that something else is stopping the server from handling the requests faster. Possible suspects:
Deadlocks (!syncblk only gives one lock)
Disk I/O (checked via sysinternals procesexplorer: 3.5 mB/s)
Garbage collection (10~15% during peaks)
Network I/O (connect time still low)
To find out what the proces is doing I created to minidumps.
I managed to create two MemoryDumps 20 seconds apart. This is the output of the first:
!threadpool
CPU utilization 6%
Worker Thread: Total: 95 Running: 72 Idle: 23 MaxLimit: 200 MinLimit: 100
Work Request in Queue: 1
Number of Timers: 64
and the output of the second:
!threadpool
CPU utilization 9%
Worker Thread: Total: 111 Running: 111 Idle: 0 MaxLimit: 200 MinLimit: 100
Work Request in Queue: 1589
Performance testing best practices for an ap .net application
View 1 RepliesWeb forms .NET application, is starting to meet 64 bits Windows servers and we have a 32bit DLL from one of our component vendors (its a hardware key, actually). I checked the instructions here "compiling a .net application with either a 32-bit or 64-bit dll". It is also what our vendor sugested. question: is there a performance impact on compiling a web application to run on x86 mode ?Please don't flame me for using a hardware key
View 1 RepliesI have a ASP.NET web application (.NET 2008) using MS SQL server 2005, I want to increase the performance of the web site, If anyone have an article contains steps to do that, step by step , In SQL(Indexes, ..... etc.) and in the code.
View 4 RepliesI just want some tricks for increase ASP.Net application. This question is a little wide.
View 5 Repliesregarding the performance improvement in Asp.Net?The best practise tips for asp.net performance improvement?
View 4 RepliesLet me know asp.net application performance tips..
View 2 RepliesThere's a web app I've been assigned to, which is running very slow. It is a site that sells products so it is database driven, however even pages that do not query the database are loading very slow. The pages use master pages, and the code is in VB.NETI checked with fiddler and the time it takes to load basic (non database driven) pages are about 5.5 seconds on average.
What are some tools that can help me determine the cause of the slow speeds, and any recommendations as to how to speed it up, or potential issues that could cause it?UpdateSo I messed around with the code piece by piece as I wasn't getting anywhere with these tools. As soon as I remove master pages, and I include the same code that's on the master pages in the .aspx page itself, the speed improves drastically (approximately 5 times faster load times).What might cause the master pages to cause load times to slow down so much?
I am working on AJAX-ASP.NET site. This site is taking 25-30 sec to load the contents. I want to improve this site performance. Is there any settings required in IIS? How to check IIS log files?
View 2 RepliesI want to test asp.net application for stress, load and performance. Please guide me what free tools should be used for this ? Is there any tool which particularly can be used to analyse individual components, functions and scripts and resources they use ?
View 2 RepliesList me guidelines which we have to follow while developing an asp.net application with improved performance:
-Using Pooling properly, Stored procedures, when to use AJAX update panel etc etc
I am a .Net Developer and I develop using C#. I am always but all business logic at separat Class Library project , and then use it with my project, But I want to know if it will improve the performance of application , or I can but the Business logic class within the main project without effect at the application performance?
View 2 RepliesI have an ASP.Net application that has some data driven elements powered by XML with some very basic XPath queries. How big can an XML file become e.g. 10MB, 50MB before the application should start to see a dip in performance when reading from the file.
View 2 Replieshow to improve the application performance while writing LINQ Queries ?Like the optimization techniques.
View 2 RepliesI was recently asked to speed up a C#/ASP.NET/SQL Server business app website. Since I just started, I don't know too much about the internals. So where do I start? Sight unseen, what is the single most important thing affecting performance on a system like this? Database tuning? Hardware? Individual page optimization? What is the first thing you'd look at? EDIT: After I actually do the work, I'll come back and post the answer. ;)
EDIT again: "Profile" is currently the most-voted answer, and I agree that that is clearly what one should do. But I was looking for guesses/experience as to what the profiling results would show, so I don't think that answer counts...
I'm building a new n-tier web application and I would like to know the performance differences between developing my tiers in one single assembly (each tier with its own namespace) or into different assemblies, one for each tier.
View 1 RepliesI am developing a site similar to forums. I allow users to Post articles and upload files regarding the articles. I am not storing the Attachments contents in DB instead i store only the path of the attachment file and store the actual file in physical folder in the Project directory. WHat i want to knw is if the size of the physical folder increase will it affect the performance of my application.
View 6 RepliesI have an existing web application developed in Asp.Net F/W 3.5 and a mobile version of the same need to be created.
May i have some suggestions on:
How can i start with?.Some links & sites that would give me more clarity on how to approach this requirement. Is there any ASP.Net/iis features or Visual Studio option that ease this mobile version creation? As there are RadControls & Ajax used throughout the application, what should i be careful about? Will it require every form in the UI to be replaced and take the same time as the old UI creation? What all thinks should i be considering in the performance/optimization point of view?.
My application is working well in localhost, but it became very slow after deploying in server.
I have used session which stores 2 string values. What might be the reason? Its taking too much time to retrieve page
Can any one give me the tool link to check the asp.net application and code performance?
View 1 RepliesI want to implement a response time monitor in a ASP.Net application. This monitor has to calculate the average response time during 2 secs. Whats the performance counter i can use. I tried ASP.NET ApplicationsRequests/Sec but did not work. Whats the best way to do this. I am using the default server formed by VS2005 for development, does this affect the performance counter programming?
Where should I implement the logic? Global.ASAX? in every 2 sec i want to check this value and make some decisions.
In addition, what are the parameters I can alter in a ASP.Net application at runtime to improve perfromance. How can I change them?
Is there a technical/performance limit on the number of roles an application handles? I'm in the process of designing an application which I forsee having a lot of roles created, to be able to handle the degree of granularity the system should have (e.g., permissions per project, where there could be a lot of projects).
Would you recommend another approach other than using roles for this kind of granularity?