Truncate number of errors displayed in the web UI #532

merged 1 commit into from Feb 12, 2017


None yet

2 participants


This change limits the number of rows on the web UI to display at most 500 rows in the stats and failures tabs. A common scenario is the app failing under load, resulting in a large number of unique failures, bringing the rendering to a halt.

A simple locustfile demonstrates the issue:

import random 

from locust import HttpLocust, TaskSet, task

class UserTasks(TaskSet):

    def error(self):

class WebsiteUser(HttpLocust):
    min_wait = 0
    max_wait = 0
    task_set = UserTasks

This will generate a large number of results and errors, eventually killing the page. I feel that 500 results is a reasonable number to display as it's more than anyone could consume manually through the web UI. But for automated processes, the actual results will remain intact.

@justiniso justiniso truncate the number of results and errors displayed on the web ui to …
…avoid slow rendering
@justiniso justiniso added the bug label Feb 12, 2017


@justiniso justiniso merged commit fee2868 into master Feb 12, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed
@justiniso justiniso deleted the fix-slow-ui-on-high-failures branch Feb 12, 2017
@justiniso justiniso added this to the 0.8.0 milestone Feb 12, 2017
This was referenced Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment