James Edelen

All MindsharpBlogs

My new blog

My Links

Archives

Blog Stats

SharePoint Stress Testing

Stress Testing SharePoint with Application Center Test (ACT)
Testing SharePoint is and incredibly important part of capacity planning. There is nothing worse than spending weeks or months implementing a solution and it not being able to handle the required load. Using a tool like ACT will enable you to test your hardware before production in order to ensure that it will perform as expected. It will also let you more easily discover bottlenecks in your system before going live. You can watch performance counters on your servers while stress testing to find bottlenecks.
ACT stands for Microsoft Application Center Test tool and it is included with Microsoft Visual Studio .NET Enterprise and Enterprise Architect. When you launch it, it creates a blank project as shown below:

Under the project (which in this case is called Application Center Article), there are 3 items – tests, results and users. You must create a test before you can run a test. On creation, you will be given two choices – Create an Empty test and Record a test. Record a test is great, but it only works with SharePoint Anonymous Access, which is not ideal for stress testing, so we will create a new Blank Test. To Create a Blank Test:
1. Right-click Tests and select new Test
2. Click Next to start the Wizard
3. Select Create an Empty Test
4. Select a Script Language (all examples here will be VBScript)
5. Give the Test a Descriptive name (SharePoint Basic Test)
6. Click Finish to complete the wizard.
This will create the most basic test you can have:
Test.SendRequest("http://localhost")
This command creates a request and sends it to the localhost. It will ask the webserver for the default document and time how long it takes for the server to process the request and send the data back to the client. You will want to edit this line to point to your SharePoint server.
Now, we still need to do a couple of things to prepare a test to run against SharePoint. First is that we need to create users. You will want to create a batch of test users (between 50 and 100) in Active Directory. These users should have progressive name (ie test0, test1,test2, etc) and they should all have the same password. These users must have at least reader permissions to SharePoint.
Once the users are created in active directory, they must be referenced in ACT. As long as the users have progressive names and the same password, doing this is incredibly easy. To associate these users with ACT do the following:

1. Right click the Users item and select add.
2. Right click on the created group (new users group), select rename and change the name to a descriptive name (SharePoint Users) – this should look like the following:

3. Click the Actions Menu, then select Generate Users
4. Under number of users, select the number of test users you created
5. Under User name prefix, enter the domain\username (trainsbydave\test)
6. Under Password, enter the password for all these users.
It should now look as follows:

Now, click ok and all the users will be associated with ACT. It will looks as follows:

You now have all the users associated with the SharePoint users group in ACT, but we still need to link the SharePoint Users Group to the Test and set some properties on the test. To do so:

1. Right click the test your created earlier and select properties
2. On the General Tab, enter a number of simultaneous browser connections and set a test duration time.

NOTE: When setting the number of simultaneous browser connections, you want to start this number low (1) and slowly ramp up until you get your CPU usage to 90% on your Web Front End SharePoint Servers.

NOTE: Often you will want to set a 30 second warmup period in order to allow the portal to load and cache data before running the full blown test in order to get more accurate results.

3. One the Users Tab, select specify users and check the group you created (SharePoint Users)
4. Click OK
You are now ready to run the test. Click the green sideways triangle on the taskbar to start the test. You will get a screen that looks like this:

Once the test completes (or is stopped), you will want to review the test results. Click on the results item under the project and select the report for the test you just ran.


Under that report, you will get some very useful information. The most useful are:
Average requests per second: 6.92
Average time to first byte (msecs): 112.83
Average time to last byte (msecs): 120.29

The Average requests per second should meet or exceed the number you calculate using the Operations per second equation. The Average time to first byte is the time in milliseconds that it takes the server to generate the page and start sending it. The Average time to last byte is the time from the request being sent until the whole page is downloaded to the client. Using this, you can test your portal and use performance counters on your servers to monitor bottlenecks.

posted on Friday, March 25, 2005 9:11 PM

Feedback

# Stresstest zur Kapazit 3/29/2005 3:14 AM SharePoint, SharePoint and stuff

James Edelen beschreibt in seinem Artikel, wie man mit dem Microsoft Application Center Test Kapazit

# re: SharePoint Stress Testing 3/29/2005 8:19 AM Todd Bleeker

Nice post James!

<Todd />

# re: SharePoint Stress Testing 4/7/2005 11:18 AM Noel

ACT is not capable of simulating hardware conditions when performing file uploads or downloads. On the client Check Pages/sec and page faults/sec when you are recording the session. Then check them when you are replaying. I saw 130,000 soft faults a second when replaying and had a ridiculous situation where I was using 2 servers to stress test a desktop running SPS and the 2 servers couldn'y successfully stress the desktop!

# Here it is : The first SharePointPodcast in english 4/11/2005 6:12 AM SharePoint, SharePoint and stuff

So finally it's done: the English SharePointPodcast

# Here it is : The first SharePointPodcast in English 4/11/2005 6:13 AM SharePoint, SharePoint and stuff

So finally it's done: the English SharePointPodcast

# First English SharePoint podcast online. 4/11/2005 7:28 AM Angus Logan

# re: SharePoint Stress Testing 4/12/2005 9:25 AM James Mueller

We used an application called WAPT to test and it will also graph performance on many different levels, plus its much cheaper than ACT.

# James is Blogging Again 7/4/2005 1:21 PM Tangible Thoughts

# re: SharePoint Stress Testing 10/12/2005 6:06 AM Lucy Sutton

Hi James!

I am looking for a Sharepoint Administrator to work in a Reading based large Bluechip. If this sounds interesting to you, please contact me.

Regards,

Lucy

lucy.sutton@elanit.co.uk
0207 830 1351

# SharePointPodcast #1 April, 11 2005 4/4/2006 9:16 AM SharePointPodcast


Download: SPPE-2005-04-11&nbsp;(7,1 MB)
Intro
News

Building a Searchable Phone Directory with...

# re: SharePoint Stress Testing 5/8/2006 6:30 AM jackal

hello
hi
i m one of ther user this tool........ i like it but not eat it

# SharePoint Web Parts: Free 3rd Party SharePoint Web Parts &amp; Tools 6/1/2006 3:48 PM The Boiler Room - Mark Kruger, SharePoint MVP

For those who aggregate my feed and do not often visit the blog iteself... I've updated my SharePoint...

# Free SharePoint Web Parts (3rd Party) 6/26/2007 10:14 AM The Boiler Room - Mark Kruger, Microsoft SharePoin

Free SharePoint Web Parts (3rd Party) Konrad Brunner - UGS&#39;s Web Parts (broken link 8/25) Document

# WSS 3.0 & MOSS: Recopilación de enlaces interesantes (XIV) 1/30/2008 4:25 PM Blog del CIIN

Para cerrar el mes de enero, aquí os dejamos la entrega nº 14 de recursos y enlaces relevantes sobre

# re: SharePoint Stress Testing 5/21/2008 3:10 PM lazer epilasyon

thank you !

# re: SharePoint Stress Testing 5/21/2008 7:17 PM Kepçe

thankQ!

# re: SharePoint Stress Testing 5/21/2008 7:18 PM Plastik Şerit

thank you !

# re: SharePoint Stress Testing 5/21/2008 7:19 PM penis büyütme

thank uou !

# re: SharePoint Stress Testing 5/21/2008 7:20 PM penis büyütücü

thankl!

# re: SharePoint Stress Testing 5/21/2008 10:12 PM canlı tv

We used an application called WAPT to test and it will also graph performance on many different levels, plus its much cheaper than ACT.

# dizi 5/24/2008 7:14 AM dizi

thanks for good blog anf information

# re: SharePoint Stress Testing 5/31/2008 2:08 AM dizi izle

Thank you

# re: SharePoint Stress Testing 6/7/2008 4:36 AM rakicioglu

www.rakiciogluotomotiv.com

# re: SharePoint Stress Testing 6/7/2008 11:25 AM efeco

<a href="http://www.bssguvenlik.com.tr" target="_blank" title="x-ray cihazlari">x-ray cihazlari</a>

# re: SharePoint Stress Testing 6/7/2008 11:30 AM efeco00

<a href="http://www.emrehavuz.com" target="_blank" title="havuz">havuz</a>

# re: SharePoint Stress Testing 6/8/2008 6:44 AM dizi izle

ty

# re: SharePoint Stress Testing 6/13/2008 3:37 AM muro (efekan)

www.biltektasarim.com

# re: SharePoint Stress Testing 6/20/2008 11:34 AM bedava oyunlar

great intarnet system for bussiness

# re: SharePoint Stress Testing 6/22/2008 8:26 AM Karadeniz

Thanks!

# re: SharePoint Stress Testing 6/28/2008 2:37 AM Free Forex Converter

looks like sharepoint passed the stress tests

# re: SharePoint Stress Testing 7/14/2008 7:13 PM oyun

Thanks so much.

# re: SharePoint Stress Testing 7/23/2008 4:50 PM hanks

http://www.tatil-dunyasi.com

Thanks!

# Tatil 7/23/2008 4:50 PM tatil

http://www.tatil-dunyasi.com

Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments