Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior of "Total Requests per Second" chart #889

Closed
hoangphucITJP opened this issue Sep 19, 2018 · 9 comments
Closed

Strange behavior of "Total Requests per Second" chart #889

hoangphucITJP opened this issue Sep 19, 2018 · 9 comments
Labels
bug hacktoberfest See https://hacktoberfest.digitalocean.com for more info

Comments

@hoangphucITJP
Copy link

Description of issue

Total Requests per Second's RPS drop to below 1 after the test start a while despite the RPS number on top keep rising

Expected behavior

The RPS of Total Requests per Second chart should keep updating according to the RPS number on top

Actual behavior

The RPS of Total Requests per Second chart value does not match the RPS number on top after the test start a while

Environment settings (for bug reports)

  • OS: Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-78-generic x86_64)
  • Python version: 2.7.12
  • Locust version: 0.9.0

Steps to reproduce (for bug reports)

I don't know what to put here but feel free to ask for any extra information. I can't provide the code though

Screenshot

imgpsh_fullsize

P/s: Sorry for ignored the template.

@klloveall
Copy link

I have also encountered this issue. I dug into the responses and it's happening because the /stats/request endpoint stops returning the "Total" stat block at the end of the stats list. This then causes the graph to show a RPS from a random path instead of from the total like it should. Interestingly, as is shown in the screenshot from @hoangphucITJP, the RPS in the header is still correct.

I tried to dig into the Python code and figure out what's causing it there, but haven't had much success there yet (mostly b/c I'm only running this in AWS, not locally so my debugging options are somewhat limited).

Please let me know if there's any suggestions as to how to solve this or any other debugging information I can provide.

@supermasita
Copy link

@cgoldberg I think my simple change should work as a fix (it has solved the issue for me). Thanks.

@supermasita
Copy link

@hoangphucITJP @klloveall - let me know if manually applying my change fixes your issue. I think my PR is correct, but it is not building for unrelated reasons. Thanks.

@sweetib
Copy link

sweetib commented Jun 24, 2019

we are also facing this issue, when is the PR supposed to be merged?

@victor61zhong
Copy link

any update for this issue ?

@canstudios-simonm
Copy link

I also see the RPS drop off as shown in the graph every time we run Locust. It makes tracking the average RPS value over a run very hard without it working.

@cyberw cyberw added the hacktoberfest See https://hacktoberfest.digitalocean.com for more info label Oct 20, 2019
@cyberw
Copy link
Collaborator

cyberw commented Oct 20, 2019

I cant reproduce this (on MacOS, using locust 0.12.1). Is this only an issue on Linux? Or is it something related to the test plan?

image

@heyman
Copy link
Member

heyman commented Oct 20, 2019

I believe this could have the same cause to #1060 which has now been fixed.

@heyman heyman closed this as completed Oct 20, 2019
@subbro
Copy link

subbro commented Mar 8, 2021

Hi, I am unable to understand how this total request per second is calculated? Can someone please explain this? I am new to locust

Also the relationship between RPS and TRPS?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hacktoberfest See https://hacktoberfest.digitalocean.com for more info
Projects
None yet
Development

No branches or pull requests

10 participants