mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
15 lines
483 B
Plaintext
15 lines
483 B
Plaintext
Build clickhouse without tcmalloc. cmake -D ENABLE_TCMALLOC=0
|
|
|
|
Copy clickhouse binary to your server.
|
|
scp programs/clickhouse server:~
|
|
|
|
ssh to your server
|
|
|
|
Stop clickhouse:
|
|
sudo service clickhouse-server stop
|
|
|
|
Run clickhouse with heap profiler from the terminal:
|
|
sudo -u clickhouse LD_PRELOAD=/usr/lib/libtcmalloc.so HEAPPROFILE=/var/log/clickhouse-server/heap.hprof ./clickhouse server --config /etc/clickhouse-server/config.xml
|
|
|
|
Profiles will appear in /var/log/clickhouse-server/
|