Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Load testing Moodle with JMeter: Difference between revisions

From MoodleDocs
(Updated link)
No edit summary
Line 1: Line 1:
Apache JMeter  is a 100% pure Java desktop application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.


There's a place in Moodle Contrib for people to share their Jmeter scripts here:
This article is a stub until we collect enough information about the developments since [https://docs.moodle.org/dev/index.php?title=JMeter&oldid=35771 previous update in 2012]. All improvements are welcome!
http://cvs.moodle.org/contrib/tools/jmeter/


For more information about JMeter and what it could help you to stress test your Moodle installation, please see:
You can also add your comments to the [https://docs.moodle.org/dev/index.php?title=Talk:JMeter&action=edit&redlink=1 discussion page] or to the the [https://moodle.org/mod/forum/discuss.php?d=395002 discussion in the General developer forum].
http://jakarta.apache.org/jmeter/
 
<hr/ >
The Apace JMeter has always been the most common load testing resp. performance measurement tool for Moodle. Since release 2.5, Moodle makes the process vastly simpler through two built-in scripts '''Make test course''' (Site administration > Development > Make test course) and '''Make JMeter test plan''' (Site administration > Development > Make JMeter test plan) augmented by the add-ons [https://github.com/moodlehq/moodle-performance-comparison Moodle performance comparison]. This document is about the two built-in scripts.
 
Warning: '''Do not run these scripts on a production system!'''
 
These tests load the server to its limits and beyond, making it nonreponsive. Even if you can afford down-times don't run them on a separate Moodle instance on the production server: their effect on the DBMS is undocumented.
 
<h2>Make test course</h2>
(to be filled)
 
<h2>Make JMeter test plan</h2>
(to be filled)
 
<h2>Running the test plan on JMeter</h2>
(to be filled)


For JMeter FAQ, see:
http://wiki.apache.org/jakarta-jmeter/JMeterFAQ


==See also==
==See also==
*[http://moodle.org/mod/forum/discuss.php?d=119443 Using Moodle forum discussion on Jmeter Scripts]
*[http://jmeter.apache.org/jmeter/ Apache JMeter homepage]
*[http://www.open.ac.uk/blogs/XHProf/?page_id=64 JMeter testplan generation Moodle plugin] developed by [http://moodle.org/user/view.php?id=264538&course=5 James Brisland]
*[https://github.com/lucisgit/moodle-jmeter-script-generator JMeter script generator for Moodle] - James Brisland's [http://www.open.ac.uk/blogs/XHProf/?page_id=64 plugin] git repository containing external contributions.
*[http://www.javapassion.com/handsonlabs/javatestjmeter/index.html JavaPassion LAB 1077: JMeter Load Testing]


[[Category:Developer tools]]
[[Category:Developer tools]]

Revision as of 10:36, 28 December 2019

This article is a stub until we collect enough information about the developments since previous update in 2012. All improvements are welcome!

You can also add your comments to the discussion page or to the the discussion in the General developer forum.


The Apace JMeter has always been the most common load testing resp. performance measurement tool for Moodle. Since release 2.5, Moodle makes the process vastly simpler through two built-in scripts Make test course (Site administration > Development > Make test course) and Make JMeter test plan (Site administration > Development > Make JMeter test plan) augmented by the add-ons Moodle performance comparison. This document is about the two built-in scripts.

Warning: Do not run these scripts on a production system!

These tests load the server to its limits and beyond, making it nonreponsive. Even if you can afford down-times don't run them on a separate Moodle instance on the production server: their effect on the DBMS is undocumented.

Make test course

(to be filled)

Make JMeter test plan

(to be filled)

Running the test plan on JMeter

(to be filled)


See also