473,790 Members | 2,850 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance Issues / ASP.NET

I have an ASP.NET application which uses a .NET Web Service as a wrapper to
a COM+ DLL.

Performance for a single user is very good. However, I have noticed that
when multiple requests are made simultaneously to the page, it takes (2 x
number of users) longer to serve the page. Interestingly enough, all users
get the page at the same time.

I have traced the routines in the application and the web service, and the
actual getdata routines take the same amount of time for all users in the
single user test and the multiple user test. Therefore, the problem doesn't
exist in the getdata routines.

At this point, I believe the performance problem exists when loading the
COM+ dll into memory.

Does anyone know if loading unmanaged code is performed serially?

Any ideas on solving this particular bottleneck would be appreciated.

Scott
Nov 18 '05 #1
4 1412
Both COM and Web Services are slow. COM (Interop) is something to be avoided
if possible.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"smoody" <sm****@smoody. com> wrote in message
news:uW******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP.NET application which uses a .NET Web Service as a wrapper to a COM+ DLL.

Performance for a single user is very good. However, I have noticed that
when multiple requests are made simultaneously to the page, it takes (2 x
number of users) longer to serve the page. Interestingly enough, all users
get the page at the same time.

I have traced the routines in the application and the web service, and the
actual getdata routines take the same amount of time for all users in the
single user test and the multiple user test. Therefore, the problem doesn't exist in the getdata routines.

At this point, I believe the performance problem exists when loading the
COM+ dll into memory.

Does anyone know if loading unmanaged code is performed serially?

Any ideas on solving this particular bottleneck would be appreciated.

Scott

Nov 18 '05 #2
Kevin,

I don't believe that slow components is the primary issue. If all users
received the page at different intervals, I might agree with you. However,
they all get the page simultaneously after a very long time compared to the
single user test. This suggests a threading problem to me.

With a single user, the performance is fine. In addition, a trace on the
methods within the web service show that they run the same length of time
regardless of the user load. The performance issue only occurs when multiple
users hit the resource simultaneously.

Scott

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:eA******** ********@TK2MSF TNGP11.phx.gbl. ..
Both COM and Web Services are slow. COM (Interop) is something to be avoided if possible.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"smoody" <sm****@smoody. com> wrote in message
news:uW******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP.NET application which uses a .NET Web Service as a wrapper

to
a COM+ DLL.

Performance for a single user is very good. However, I have noticed that
when multiple requests are made simultaneously to the page, it takes (2 x number of users) longer to serve the page. Interestingly enough, all users get the page at the same time.

I have traced the routines in the application and the web service, and the actual getdata routines take the same amount of time for all users in the single user test and the multiple user test. Therefore, the problem

doesn't
exist in the getdata routines.

At this point, I believe the performance problem exists when loading the
COM+ dll into memory.

Does anyone know if loading unmanaged code is performed serially?

Any ideas on solving this particular bottleneck would be appreciated.

Scott


Nov 18 '05 #3
"smoody" <sm****@smoody. com> wrote in message
news:uW******** ********@TK2MSF TNGP10.phx.gbl. ..
I have an ASP.NET application which uses a .NET Web Service as a wrapper to a COM+ DLL.

Performance for a single user is very good. However, I have noticed that
when multiple requests are made simultaneously to the page, it takes (2 x
number of users) longer to serve the page. Interestingly enough, all users
get the page at the same time.

I have traced the routines in the application and the web service, and the
actual getdata routines take the same amount of time for all users in the
single user test and the multiple user test. Therefore, the problem doesn't exist in the getdata routines.

At this point, I believe the performance problem exists when loading the
COM+ dll into memory.

Does anyone know if loading unmanaged code is performed serially?


If the load time varies in proportion to the number of users, and if the
problem is the time it takes to load the code, then that would suggest the
code is loaded some number of times per user.

This seems unlikely, so it's probably not the code loading time that's the
problem.
--
John Saunders
John.Saunders at SurfControl.com
Nov 18 '05 #4
> I don't believe that slow components is the primary issue. If all users
received the page at different intervals, I might agree with you. However,
they all get the page simultaneously after a very long time compared to the single user test. This suggests a threading problem to me.
COM objects run in Single Threaded Apartment mode.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"smoody" <sm****@smoody. com> wrote in message
news:u7******** ******@TK2MSFTN GP10.phx.gbl... Kevin,

I don't believe that slow components is the primary issue. If all users
received the page at different intervals, I might agree with you. However,
they all get the page simultaneously after a very long time compared to the single user test. This suggests a threading problem to me.

With a single user, the performance is fine. In addition, a trace on the
methods within the web service show that they run the same length of time
regardless of the user load. The performance issue only occurs when multiple users hit the resource simultaneously.

Scott

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:eA******** ********@TK2MSF TNGP11.phx.gbl. ..
Both COM and Web Services are slow. COM (Interop) is something to be avoided
if possible.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"smoody" <sm****@smoody. com> wrote in message
news:uW******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP.NET application which uses a .NET Web Service as a wrapper
to
a COM+ DLL.

Performance for a single user is very good. However, I have noticed
that when multiple requests are made simultaneously to the page, it takes (2 x number of users) longer to serve the page. Interestingly enough, all users get the page at the same time.

I have traced the routines in the application and the web service, and the actual getdata routines take the same amount of time for all users in the single user test and the multiple user test. Therefore, the problem

doesn't
exist in the getdata routines.

At this point, I believe the performance problem exists when loading

the COM+ dll into memory.

Does anyone know if loading unmanaged code is performed serially?

Any ideas on solving this particular bottleneck would be appreciated.

Scott



Nov 18 '05 #5

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

Similar topics

25
3493
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr within a try statement myself, or is there some clever implementation enhancement which makes this a bad idea? i.e. should I prefer: if hasattr(self,"datum"): datum=getattr("datum") else: datum=None
5
4682
by: sandy | last post by:
Hi All, I am a newbie to MySQL and Python. At the first place, I would like to know what are the general performance issues (if any) of using MySQL with Python. By performance, I wanted to know how will the speed be, what is the memory overhead involved, etc during database specific operations (retrieval, update, insert, etc) when MySQL is used with Python.
2
1649
by: Unruled Boy | last post by:
1.The follow two ways to declare one object: any difference? especially its performance. a.Private m_objMyObject As MyObject=New MyObject() b.Private m_objMyObject As MyObject m_objMyObject=New MyObject 2.Any difference between a and b? a. For Each childItem In SomeItems Dim objData As DataObject=m_objOneSource.GetData(childItem.ID)
9
5771
by: Java script Dude | last post by:
In many languages, it is necessary to string together multiple strings into one string for use over multiple lines of code. Which one is the most efficient from the interpreters perspective: Case 1: str += '<?xml version="1.0" encoding="' + charset + '"?>\n'; str += '<view-source-with version="1.1">\n'; str += ' <default-item-index>' + this.defaultItem + '</default-item-index>\n';
16
2673
by: David W. Fenton | last post by:
http://www.granite.ab.ca/access/performancefaq.htm I hope Tony doesn't mind my opening a discussion of some issues on his performance FAQ page here in the newsgroup. This is not meant as criticism, at all, as I am not alleging error. I'm just asking about a couple of things to open up the discussion to see what people have to say about them. 1. BeginTrans/CommitTrans to improve performance: has anyone ever done this? The KB article...
115
7653
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...
4
3363
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design). Reason for my question is that application has 5mb, while without graphics it has cca 400kb. Graphic files (bmps) take about 200kb (in program, they are repeated many times, ie almost all labels (around 200) have same background image)). Also,...
19
3155
by: Tom Jastrzebski | last post by:
Hello, I was just testing VB.Net on Framework.Net 2.0 performance when I run into the this problem. This trivial code attached below executed hundreds, if not thousand times faster in VB 6.0 than in .Net environment, under VS 2005 Beta 2. Does anyone have any idea whether this will be addressed in the final release? Thanks, Tomasz
8
1712
by: Dmitry Akselrod | last post by:
Hi, I have a recursive application that walks through a directory structure on a Hard Drive and writes various file information to a single table in an Access 2003 database. I am opening a connection to the database at the start of a worker thread that does all of the work. The connection is closed when the worker thread completes. I am using a single method to write a bunch of information to the table. The application flies...
2
2426
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...
0
9666
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
9512
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
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...
1
10145
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
9986
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
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...
1
7530
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
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();...
1
4094
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

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.