> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ユーザーのメモリ使用量や ProfileEvents の概要把握に役立つ情報を含むシステムテーブル。

# system.user_processes

<Info>
  **ClickHouse Cloud でのクエリ**

  このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータを完全に把握するには、`clusterAllReplicas` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

このシステムテーブルを使用すると、ユーザーのメモリ使用量と ProfileEvents の概要を確認できます。

<div id="columns">
  ## カラム
</div>

* `user` ([String](/ja/reference/data-types)) — ユーザー名。
* `memory_usage` ([Int64](/ja/reference/data-types)) — ユーザーのすべてのプロセスで使用される RAM の合計。一部の専用メモリ種別は含まれない場合があります。`max_memory_usage` 設定を参照してください。
* `peak_memory_usage` ([Int64](/ja/reference/data-types)) — ユーザーのメモリ使用量のピーク値。ユーザーに対してクエリが実行されていない場合は、リセットされることがあります。
* `ProfileEvents` ([Map(LowCardinality(String), UInt64)](/ja/reference/data-types)) — ユーザーに関するさまざまなメトリクスを測定する ProfileEvents のサマリーです。各項目の説明は `system.events` テーブルを参照してください。

<div id="example">
  ## 例
</div>

```sql theme={null}
SELECT * FROM system.user_processes LIMIT 10 FORMAT Vertical;
```

```response theme={null}
Row 1:
──────
user:              default
memory_usage:      9832
peak_memory_usage: 9832
ProfileEvents:     {'Query':5,'SelectQuery':5,'QueriesWithSubqueries':38,'SelectQueriesWithSubqueries':38,'QueryTimeMicroseconds':842048,'SelectQueryTimeMicroseconds':842048,'ReadBufferFromFileDescriptorRead':6,'ReadBufferFromFileDescriptorReadBytes':234,'IOBufferAllocs':3,'IOBufferAllocBytes':98493,'ArenaAllocChunks':283,'ArenaAllocBytes':1482752,'FunctionExecute':670,'TableFunctionExecute':16,'DiskReadElapsedMicroseconds':19,'NetworkSendElapsedMicroseconds':684,'NetworkSendBytes':139498,'SelectedRows':6076,'SelectedBytes':685802,'ContextLock':1140,'RWLockAcquiredReadLocks':193,'RWLockReadersWaitMilliseconds':4,'RealTimeMicroseconds':1585163,'UserTimeMicroseconds':889767,'SystemTimeMicroseconds':13630,'SoftPageFaults':1947,'OSCPUWaitMicroseconds':6,'OSCPUVirtualTimeMicroseconds':903251,'OSReadChars':28631,'OSWriteChars':28888,'QueryProfilerRuns':3,'LogTrace':79,'LogDebug':24}

1 row in set. Elapsed: 0.010 sec.
```
