> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.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` 함수를 사용해야 합니다. 자세한 내용은 [여기](/ko/reference/system-tables/overview#system-tables-in-clickhouse-cloud)를 참조하십시오.
</Info>

<div id="description">
  ## 설명
</div>

이 시스템 테이블은 사용자의 메모리 사용량과 ProfileEvents를 개괄적으로 확인하는 데 사용할 수 있습니다.

<div id="columns">
  ## 컬럼
</div>

* `user` ([String](/ko/reference/data-types)) — 사용자 이름입니다.
* `memory_usage` ([Int64](/ko/reference/data-types)) — 사용자의 모든 프로세스에서 사용하는 RAM의 합계입니다. 일부 유형의 전용 메모리는 포함되지 않을 수 있습니다. `max_memory_usage` 설정을 참조하십시오.
* `peak_memory_usage` ([Int64](/ko/reference/data-types)) — 사용자의 최대 메모리 사용량입니다. 해당 사용자에 대해 실행되는 쿼리가 없으면 재설정될 수 있습니다.
* `ProfileEvents` ([Map(LowCardinality(String), UInt64)](/ko/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.
```
