Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: Performance Tests

Performance Tests 5 Monate 2 Wochen her #106845

  • Erwinx2
  • Erwinx2s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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:
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 5 Monate 2 Wochen her #106954

  • Erwinx2
  • Erwinx2s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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?
Letzte Änderung: 5 Monate 2 Wochen her von Erwinx2.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 5 Monate 2 Wochen her #107027

  • TMSWhite
  • TMSWhites Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 759
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 4 Monate 3 Wochen her #107872

  • Erwinx2
  • Erwinx2s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Thank you TMSWhite,

this works perfect.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 3 Monate 4 Wochen her #108880

  • Erwinx2
  • Erwinx2s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 3 Monate 4 Wochen her #108934

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5325
  • Dank erhalten: 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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 3 Monate 3 Wochen her #108962

  • Erwinx2
  • Erwinx2s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Letzte Änderung: 3 Monate 3 Wochen her von Erwinx2.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 3 Monate 3 Wochen her #108963

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5325
  • Dank erhalten: 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'"
Letzte Änderung: 3 Monate 3 Wochen her von Mazi.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 3 Monate 3 Wochen her #108964

  • c_schmitz
  • c_schmitzs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 778
  • Dank erhalten: 111
  • Karma: 92
Do you have email notification activated for your survey?
Support us, too. Donate to the LimeSurvey project and help keep us going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Performance Tests 3 Monate 3 Wochen her #108965

  • Erwinx2
  • Erwinx2s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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.
Letzte Änderung: 3 Monate 3 Wochen her von Erwinx2.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.260 Sekunden
Donation Image