473,756 Members | 6,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance issue of ASP .NET

I'm currently building a website for one of the client. There has been
few errors here and there, but just recently the problem is getting worse.

Basically the symptoms is that when the user try to access the page, it
takes really long time to load. However, after up to 1 hour, the website
will run fine again as normal.

This issue has been there with the site. I usually just ask the system
admin to restart the IIS Service. However, the problem starts to occur
quite frequently recently (up to 3 times a day and during business hour).

Therefore, I'm doing a load testing using the same application on a
different box which can be accessed internally. I try to hit the page as
hard as I can with the tools (1000 user accessing the pages
simultaneously) , but I still can't have the same problem occuring on the
testing box.

However, 1 thing that I found is that, on the testing box, when the
Requests Current counter (ASP .NET Counter) can go up as high as 1000,
while Requests Executing (ASP .NET Application Counter) only up to 1.
This is not the case that happen on the production box. I called the
system admin to have a look at the performance counter, and he said that
the Requests Current counter is around 250 with Requests Executing is
about the same number (250).

I try to search the net and no luck to find the cause of the problem. If
anyone here could help, I'd be very grateful, since the problem is very
urgent and need to be fixed ASAP.

Cheers.
Nov 19 '05 #1
17 2064
Hi Sir,

Welcome to ASPNET newsgroup.
From your description, you're encountering some low perfomance issue on
your asp.net application in production environment, the application. The
symptom occurs up to 3 times a day recently ,yes?

Based on my experience, such low performance problem which turn normal
after certain period is possibly caused by the asp.net process recycle and
restarting which will cause the ASP.NET runtime being initializing (also
pages recompiling...)
Have you checked the server's application event log to see whether there
some ASP.NET worker process recycles log entries according to the times
that problem occur?

In addition, for general performance throubleshootin g, we can check the
following things:

1. Whether CPU utilize is high when low performance occurs(such as
throughput lowdown..). If not high, there must have some long run task
which blocks threads....

2. We can also check whether the slow responding is cauesd by asp.net
processing or the response's output... sometimes when we the response
page's size being too large will cause slow response ,too...

BTW, for the different result you got in test environment, I think maybe
related to the testing tool you used which is not quite accurate for the
product envionment.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Thu, 10 Nov 2005 16:07:01 +1100
| From: 57R4N63R <un*****@unknow n.com>
| User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Performance issue of ASP .NET
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Message-ID: <ui************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: ppp157-241.static.inte rnode.on.net 150.101.157.241
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3569 17
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| I'm currently building a website for one of the client. There has been
| few errors here and there, but just recently the problem is getting worse.
|
| Basically the symptoms is that when the user try to access the page, it
| takes really long time to load. However, after up to 1 hour, the website
| will run fine again as normal.
|
| This issue has been there with the site. I usually just ask the system
| admin to restart the IIS Service. However, the problem starts to occur
| quite frequently recently (up to 3 times a day and during business hour).
|
| Therefore, I'm doing a load testing using the same application on a
| different box which can be accessed internally. I try to hit the page as
| hard as I can with the tools (1000 user accessing the pages
| simultaneously) , but I still can't have the same problem occuring on the
| testing box.
|
| However, 1 thing that I found is that, on the testing box, when the
| Requests Current counter (ASP .NET Counter) can go up as high as 1000,
| while Requests Executing (ASP .NET Application Counter) only up to 1.
| This is not the case that happen on the production box. I called the
| system admin to have a look at the performance counter, and he said that
| the Requests Current counter is around 250 with Requests Executing is
| about the same number (250).
|
| I try to search the net and no luck to find the cause of the problem. If
| anyone here could help, I'd be very grateful, since the problem is very
| urgent and need to be fixed ASAP.
|
| Cheers.
|

Nov 19 '05 #2
57R4N63R wrote:
I'm currently building a website for one of the client. There has been
few errors here and there, but just recently the problem is getting worse.

Basically the symptoms is that when the user try to access the page, it
takes really long time to load. However, after up to 1 hour, the website
will run fine again as normal.

This issue has been there with the site. I usually just ask the system
admin to restart the IIS Service. However, the problem starts to occur
quite frequently recently (up to 3 times a day and during business hour).

Therefore, I'm doing a load testing using the same application on a
different box which can be accessed internally. I try to hit the page as
hard as I can with the tools (1000 user accessing the pages
simultaneously) , but I still can't have the same problem occuring on the
testing box.

However, 1 thing that I found is that, on the testing box, when the
Requests Current counter (ASP .NET Counter) can go up as high as 1000,
while Requests Executing (ASP .NET Application Counter) only up to 1.
This is not the case that happen on the production box. I called the
system admin to have a look at the performance counter, and he said that
the Requests Current counter is around 250 with Requests Executing is
about the same number (250).

I try to search the net and no luck to find the cause of the problem. If
anyone here could help, I'd be very grateful, since the problem is very
urgent and need to be fixed ASAP.

Cheers.


Can anyone help?
Nov 19 '05 #3
Hi Steven,

Thanks for the reply. Could you tell me how to check the Server's
Application Log? Is it on Event Viewer > Application?

Regarding your troubleshooting , I don't think it's both issue. The CPU
utilization for pretty low (about 10% is as high as we get) and when the
site works fine, it actually can display the pages pretty fast on
Internal LAN.

Budhi
Nov 19 '05 #4
Thanks for your response Budhi,

Yes, I means the Application Event log. You can view them through the
eventvwr.exe.
By default, when ASP.NET worker process recycle, it will add an entry in
the application event log.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Fri, 11 Nov 2005 14:57:02 +1100
| From: 57R4N63R <un*****@unknow n.com>
| User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Subject: Re: Performance issue of ASP .NET
| References: <ui************ **@TK2MSFTNGP09 .phx.gbl>
<ZN************ **@TK2MSFTNGXA0 2.phx.gbl>
| In-Reply-To: <ZN************ **@TK2MSFTNGXA0 2.phx.gbl>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| NNTP-Posting-Host: ppp157-241.static.inte rnode.on.net
| Message-ID: <43******@duste r.adelaide.on.n et>
| X-Trace: duster.adelaide .on.net 1131681422 150.101.157.241 (11 Nov 2005
14:27:02 +1050)
| Lines: 11
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!ne ws-south.connect.c om
au!duster.adela ide.on.net!not-for-mail
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3572 69
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi Steven,
|
| Thanks for the reply. Could you tell me how to check the Server's
| Application Log? Is it on Event Viewer > Application?
|
| Regarding your troubleshooting , I don't think it's both issue. The CPU
| utilization for pretty low (about 10% is as high as we get) and when the
| site works fine, it actually can display the pages pretty fast on
| Internal LAN.
|
| Budhi
|

Nov 19 '05 #5
Hi Steven,

Is there any reason why ASP.NET worker process would recycle and restart?

Budhi

Nov 19 '05 #6
Hi Budhi,

So did you find any recycle log entries on the server? As for the recycle,
there could have several causes, and generally the following twos are
common ones:

1. Worker process's Memory usage exceed the processModel (iis5) or
application pool(iis6) 's limitation...

2. Worker process encountering deadlock and become no-responding after
certain timeout period.

We can find such setting in the machine.config' s <processModel > (iis5) or
in the IIS6's application pool settings. So if the symtom in your problem
is really caused by worker process recycling, I think you can start
throubleshootin g from the above things....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Tue, 15 Nov 2005 11:21:23 +1100
| From: Budhi Saputra Prasetya <bu***@immersiv e.com.au>
| Reply-To: bu***@immersive .com.au
| Organization: Immersive Pty Ltd
| User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Re: Performance issue of ASP .NET
| References: <ui************ **@TK2MSFTNGP09 .phx.gbl>
<ZN************ **@TK2MSFTNGXA0 2.phx.gbl> <43******@duste r.adelaide.on.n et>
<8v************ *@TK2MSFTNGXA02 .phx.gbl>
| In-Reply-To: <8v************ *@TK2MSFTNGXA02 .phx.gbl>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Message-ID: <ua************ **@tk2msftngp13 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: ppp157-241.static.inte rnode.on.net 150.101.157.241
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!tk 2msftngp13.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3581 15
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi Steven,
|
| Is there any reason why ASP.NET worker process would recycle and restart?
|
| Budhi
|
|

Nov 19 '05 #7
Hi Steven,

According to the system administrator, there is no recycling log entries
during the event where the application stop responding. The recycling
time is set to 29 hours (default setup) if that matters. However there
are few deadlock error entries on the error log. The system admin also
said that he found few people got the same problem on the net but no one
answer the question. The cause is mostly because they are trying to move
the application from Windows Server 2000 to Windows Server 2003. There
description of the error message is:

ISAPI 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet_isapi.d ll'
reported itself as unhealthy for the following reason: 'Deadlock detected'.

Budhi
Nov 20 '05 #8
Budhi Saputra Prasetya wrote:
Hi Steven,

According to the system administrator, there is no recycling log entries
during the event where the application stop responding. The recycling
time is set to 29 hours (default setup) if that matters. However there
are few deadlock error entries on the error log. The system admin also
said that he found few people got the same problem on the net but no one
answer the question. The cause is mostly because they are trying to move
the application from Windows Server 2000 to Windows Server 2003. There
description of the error message is:

ISAPI 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet_isapi.d ll'
reported itself as unhealthy for the following reason: 'Deadlock detected'.

Budhi


Hi Steven,

There is one thing that I found by accident. When i try to compile the
result on the server performance counter, I found that the Request
Executing and Request Current counter is stuck at 4, while there is no
more request is actually submitted to the server. Could you help me with
the issue of why this could happen?

Budhi
Nov 20 '05 #9
Thanks for your response Budhi,

So from your two response, I got that there're some deadlock info detected
from teh Eventlog and you also mentioned that you found there has 4 current
request and executing requests stuck on the server, so possibly they're the
ones which has run into deadlock, do you think so? If so, we may have to
do some code analysis on our application. Is there any pages in your
application which could be the potential of the cause, e.g, using some
resources or shared objects ?

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Wed, 16 Nov 2005 16:35:48 +1100
| From: Budhi Saputra Prasetya <bu***@immersiv e.com.au>
| Reply-To: bu***@immersive .com.au
| Organization: Immersive Pty Ltd
| User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Re: Performance issue of ASP .NET
| References: <ui************ **@TK2MSFTNGP09 .phx.gbl>
<ZN************ **@TK2MSFTNGXA0 2.phx.gbl> <43******@duste r.adelaide.on.n et>
<8v************ *@TK2MSFTNGXA02 .phx.gbl>
<ua************ **@tk2msftngp13 .phx.gbl>
<gh************ **@TK2MSFTNGXA0 2.phx.gbl>
<#8************ **@tk2msftngp13 .phx.gbl>
| In-Reply-To: <#8************ **@tk2msftngp13 .phx.gbl>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Message-ID: <#p************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: ppp157-241.static.inte rnode.on.net 150.101.157.241
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3584 76
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Budhi Saputra Prasetya wrote:
| > Hi Steven,
| >
| > According to the system administrator, there is no recycling log
entries
| > during the event where the application stop responding. The recycling
| > time is set to 29 hours (default setup) if that matters. However there
| > are few deadlock error entries on the error log. The system admin also
| > said that he found few people got the same problem on the net but no
one
| > answer the question. The cause is mostly because they are trying to
move
| > the application from Windows Server 2000 to Windows Server 2003. There
| > description of the error message is:
| >
| > ISAPI 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet_isapi.d ll'
| > reported itself as unhealthy for the following reason: 'Deadlock
detected'.
| >
| > Budhi
|
| Hi Steven,
|
| There is one thing that I found by accident. When i try to compile the
| result on the server performance counter, I found that the Request
| Executing and Request Current counter is stuck at 4, while there is no
| more request is actually submitted to the server. Could you help me with
| the issue of why this could happen?
|
| Budhi
|

Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5224
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and includes the following columns: DocID (INTEGER, PRIMARY KEY, CLUSTERED) IsRecord (INTEGER, NONCLUSTERED)
10
2556
by: **ham | last post by:
I know that's an old dirty issue; GDI+ almost -the slowest part of the framework - has bothered many developers using it in animations. Even in managed C++ the performance is awful. Now, any dude out there does know any thing about this issue in VS 2005 + ..NET 2.0 ? Has Microsoft solved this performance problem, or we will have to again stick to that DX for simple animations in our applications? ( and since Microsoft doesn't support DDraw...
115
7630
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical transform function. When compiling under gcc on my big-endian PowerPC (Mac OS X), declaring this array as "static" DECREASES the transform throughput by around 5%. However, declaring it as "static" on gcc/Linux/Intel INCREASES the throughput by...
13
2763
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance of C and I achieved that aim very early on. See, for example "The Design and Evolution of C++". -- Bjarne Stroustrup; http://www.research.att.com/~bs
7
4806
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the counters all show 0. In addition, ASP.NET Applications does not show any of the ASP.NET instances that are running on the computer. The other counters for example % processor time work fine. The problem machine is a test server running Win2003. ...
4
3271
by: Steph | last post by:
Hi - Trying to chase down a baffling performance issue. Our database has been running very slow lately. So we are performance tuning the database. In doing so, we created a copy of our production database. In that database, I changed one clustered index on a table to try to improve performance. I ran one query - saw a slight improvement - but saw "lazy spool" in the execution plan. I tried to change it back to the original index by...
2
2424
by: Brian Tabios | last post by:
Hello Everyone, I have a very complex performance issue with our production database. Here's the scenario. We have a production webserver server and a development web server. Both are running SQL Server 2000. I encounted various performance issues with the production server with a particular query. It would take approximately 22 seconds to return 100 rows, thats about 0.22 seconds per row. Note: I ran the query in single user mode. So...
2
1566
by: BTabios | last post by:
Hello Everyone, I have a very complex performance issue with our production database. Here's the scenario. We have a production webserver server and a development web server. Both are running SQL Server 2000. I encounted various performance issues with the production server with a particular query. It would take approximately 22 seconds to return 100 rows, thats about 0.22 seconds per row. Note: I ran the query in single user mode. So...
5
2031
by: Varangian | last post by:
Hi, I have a performance issue question? which is best (in terms of efficiency and performance, I don't care neatness in code)... building an ArrayList of Object Instances using SqlDataReader OR using SqlDataAdapter to Fill a DataSet or DataTable ? Thanks!
0
9487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9904
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.