Performance testing with Drupal and JMeter (with login!)

Submitted by Jochus on Mon, 06/12/2010 - 09:42 | Posted in: Drupal

Last week, I had to do some performance testing on a Drupal site. Performance testing can be done with JMeter (, but the difficult thing was to create a login session from JMeter to Drupal.


The first step: install JMeter

$ sudo aptitude install jmeter

Just for the record, I'm using this version:

$ dpkg -l | grep jmeter
ii  jmeter                               2.3.4-2ubuntu1                                  Load testing and performance measurement app
ii  jmeter-help                          2.3.4-2ubuntu1                                  Load testing and performance measurement app
ii  jmeter-http                          2.3.4-2ubuntu1                                  Load testing and performance measurement app


  • On the "Testplan" icon, click right and "Add" a "Threadgroup"
    • In "Thread properties", define the "total number of users" which are accessing your site + a "Ramp up Period" and how many times this action should run
  • Next, install an "HTTP Cookie Manager" in the "Thread Group". This cookie manager will send a cookie along the HTTP request, to be able to login on the site
    • Set "Cookie Policy" to "Compatibility"
    • Login to Drupal in your favorite browser (such as Firefox)
    • Open the list of cookies and search for some name as: "SESScc6c90d4c6f532ab4343b8b404cdf01d"
    • Add a line in JMeter with: name, value, domain, path such as in the cookie which can be viewed in Firefox
  • Next, install an "HTTP Request defaults" element
    • Specify "domain" and "path"
  • Finally, install a "View Results Tree" element, which can debug all HTTP requests

Total result


Submitted by Anonymous (not verified) on Wed, 23/05/2012 - 09:12

Is it possible here to check the load when a lot of users are using the site?

Submitted by Jochus on Thu, 24/05/2012 - 19:06


Can you be more specific when you talk about "the load"?
You mean CPU performance? Memory usages? I/O? Network usage?


Add new comment

The content of this field is kept private and will not be shown publicly.


  • Lines and paragraphs break automatically.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Web page addresses and email addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <cpp>, <css>, <html5>, <java>, <javascript>, <php>, <sql>, <xml>. The supported tag styles are: <foo>, [foo].
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.