Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34527

Command line client retains too much results without -q, leading to memory overconsumption

    XMLWordPrintable

Details

    Description

      MCOL-5587 - discovery place. The reproduction there can be used here, one iteration and 10K-1M records will suffice.

      Running heaptrack on the mariadb test -e "select * from cptest; shows about three stack traces that have peak consumption that grows linearly with the number of rows returned. This is due to logic that results are stored for later consumption if command line option "-q" is not given.

      I think that some memory threshold on the results' storage would be nice.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergey.zefirov Sergey Zefirov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.