aboutsummaryrefslogtreecommitdiffstats
path: root/sos.spec
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2017-10-06 15:52:06 -0400
committerBryn M. Reeves <bmr@redhat.com>2018-05-29 14:22:03 +0100
commit2fcf5f09e0e809124aeb5e262eeecbe446824efc (patch)
tree26faf8ea8e5bf05f2d8e76ce83e5331e5dba3345 /sos.spec
parentd551281af6ab5a964bfa1b8062d0f4d17e28f051 (diff)
downloadsos-2fcf5f09e0e809124aeb5e262eeecbe446824efc.tar.gz
[utilities] Allow size limits for command output
Previously, any command output generated from plugins from add_cmd_output and add_journal would be collected in full in memory. For example, if a journal was 4GB in size, then 4GB would be read into memory and subsequently written to the final sos archive. This lead to not only potentially large archives, but in some cases failure to collect data or produce an archive due to memory constraints on the system. This patch adds the ability to use a sizelimit option in both add_cmd_output and add_journal. This will limit the collected output from commands or journals to the given limit, both what is read into memory and what is written to the final archive. If not given, sizelimit will default to --log-size. For journal collection, if no sizelimit is given then the larger of either --log-size or 100mb is used. Resolves: #1120 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos.spec')
0 files changed, 0 insertions, 0 deletions