473,574 Members | 2,941 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 2040
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
5213
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
2523
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...
115
7532
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...
13
2744
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;...
7
4785
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...
4
3258
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 -...
2
2416
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...
2
1560
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...
5
2017
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
7762
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8105
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. ...
0
8272
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...
0
8137
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6514
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...
1
5657
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2274
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
1
1369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1101
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.