-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Locust Web Dashboard Charts, Slaves sections not working after certain time #1276
Comments
The only thing I can think of that could maybe cause this kind of symptoms is if you have a huge number of URL-endpoints that you don't group using the HTTP client's Otherwise, without a way to reproduce this, it's very hard for me to debug it. Therefore I recommend that you try to create a minimal reproducible example and post here (code for the locustfile and detailed instructions on how to reproduce the error). |
@heyman : Do you mean this ? https://docs.locust.io/en/stable/writing-a-locustfile.html#grouping-requests-to-urls-with-dynamic-parameters . If yes, we used grouping most of the cases. On the Web UI/Dashboard , we have "Statistics" tab for 70 urls endpoints, but when we download the request statistics in CSV its above 1000 rows.. How does that happens? Please let us know. |
Yes, that's what I meant. Which CSV file are you downloading? What does it contain? |
It's request statistics CSV from the downloads tab/section
…On Wed, Mar 4, 2020, 5:39 PM Jonatan Heyman, ***@***.***> wrote:
Yes, that's what I meant.
Which CSV file are you downloading? What does it contain?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1276?email_source=notifications&email_token=AGI5YFPCP5GMCJMBQSS2P53RF37EHA5CNFSM4LAADSNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN3LLKA#issuecomment-594982312>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGI5YFJYFMYM5HANUG7C6GLRF37EHANCNFSM4LAADSNA>
.
|
That sounds very weird, and I have no idea why that might be. If you can find out a way in which I can reproduce it I should be able to debug it. |
From the errors on the browser console, it indicates that error is caused due to "invalid escape sequence" in the locust.js 's renderTable() and UpdateStats() function. Will you able to dig in that direction. |
Without a way to reproduce it, the only thing I can do is guess and speculate. |
I am not sure whether you will be able to join screen share session - I
know its too much to ask. My apologies, if I asked bad. Like any load
testing tool perspective its difficult to convey the reproductions steps on
an issue with the tool.
…On Thu, 5 Mar 2020 at 12:21, Jonatan Heyman ***@***.***> wrote:
Without a way to reproduce it, the only thing I can do is guess and
speculate.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1276?email_source=notifications&email_token=AGI5YFJYIP744NAICHTEAKTRGACUBA5CNFSM4LAADSNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN6YHNI#issuecomment-595428277>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGI5YFMWOQ2EZ627GSRKMETRGACUBANCNFSM4LAADSNA>
.
--
Abin Antony,
Mobile- (+1 ) 250.888.7240
|
When this happens, could you download the JSON output at http://locust-host:8089/stats/requests and upload it somewhere so I could have a look? Using that I might be able to reproduce the error. |
@heyman Here it is . Please find the attached requests.txt(renamed from .json to upload here). Another interesting thing which I have seen today is , soon after "Charts" and "Slaves" tab failed to display live updates or stats values, I pressed the "reset stats" button on the top right, this made graphs to work again but from the time point after I pressed the reset button. This make our comparison with values before it fails difficult. Thought to share, if it helps |
I managed to find the bug with the help of your If you can not switch to running master (some large refactoring has gone into it, and its unlikely to be released very soon), you should be able to fix it by making sure that you don't output HTML in your failures (when using |
We are getting issues on Locust Web Dashboard after some time or certain load. Initially we thought its related to errors on our scripts, but even with zero errors/exception on our locust scripts we are getting "Charts" with no graphs or values on it . Same with "Slaves" Tab, its not displaying any info at all. Also, the top right on dashboard we have a RPS indicator that also fails. I did refresh few times, its only showing latest data on "Statistics" tab, **but "Charts", "Slaves" tab have no information. We are using Locust 0.14.4.. I saw different bug with similar description, but that tells it got fixed with an earlier version.
I checked Firefox browser console and its displaying an error on locust.js -SyntaxError: invalid escape sequence
I tried the same with Chrome, it is also pointing with locust.js file
[UPDATE] : Its seems this error happens when there are more RPS, when we tried with a "sleep" inside our Locust code --- we were able to run for quite a long than previous runs, but in the end it failed.
Please help with your inputs.
Environment
OS: Linux Ubuntu( acutally a VM on Azure) - Linux 5.0.0-1032-azure x86_64
Python version: Python 3.6.9
Locust version: locust 0.14.4
The text was updated successfully, but these errors were encountered: