How to perform load testing on MS SQL Server using jmeter.

1. Download Microsoft JDBC Driver for SQL Server: Download driver. put it to folder lib of JMETER.

2. Open Jmeter from : apache-jmeter_home/bin/jmeter.bat or ApacheJMeter.jar

3. Add Users

Select the Test Plan, right click on Test Plan, select Add> Threads(Users)> Thread Group
Set up the following fields for Users:
a. Set value for Numbers of Threads(users): 5
b. Set value for Ram-up Periods : 2.
It means that 5 users connect to MYSQL server withine 2 seconds.


4.Add JDBC Connection Configuration

Right click on the 'Thread Group', select Add > Config Element > JDBC Connection Configuration.
Set up the following fields for MySQL database:
a. Variable name bound to pool. This needs to uniquely identify the configuration. It is used by the JDBC Sampler to identify the configuration to be used. We have named it as 'mssqlpool'
b. Database URL: jdbc:sqlserver://host:port;DatabaseName=dbname
c. JDBC Driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
d. Username: username of database
e. Password: password of database
f.The other fields can be left as the defaults


5. Add JDBC Requests

Right click on the 'Thread Group', select Add > Sampler > JDBC Request.
Then, select this new element to view its Control Panel. Edit the properties as below:
a. Enter the Pool Name: mssqlpool (same as in the configuration element)
b. Query Type: Select statement
c. Enter the SQL Query String field.


6. Adding a Listener to View/Store the Test Results

Right click on the 'Thread Group', select Add --> Listener --> View Results Tree and Summary Report
Save the test plan, and run the test with the menu Run --> Start or Ctrl+R

29 comments:

  1. Jmeter Jmeter Training "Jmeter Online Training
    Send ur Enquiry to contact@21cssindia.com
    Course content
    Introduction and Configuration of Jmeter
    Jmeter standard components" more… Online Training- Corporate Training- IT Support U Can Reach Us On +917386622889 - +919000444287 http://www.21cssindia.com/courses/jmeter-online-training-102.html

    ReplyDelete
  2. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing. CCNA training in chennai | CCNA training chennai | CCNA course in chennai | CCNA course chennai

    ReplyDelete
  3. Nice article i was really impressed by seeing this article, it was very interesting and it is very useful for me.. Mysql Training in chennai | Mysql Training chennai | Mysql course in chennai | Mysql course chennai

    ReplyDelete
  4. Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing dude.
    Regards,
    Web design training Chennai|Salesforce training institute in Chennai|Web design course in Chennai

    ReplyDelete
  5. Thanks for sharing this niche useful informative post to our knowledge, Actually SAP is ERP software that can be used in many companies for their day to day business activities it has great scope in future so do your SAP training in chennai
    Regards,
    SAP Institutes in Chennai|sap training center in Chennai|SAP ABAP Training in Chennai

    ReplyDelete
  6. Well post, Thanks for sharing this to our vision. In recent day’s customer relationship play vital role to get good platform in business industry, Sales force crm tool helps you to maintain your customer relationship enhancement.
    Regards,
    Salesforce course in Chennai|Salesforce training chennai|Salesforce training institutes in Chennai|Salesforce training in Chennai

    ReplyDelete
  7. Nice information about the load testing!!! I prefer Loadrunner automation testing tool to validate the performance of software application/system under actual load. Best Loadrunner training in Chennai | Loadrunner Training

    ReplyDelete
  8. Helo Admin,
    Awesome Post! I like writing style, how you describing the topics throughout the post. I hope many web reader will keep reading your post at the end, Thanks for sharing your view.
    Regards,
    cognos Training in Chennai|cognos Certification|Best COGNOS Training Institute in Chennai

    ReplyDelete
  9. Excellent post! keep sharing such a informative post.
    android training in chennai

    ReplyDelete
  10. This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.
    SEO Training in Chennai |
    Digital Marketing Training in Chennai

    ReplyDelete
  11. Thanks for sharing this useful information about LoadRunner. It is a great information.
    Performance testing training in Chennai | LoadRunner Training Institute in Chennai

    ReplyDelete
  12. Hi, I am getting below error:

    Cannot create PoolableConnectionFactory (The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".)


    ReplyDelete
  13. Thank you for this post!! I have just discovered your blog recently and I really like it! I will definitely try some of your insights.
    Regards,
    SQL Training in Chennai | SQL DPA Training in Chennai | SQL Training institute in Chennai

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. Thank you for the info
    https://360digitmg.com/india/data-science-using-python-and-r-programming/

    ReplyDelete
  17. Thanks for your informative blog!!! Your article helped me to understand the future of .net programming language. Keep on updating your with such awesome information. .net



    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery


    ReplyDelete
  18. Very useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful. I bookmarked this blog a while ago because of the useful content and I am never being disappointed. Keep up the good work..
    software testing company
    QA Outsourcing Sevices
    Performance testing Services

    ReplyDelete
  19. Thanks for sharing this awesome blog. I hope you will continue to have similar posts to share with everyone! Visit below sites to upgrade your blogs with the help of us.
    Devops Course in Bangalore
    Devops training in Bangalore

    ReplyDelete
  20. Thanks for sharing this valuable article with great information to our vision. You have posted a trust worthy blog keep sharing.
    AI Training in Bangalore

    AI Course in Bangalore

    ReplyDelete
  21. Great content thanks for sharing this informative blog which provided me technical information keep posting.
    Java Training in Bangalore

    Java Course in Bangalore

    ReplyDelete