Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Performance Tests

Performance Tests 6 months 3 weeks ago #106845

  • Erwinx2
  • Erwinx2's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Hello,

I want to make some performance tests with LimeSurvey.
I am able to procceed a survey automatically, but the values of the inputs of a survey page doesnt show up in the db or the survey statistic page in the admin. There is only an IP recoreded

Is there any funny JavaScript stuff I should aware of while programatically triggering post requests?

Thank you in avance. :cheer:
The administrator has disabled public write access.

Performance Tests 6 months 3 weeks ago #106954

  • Erwinx2
  • Erwinx2's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Update: Are there any hidden INPUT-TAGS generated by JavaScript at runtime which are nessesary to get the form-values into the DB? Which additional values are expected by the PHP-Classes exceopt the cookie and the token? Are there any exceptions related to start time or other values?
Last Edit: 6 months 3 weeks ago by Erwinx2.
The administrator has disabled public write access.

Performance Tests 6 months 3 weeks ago #107027

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
If you are doing load testing using a scripting tool like WebLoad, you will need to disable one of the features within LimeSurvey that is designed to prevent resubmission of pages. Search for LEMpostKey in SurveyRuntimeHelper.php.

You can probably make your life easy by just changing this line:
$_SESSION[$LEMsessid]['LEMpostKey'] = mt_rand();

to
$_SESSION[$LEMsessid]['LEMpostKey'] = 999;

and then ensure that you have a LEMpostKey parameter with the same value in your load testing scripts.


Additionally, the best place to look for performance improvement is by reducing the memory footprint. See feature request #8928. The serialization is in /application/helpers/expression/em_manager_helper.php
The administrator has disabled public write access.

Performance Tests 6 months 1 day ago #107872

  • Erwinx2
  • Erwinx2's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Thank you TMSWhite,

this works perfect.
The administrator has disabled public write access.

Performance Tests 5 months 1 week ago #108880

  • Erwinx2
  • Erwinx2's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Now after some testings on different platforms, I get a performance lack of several seconds in the last post request of a survey. What can I do to avoid this?

I read "em_manager_helper.php" but it seems this is a general architectural problem.

Is it because of collecting the answer-data until the last survey page? It seems a db-update issiues only on the last page of a survey, instead of every survey page.

thx.
The administrator has disabled public write access.

Performance Tests 5 months 6 days ago #108934

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
1. Please test if you can reproduce the issue at the Limesurvey demo.

2. Please post a link to the activated survey so we can have a look.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Performance Tests 5 months 5 days ago #108962

  • Erwinx2
  • Erwinx2's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Hello,


I only can test your Demo if you provide the above mentioned hints "$_SESSION[$LEMsessid] = 999;" in your Demo-Version(s).

On our prefered Hosting Platform the effect only occurs, if there are more then one users at the same time involved. Otherwise it is not recognizable.

Some results:

30 users in 30 seconds = ~ 10 seconds latency on the last survey page

15 users in 15 seconds = ~ 7 seconds latency on the last survey page

1 user = 800 ms on the last survey page


I will ask my boss to provide a link to our survey, but to reproduce the effect it needs additional simulated users (see above).

Any additional suggestions?

Thx in advance
Last Edit: 5 months 5 days ago by Erwinx2.
The administrator has disabled public write access.

Performance Tests 5 months 5 days ago #108963

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
Sorry, we can't hack the demo :-)

What resources (CPU, memory, ...) are available at the server? Which DB do you use?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
Last Edit: 5 months 5 days ago by Mazi.
The administrator has disabled public write access.

Performance Tests 5 months 5 days ago #108964

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 810
  • Thank you received: 115
  • Karma: 93
Do you have email notification activated for your survey?
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Performance Tests 5 months 5 days ago #108965

  • Erwinx2
  • Erwinx2's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Hello,

we reproduced the effect on nearly every hardware-configuration at Amazon AWS (including the high end mashines). We also tested a Nginx-Environment vs. LAMP in conjunction with the biggest DB-Instances.

aws.amazon.com/de/ec2/instance-types/

...and using the default MySQL/MyISAM.

Since the effect is bigger on Amazon, I am just migrating to a "normal" Hosting Provider we have tested too:

- RAM 16 GB
- 500 GB SSD
- 8 vCores
- classical LAMP-System

E-Mail-Notivication ist enabled. I could test it disabled.
Last Edit: 5 months 5 days ago by Erwinx2.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.220 seconds
Donation Image