Intro:
So I was tasked to find the cheapest way to apply load onto a SharePoint environment. Found jMeter which lots of people raved about.
My sample SharePoint environment is:
Windows 2012 Standard
SharePoint 2013
JMeter 2.9
Symptoms/Issue:
So I created a simple load test to hit the default page of my site collection but all I got were 401s.
Response code: 401
How to create a basic page request in JMeter for SharePoint:
So I was tasked to find the cheapest way to apply load onto a SharePoint environment. Found jMeter which lots of people raved about.
My sample SharePoint environment is:
Windows 2012 Standard
SharePoint 2013
JMeter 2.9
Symptoms/Issue:
So I created a simple load test to hit the default page of my site collection but all I got were 401s.
Response code: 401
Response message: Unauthorized
HTTP/1.1 401 Unauthorized
How to create a basic page request in JMeter for SharePoint:
- Download Java Runtime Environment: http://www.java.com/en/download/index.jsp
- Download JMeter: https://jmeter.apache.org/download_jmeter.cgi
- Extract JMeter.
- Run jmeter.bat from the bin folder.
- Right click Test Plan > Add > Threads (User) > Thread Group
- Right click on "Thread Group" > Add > Sampler > HTTP Request
- In the new HTTP Request you just added:
- Server Name or IP: uri of your site collection (without the http(s)). For example if the landing page of my site collection is: http://spdev/Pages/Default.aspx. You would just have spdev in this field.
- Port Number: can be left blank if using port 80.
- Implementation: Java <- this is the step I had to change to get this whole thing to work for me.
- Path: in this example I put /Pages/Default.aspx
- Right click on "Thread Group" > Add > View Results in Table (or View Results Tree).
- Now click: Run > Start (or Ctrl + R)
No comments:
Post a Comment