473,544 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web stress ASPNET with JMeter

Hello,

I am wondering how aspnet developers do their web stress on ASPNET
apps
..
I would like to run mine with apache JMeter, a well-known open source
tool.
Unfortunately, it does not works well with ASPNET, I think maybe
because postback in the dotnet area are not the same as in the
html/java/cgi-bin traddition.

In the aspnet area, the page is postback to itself, with a lot of
viewstate events fired. it work well if you submit with a browser.
But with a stress tool, like JMeter, or OpenSTA, this is not a browser
that post a request page, but a piece of software, usually running in
its own thread.

It seems to me that something is missing there, as the debug trace is
different, depending if a page is posted from a browser, like this:

aspx.page Begin Init
aspx.page End Init 0,000082 0,000082
aspx.page Begin LoadViewState 0,000131 0,000049
aspx.page End LoadViewState 0,000348 0,000217
aspx.page Begin ProcessPostData 0,000414 0,000066
aspx.page End ProcessPostData 0,000749 0,000335
aspx.page Begin ProcessPostData Second Try 0,001026 0,000278
aspx.page End ProcessPostData Second Try 0,001090 0,000063
aspx.page Begin Raise ChangedEvents 0,001122 0,000033
aspx.page End Raise ChangedEvents 0,001159 0,000037
aspx.page Begin Raise PostBackEvent 0,001192 0,000032
aspx.page End Raise PostBackEvent 0,950161 0,948969
aspx.page Begin PreRender 0,950248 0,000087
aspx.page End PreRender 0,950302 0,000054
aspx.page Begin SaveViewState 0,951535 0,001233
aspx.page End SaveViewState 0,951710 0,000175
aspx.page Begin Render 0,951767 0,000057
aspx.page End Render 0,953222 0,001455

or if it posted from a stress tool, like JMeter, like this:

aspx.page Begin Init
aspx.page End Init 0,000091 0,000091
aspx.page Begin PreRender 0,000272 0,000181
aspx.page End PreRender 0,000360 0,000088
aspx.page Begin SaveViewState 0,001071 0,000711
aspx.page End SaveViewState 0,001221 0,000150
aspx.page Begin Render 0,001273 0,000053
aspx.page End Render 0,003051 0,001777

as we can see, many events are not processeed when the post is done
with JMeter.
Can someone explains why and tell us a workaround?

is it possible to replace asp:button events handling by input type
submit button ? How could I handle input type=submit events? aspnet
is not very well suited to do input submit handling, as it is geared
torwards asp:button events.

thank you,

BTW: How do you stress test your aspnet web apps with multiple users?
Nov 18 '05 #1
4 12409
Hi Martin:

We use Microsoft Application Center Test, I believe this only comes
with the Enterprise edition of Visual Studio.NET.

http://msdn.microsoft.com/library/de...actml_main.asp

--
Scott
http://www.OdeToCode.com

On 23 Aug 2004 06:38:28 -0700, ma************* **@nurun.com (martin
carmichael) wrote:
Hello,

I am wondering how aspnet developers do their web stress on ASPNET
apps
.
I would like to run mine with apache JMeter, a well-known open source
tool.
Unfortunatel y, it does not works well with ASPNET, I think maybe
because postback in the dotnet area are not the same as in the
html/java/cgi-bin traddition.

In the aspnet area, the page is postback to itself, with a lot of
viewstate events fired. it work well if you submit with a browser.
But with a stress tool, like JMeter, or OpenSTA, this is not a browser
that post a request page, but a piece of software, usually running in
its own thread.

It seems to me that something is missing there, as the debug trace is
different, depending if a page is posted from a browser, like this:

aspx.page Begin Init
aspx.page End Init 0,000082 0,000082
aspx.page Begin LoadViewState 0,000131 0,000049
aspx.page End LoadViewState 0,000348 0,000217
aspx.page Begin ProcessPostData 0,000414 0,000066
aspx.page End ProcessPostData 0,000749 0,000335
aspx.page Begin ProcessPostData Second Try 0,001026 0,000278
aspx.page End ProcessPostData Second Try 0,001090 0,000063
aspx.page Begin Raise ChangedEvents 0,001122 0,000033
aspx.page End Raise ChangedEvents 0,001159 0,000037
aspx.page Begin Raise PostBackEvent 0,001192 0,000032
aspx.page End Raise PostBackEvent 0,950161 0,948969
aspx.page Begin PreRender 0,950248 0,000087
aspx.page End PreRender 0,950302 0,000054
aspx.page Begin SaveViewState 0,951535 0,001233
aspx.page End SaveViewState 0,951710 0,000175
aspx.page Begin Render 0,951767 0,000057
aspx.page End Render 0,953222 0,001455

or if it posted from a stress tool, like JMeter, like this:

aspx.page Begin Init
aspx.page End Init 0,000091 0,000091
aspx.page Begin PreRender 0,000272 0,000181
aspx.page End PreRender 0,000360 0,000088
aspx.page Begin SaveViewState 0,001071 0,000711
aspx.page End SaveViewState 0,001221 0,000150
aspx.page Begin Render 0,001273 0,000053
aspx.page End Render 0,003051 0,001777

as we can see, many events are not processeed when the post is done
with JMeter.
Can someone explains why and tell us a workaround?

is it possible to replace asp:button events handling by input type
submit button ? How could I handle input type=submit events? aspnet
is not very well suited to do input submit handling, as it is geared
torwards asp:button events.

thank you,

BTW: How do you stress test your aspnet web apps with multiple users?


Nov 18 '05 #2
I'm not familar with JMeter, but the challenge with .net pages, is the
postback must include the the viewstate from the render. the contents of the
viewstate is what identifies a postback as a postback. also if you use a
autopostback controls, these are driven by client script, so you must
emulate this in the stress tool, by filling is more hidden fields.
-- bruce (sqlwork.com)
"martin carmichael" <ma************ ***@nurun.com> wrote in message
news:e8******** *************** ***@posting.goo gle.com...
Hello,

I am wondering how aspnet developers do their web stress on ASPNET
apps
.
I would like to run mine with apache JMeter, a well-known open source
tool.
Unfortunately, it does not works well with ASPNET, I think maybe
because postback in the dotnet area are not the same as in the
html/java/cgi-bin traddition.

In the aspnet area, the page is postback to itself, with a lot of
viewstate events fired. it work well if you submit with a browser.
But with a stress tool, like JMeter, or OpenSTA, this is not a browser
that post a request page, but a piece of software, usually running in
its own thread.

It seems to me that something is missing there, as the debug trace is
different, depending if a page is posted from a browser, like this:

aspx.page Begin Init
aspx.page End Init 0,000082 0,000082
aspx.page Begin LoadViewState 0,000131 0,000049
aspx.page End LoadViewState 0,000348 0,000217
aspx.page Begin ProcessPostData 0,000414 0,000066
aspx.page End ProcessPostData 0,000749 0,000335
aspx.page Begin ProcessPostData Second Try 0,001026 0,000278
aspx.page End ProcessPostData Second Try 0,001090 0,000063
aspx.page Begin Raise ChangedEvents 0,001122 0,000033
aspx.page End Raise ChangedEvents 0,001159 0,000037
aspx.page Begin Raise PostBackEvent 0,001192 0,000032
aspx.page End Raise PostBackEvent 0,950161 0,948969
aspx.page Begin PreRender 0,950248 0,000087
aspx.page End PreRender 0,950302 0,000054
aspx.page Begin SaveViewState 0,951535 0,001233
aspx.page End SaveViewState 0,951710 0,000175
aspx.page Begin Render 0,951767 0,000057
aspx.page End Render 0,953222 0,001455

or if it posted from a stress tool, like JMeter, like this:

aspx.page Begin Init
aspx.page End Init 0,000091 0,000091
aspx.page Begin PreRender 0,000272 0,000181
aspx.page End PreRender 0,000360 0,000088
aspx.page Begin SaveViewState 0,001071 0,000711
aspx.page End SaveViewState 0,001221 0,000150
aspx.page Begin Render 0,001273 0,000053
aspx.page End Render 0,003051 0,001777

as we can see, many events are not processeed when the post is done
with JMeter.
Can someone explains why and tell us a workaround?

is it possible to replace asp:button events handling by input type
submit button ? How could I handle input type=submit events? aspnet
is not very well suited to do input submit handling, as it is geared
torwards asp:button events.

thank you,

BTW: How do you stress test your aspnet web apps with multiple users?

Nov 18 '05 #3
Hi Scott,
I also have Microsoft Application Center Test, but I am not strong
with it.
it generates VBScript code when recording from browser activity.
So, inside the VBS code, the username/password is hardcoded for the
POST operation in the login page.
There are also properties to set the number do connections for test
load.
Do you know how to dynamically change hard coded user names according
to the thread?
that is if I want a 5 users test load, I would like 5 different
usernames and I do not know how to do this with Microsoft Application
Center Test.
thank you,

Scott Allen <bitmask@[nospam].fred.net> wrote in message news:<em******* *************** **********@4ax. com>...
Hi Martin:

We use Microsoft Application Center Test, I believe this only comes
with the Enterprise edition of Visual Studio.NET.

http://msdn.microsoft.com/library/de...actml_main.asp

--
Scott
http://www.OdeToCode.com

On 23 Aug 2004 06:38:28 -0700, ma************* **@nurun.com (martin
carmichael) wrote:
Hello,

I am wondering how aspnet developers do their web stress on ASPNET
apps
.
I would like to run mine with apache JMeter, a well-known open source
tool.
Unfortunatel y, it does not works well with ASPNET, I think maybe
because postback in the dotnet area are not the same as in the
html/java/cgi-bin traddition.

In the aspnet area, the page is postback to itself, with a lot of
viewstate events fired. it work well if you submit with a browser.
But with a stress tool, like JMeter, or OpenSTA, this is not a browser
that post a request page, but a piece of software, usually running in
its own thread.

It seems to me that something is missing there, as the debug trace is
different, depending if a page is posted from a browser, like this:

aspx.page Begin Init
aspx.page End Init 0,000082 0,000082
aspx.page Begin LoadViewState 0,000131 0,000049
aspx.page End LoadViewState 0,000348 0,000217
aspx.page Begin ProcessPostData 0,000414 0,000066
aspx.page End ProcessPostData 0,000749 0,000335
aspx.page Begin ProcessPostData Second Try 0,001026 0,000278
aspx.page End ProcessPostData Second Try 0,001090 0,000063
aspx.page Begin Raise ChangedEvents 0,001122 0,000033
aspx.page End Raise ChangedEvents 0,001159 0,000037
aspx.page Begin Raise PostBackEvent 0,001192 0,000032
aspx.page End Raise PostBackEvent 0,950161 0,948969
aspx.page Begin PreRender 0,950248 0,000087
aspx.page End PreRender 0,950302 0,000054
aspx.page Begin SaveViewState 0,951535 0,001233
aspx.page End SaveViewState 0,951710 0,000175
aspx.page Begin Render 0,951767 0,000057
aspx.page End Render 0,953222 0,001455

or if it posted from a stress tool, like JMeter, like this:

aspx.page Begin Init
aspx.page End Init 0,000091 0,000091
aspx.page Begin PreRender 0,000272 0,000181
aspx.page End PreRender 0,000360 0,000088
aspx.page Begin SaveViewState 0,001071 0,000711
aspx.page End SaveViewState 0,001221 0,000150
aspx.page Begin Render 0,001273 0,000053
aspx.page End Render 0,003051 0,001777

as we can see, many events are not processeed when the post is done
with JMeter.
Can someone explains why and tell us a workaround?

is it possible to replace asp:button events handling by input type
submit button ? How could I handle input type=submit events? aspnet
is not very well suited to do input submit handling, as it is geared
torwards asp:button events.

thank you,

BTW: How do you stress test your aspnet web apps with multiple users?

Nov 18 '05 #4
Hi Martin:

I know we have (not me, unfortunately) created multiple users and user
groups in ACT in order to test with N different users.
http://msdn.microsoft.com/library/de...ml_nav_cug.asp

--
Scott
http://www.OdeToCode.com

On 24 Aug 2004 06:04:36 -0700, ma************* **@nurun.com (martin
carmichael) wrote:
Hi Scott,
I also have Microsoft Application Center Test, but I am not strong
with it.
it generates VBScript code when recording from browser activity.
So, inside the VBS code, the username/password is hardcoded for the
POST operation in the login page.
There are also properties to set the number do connections for test
load.
Do you know how to dynamically change hard coded user names according
to the thread?
that is if I want a 5 users test load, I would like 5 different
usernames and I do not know how to do this with Microsoft Application
Center Test.
thank you,


Nov 18 '05 #5

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

Similar topics

9
3305
by: Jared Tullis | last post by:
We have an .NET 1.1 application running on 4 2K3 load balanced servers (using WLBS). IIS has the .NET aspnet_isapi.dll mapped as a wildcard application map. The web.config points *.html to a HttpHandler of our design. This setup serves over a million page views daily with almost no hassle whatsoever. We have brought a few affiliates onto...
3
2105
by: Darkstar 3D | last post by:
If you want to stress test your Apache/PHP server just have a small little typo like this: $errCodes=range(910000,9100005); in your code instead of $errCodes=range(910000,910005); Some serious crunching will go on! Off course don't do this on a
5
1503
by: Dariusz Tomon | last post by:
Hi I noticed that all my ASPNET applications (+ MSSQL Server - I checked the database and it is ok) run very slowly (especially from the beginning). I made comparison to other applications (not mine) on another servers. I wonder how could I boost the applications. The only thing I suspect is that in configuration manager in my VS2003 I have...
0
1141
by: John A Grandy | last post by:
Once jmeter has pulled down a page does it also pull down the xml for any rss auto-discovery link(s) in the header ?
0
1309
by: Phase 3 team | last post by:
Hi Can someone define in the WAS tool Concurrent connections - Stress Level (Threads) ? I am trying to test a healthy website which has the following: 2.5 mil hits a day, (concurrent users avg 1400)
2
10075
by: balabala | last post by:
I want to know how to use Jmeter in .net application.
1
1410
by: ESmith | last post by:
I need to stress test an application I've developed - are there any libraries/classes that can do things such as limit RAM available, Disk Space, etc. to help determine the system limits? Since I'm developing on a higher end system, I hope that there are either commerical or free utilities / libraries that can assist in "breaking" the...
4
3948
by: FFMG | last post by:
Hi, I want to stress test my dev box to see where the bottle necks in my script might be. I don't really need to test MySQL or Apache, (I have no doubt they are working fine), but rather want to test what scripts might be slow under stress. I am developing on a windows machine but will be running the site on a
0
1573
by: techiebrandon | last post by:
I have been put in charge of running stress tests to monitor DB2's memory usage. I have never had to do stress testing myself and am fairly new to the area, so I am in foreign territory. I have found Jmeter to work with and have successfully connected and can run about 10k requests from one of my lab machines against DB2 located on another lab...
0
7617
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. ...
1
7387
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...
0
7714
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
5920
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...
0
4924
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...
0
3415
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1848
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
992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
674
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.