<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="sys-memory-by-user-by-current-bytes">
      </a>
      30.4.3.18 The memory_by_user_by_current_bytes and
x$memory_by_user_by_current_bytes Views
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045062822848">
  </a>
  <a class="indexterm" name="idm46045062821392">
  </a>
  <a class="indexterm" name="idm46045062819888">
  </a>
  <a class="indexterm" name="idm46045062818384">
  </a>
  <p>
   These views summarize memory use, grouped by user. By default,
          rows are sorted by descending amount of memory used.
  </p>
  <p>
   The
   <a class="link" href="sys-memory-by-user-by-current-bytes.html" title="30.4.3.18 The memory_by_user_by_current_bytes and x$memory_by_user_by_current_bytes Views">
    <code class="literal">
     memory_by_user_by_current_bytes
    </code>
   </a>
   and
   <a class="link" href="sys-memory-by-user-by-current-bytes.html" title="30.4.3.18 The memory_by_user_by_current_bytes and x$memory_by_user_by_current_bytes Views">
    <code class="literal">
     x$memory_by_user_by_current_bytes
    </code>
   </a>
   views have these columns:
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      <code class="literal">
       user
      </code>
     </p>
     <p>
      The client user name. Rows for which the
      <code class="literal">
       USER
      </code>
      column in the underlying
              Performance Schema table is
      <code class="literal">
       NULL
      </code>
      are
              assumed to be for background threads and are reported with
              a host name of
      <code class="literal">
       background
      </code>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       current_count_used
      </code>
     </p>
     <p>
      The current number of allocated memory blocks that have
              not been freed yet for the user.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       current_allocated
      </code>
     </p>
     <p>
      The current number of allocated bytes that have not been
              freed yet for the user.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       current_avg_alloc
      </code>
     </p>
     <p>
      The current number of allocated bytes per memory block for
              the user.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       current_max_alloc
      </code>
     </p>
     <p>
      The largest single current memory allocation in bytes for
              the user.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       total_allocated
      </code>
     </p>
     <p>
      The total memory allocation in bytes for the user.
     </p>
    </li>
   </ul>
  </div>
 </div>
 <br/>
</div>
