I imagine you are exporting all the metrics, the granular data points, in JSON format with the JSON output. Please clarify if me if Iβm wrong. This can create a big file with a large test. Especially when using JSON, since itβs verbose.
One solution is using k6βs built-in support for outputting the results in other formats, like Prometheus, InfluxDB, or maybe even CSV (less verbose than JSON). These formats are more suitable for large data sets. Especially streaming the results to a data store.
If you want to see only the aggregated data, you can export the end-of-test summary to a JSON file. For more details, refer to the handleSummary() topic in the end-of-test summary docs.
There is probably also the option to increase the maximum file size limit allowed by your system. However, this may not be feasible or desirable. Or reducing the amount of data that is being recorded by k6.