Moodle benchmark test

Moodle benchmark test

Sue Sottili -
回帖数:9
Hi,
I've to do some benchmark test on my 2 sites Moodle: one is working on mysql and the other on postgresql! I'use Linux, Debian distribution!
I've to complete my databases, I've to try simulate a university. But, I'don't know how to do this in a few time. I've tried with ab (apache benchmark) and httperf, but those tools support only a cookie per request, while Moodle use 4 cookie in a http post!
There's someone than could help me?

What to you thin about connect every body to my site so I can do my test :P ... I' will be more easy...

Tha 微笑
回复Sue Sottili

Re: Moodle benchmark test

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Moodle only has one necessary cookie: the session cookie (normally called PHPSESSION or something like that).
回复Martin Dougiamas

Re: Moodle benchmark test

Sue Sottili -
Tnx 微笑
I find the cookie, but when I do my http post request moodle return an error page.

I use etherreal to sniff the cookie from a request build by moodle, then I use ab in this way:
 ab2 -p assignmentpost -H 'Host:moexsi.dyndns.org'  -H 'Referer:http://moexsi.dyndns.org/~sue/moodle-postgres/course/mod.php?id=4&section=0&add=assignment' -H 'Accept: text/*' -C 'MoodleSession=31bf95828e65a2ecfbe3258c8bec0a0a' http://moexsi.dyndns.org/~sue/moodle-postgres/course/mod.php

The reply is HTTP 200, ok, but, in the packet of the reply there is the html error page, and I don't write anything on my db.

Any idea?

Thank'a lot Matin 微笑
回复Sue Sottili

Re: Moodle benchmark test

Gustav W Delius -

Hi Sue,

did you get any further with your benchmark test to simulate moodle in a university environment? Your results and experiences will be extremely valuable to other universities who are considering whether to adopt Moodle for their institutional VLE.

回复Sue Sottili

Re: Moodle benchmark test

Juan Emilio Fuentes -

I think that the test you are doing is the interest for all universities. I would appreciate if you could send me the test when you will finish it. Tyhnaking you in advance,

Juan Fuentes

Havana University

Physics Faculty

jfuentes@fisica.uh.cu

回复Sue Sottili

Re: Moodle benchmark test

Miles Tillinger -
ab usage info states

-C attribute Add cookie, eg. 'Apache=1234. (repeatable)

note 'repeatable'. Have you tried passing all the 4 cookies? I am trying to benchmark as well and am having the same problem trying to benchmark resource intensive pages and activities. I think there needs to be some more reliable information about Moodle scalability. Even though it'd be hard to be exact, some sort of guidelines would be useful during evaluation.
回复Miles Tillinger

Re: Moodle benchmark test

Martín Langhoff -
For complex applications, where users login, set cookies,
redirects, and have many pages with different relative loads, I use
JMeter. It is a Java toy, you set it up as a proxy, and use mozilla to do one or more "normal user sessions" through that proxy. The proxy records everything, and you can ask it to replay it against the server, times 1000 (or whatever).

Some things are well known to be performance hogs:

- using 'groups' within courses
- displaying the calendar when there are many courses, and for users enrolled/teaching in many courses
- courselisting and moving courses around (up/down)

A lot of performance work is going into 1.4.3 and 1.5. Get good numbers from 1.4.2 so we can compare and brag ;)
回复Sue Sottili

Re: Moodle benchmark test

sulochana sooriyaarachchi -
F1 ! F1 !

I can't login to Moodle using httperf --wsesslog option.

my urifile has:

/moodle/login/index.php method=POST contents='username=user&password=123'

command I issued

#httperf --hog --server localhost --port 80 --wsesslog 1,0,urifile --print-reply --num-conns 1 > outfile

output shows 'you are not logged in' mixed


Any help is appreciated....


回复sulochana sooriyaarachchi

Re: Moodle benchmark test

sulochana sooriyaarachchi -

I am trying to load my Moodle using a set of URLs such that it mimics a real user working in a session. When I send just username and password as mentioned in my earlier post I get a page saying 'you are not logged in'

I am wondering what I should do about the MoodleSession cookie for getting a session maintained using httperf thoughtful

Could anyone pls help?

回复sulochana sooriyaarachchi

Re: Moodle benchmark test

sulochana sooriyaarachchi -
smile Thanks to http://www.bradino.com/php/empty-post-array/ I could pass post data to a simple php script.
The problem was that I did not specify the content type at the httperf command.

httperf --server localhost --port 80 --wsesslog 1,1,myfile --print-reply --add-header="content-type: application/x-www-form-urlencoded\n"


Earlier $_POST array did not get populated, for my own simple php script. But after I used the option bold faced above it got ok.

But still the problem is with Moodle login page thoughtful ....

Ealier I was thrown back to logn/index.html. But now end up in location.replace (http://localhost/moodle)