-
Notifications
You must be signed in to change notification settings - Fork 1.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
Reduce memory usage for long duration tests #2367
Comments
We have plans (e.g. #763, #1321) for reducing the memory usage that the built-in For now, the official recommendation for long-running tests is to run k6 with |
If no thresholds - I can't auto-stop on testing system degradation. I agree that's my solution is ugly and not a viable option to include in the k6 core. It's example for oen way for reduce memory usage. Use histograms (like #763) is a better solution. And may require minimal refactoring ? |
You could monitor the response times in the script by comparing the
That's the hope, though the last time I looked at it, the Go HDR histogram library was unmaintained, so we might need to fork and polish it... 🤷♂️ |
Any solutions or workarounds for long tests that run out of memory because of Trend on K6 cloud? |
@metaturso k6 cloud already does the exact thing that is recommended in this issue - so there is no problem with Trend in cloud. If you have problems please contact support |
Feature Description
Statistic require a lot of memory when run long duration tests. Any way for have statistic and thresholds and reduce memory usage ?
Suggested Solution (optional)
May be a flag (may be
cycles
), than allow to runN
executions (by default is 1) in cycle.Statistic are flushed on every cycle.
Draft in https://github.com/msaf1980/k6/tree/iterate_loop
But required of change some internals, so maybe not complete.
Already existing or connected issues / PRs (optional)
No response
The text was updated successfully, but these errors were encountered: