# Pmm-client is consuming Memory

**URL:** https://forums.percona.com/t/pmm-client-is-consuming-memory/6507
**Category:** PMM 1.x
**Created:** [August 14, 2018, 2:38am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507 "2018-08-14T02:38:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Gajendra](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/gajendra/32/44_2.png) [@Gajendra](https://forums.percona.com/u/Gajendra)
#### Post date: [August 14, 2018, 2:38am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507/1 "2018-08-14T02:38:22Z")

</div>

Hi ,

Pmm client is consuming too much memory  
we have 9GB RAM on mysql server

as i have disabled tablestats and userstats eventhough my client is eating too much memory

please suggest what i can optimize to reduce memory consumption.  
or any other details do you requires to diagnose it.

---

<div class="post-metadata">

### Author: ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)
#### Post date: [August 14, 2018, 2:59am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507/2 "2018-08-14T02:59:47Z")

</div>

Hi there, thanks for your question about PMM. There are a few pointers on this sticky post that might help you to identify the issues, [url][https://www.percona.com/forums/questions-discussions/percona-monitoring-and-management/50690-pmm-troubleshooting-and-how-to-report-a-bug[/url]](https://www.percona.com/forums/questions-discussions/percona-monitoring-and-management/50690-pmm-troubleshooting-and-how-to-report-a-bug%5B/url%5D) but meanwhile:  
[LIST]  
[_]What version of PMM are you on? if it’s not the latest version could you upgrade?  
[_]What environment are you operating in?  
[_]What are you monitoring? Are you monitoring several instances or just the one? MySQL or MongoDB? Are there any errors getting logged alongside the memory issues?  
[_]Is this a new install, or had everything used to work well and now it’s started to go wrong?  
[/LIST] Send in some of that information and I will see if I can get you more information.

---

<div class="post-metadata">

### Author: ![Gajendra](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/gajendra/32/44_2.png) [@Gajendra](https://forums.percona.com/u/Gajendra)
#### Post date: [August 14, 2018, 4:27am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507/3 "2018-08-14T04:27:34Z")

</div>

Hi,

Find below details.  
[LIST]  
[\*]What version of PMM are you on? if it’s not the latest version could you upgrade?  
[/LIST]

we installed PMM using docker

PMM-Server version : v1.10.0  
PMM-client Version : 1.12.0  
[LIST]  
[\*]What environment are you operating in?  
[/LIST]

Linux : CentOS Linux release 7.3.1611  
[LIST]  
[\*]What are you monitoring? Are you monitoring several instances or just the one? MySQL or MongoDB? Are there any errors getting logged alongside the memory issues?  
[/LIST]

we are monitoring everything except user and tablestats .

we are monitoring total 16 instances including  
mysql : 6  
MongoDb : 10

no other error found  
[LIST]  
[\*]Is this a new install, or had everything used to work well and now it’s started to go wrong?  
[/LIST]

one month back we started monitoring these server (mysql + Mongodb) but every week our database server is crashing due to memory issue.that is because of PMM.

docker create -v /opt/prometheus/data -v /opt/consul-data -v /var/lib/mysql -v /var/lib/grafana --name pmm-data percona/pmm-server:latest /bin/true  
docker run -d -p 80:80 --volumes-from pmm-data --name pmm-server --restart always percona/pmm-server:latest

---

<div class="post-metadata">

### Author: ![Gajendra](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/gajendra/32/44_2.png) [@Gajendra](https://forums.percona.com/u/Gajendra)
#### Post date: [August 14, 2018, 4:29am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507/4 "2018-08-14T04:29:47Z")

</div>

we are having memory issues on mysql server

---

<div class="post-metadata">

### Author: ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)
#### Post date: [August 14, 2018, 4:38am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507/5 "2018-08-14T04:38:32Z")

</div>

Hi [Gajendra](https://percona.vanillacommunities.com/profile/x/x/41906) , can you check what exact process is eating memory using [url][https://www.percona.com/blog/2018/05/21/capturing-per-process-metrics-with-percona-monitoring-and-management-pmm/[/url]](https://www.percona.com/blog/2018/05/21/capturing-per-process-metrics-with-percona-monitoring-and-management-pmm/%5B/url%5D) . Because PMM Client consists of several processes and will be better to know what exact process id causing the problem

---

<div class="post-metadata">

### Author: ![Peter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/peter/32/2_2.png) [@Peter](https://forums.percona.com/u/Peter)
#### Post date: [August 14, 2018, 6:38am UTC](https://forums.percona.com/t/pmm-client-is-consuming-memory/6507/6 "2018-08-14T06:38:22Z")

</div>

You can also use this command “ps aux | grep percona”

root@rocky:~# ps aux | grep percona  
root 1709 0.0 0.0 4504 708 ? Ss Aug13 0:00 /bin/sh -c /usr/local/percona/pmm-client/node\_exporter -collectors.enabled=diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,stat,time,uname,vmstat -web.listen-address=10.11.13.141:42000 -web.auth-file=/usr/local/percona/pmm-client/pmm.yml -web.ssl-cert-file=/usr/local/percona/pmm-client/server.crt -web.ssl-key-file=/usr/local/percona/pmm-client/server.key \>\> /var/log/pmm-linux-metrics-42000.log 2\>&1  
root 1711 1.0 0.0 2459912 19312 ? Sl Aug13 7:11 /usr/local/percona/pmm-client/node\_exporter -collectors.enabled=diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,stat,time,uname,vmstat -web.listen-address=10.11.13.141:42000 -web.auth-file=/usr/local/percona/pmm-client/pmm.yml -web.ssl-cert-file=/usr/local/percona/pmm-client/server.crt -web.ssl-key-file=/usr/local/percona/pmm-client/server.key  
root 1712 0.0 0.0 4504 788 ? Ss Aug13 0:00 /bin/sh -c /usr/local/percona/qan-agent/bin/percona-qan-agent \>\> /var/log/pmm-mysql-queries-0.log 2\>&1  
root 1715 0.0 0.0 147476 12332 ? Sl Aug13 0:25 /usr/local/percona/qan-agent/bin/percona-qan-agent  
root 1734 0.0 0.0 4504 848 ? Ss Aug13 0:00 /bin/sh -c /usr/local/percona/pmm-client/mysqld\_exporter -collect.auto\_increment.columns=true -collect.binlog\_size=true -collect.global\_status=true -collect.global\_variables=true -collect.info\_schema.innodb\_metrics=true -collect.info\_schema.processlist=true -collect.info\_schema.query\_response\_time=true -collect.info\_schema.tables=true -collect.info\_schema.tablestats=true -collect.info\_schema.userstats=true -collect.perf\_schema.eventswaits=true -collect.perf\_schema.file\_events=true -collect.perf\_schema.indexiowaits=true -collect.perf\_schema.tableiowaits=true -collect.perf\_schema.tablelocks=true -collect.slave\_status=true -web.listen-address=10.11.13.141:42002 -web.auth-file=/usr/local/percona/pmm-client/pmm.yml -web.ssl-cert-file=/usr/local/percona/pmm-client/server.crt -web.ssl-key-file=/usr/local/percona/pmm-client/server.key \>\> /var/log/pmm-mysql-metrics-42002.log 2\>&1  
root 1739 2.6 0.0 2459624 21752 ? Sl Aug13 18:30 /usr/local/percona/pmm-client/mysqld\_exporter -collect.auto\_increment.columns=true -collect.binlog\_size=true -collect.global\_status=true -collect.global\_variables=true -collect.info\_schema.innodb\_metrics=true -collect.info\_schema.processlist=true -collect.info\_schema.query\_response\_time=true -collect.info\_schema.tables=true -collect.info\_schema.tablestats=true -collect.info\_schema.userstats=true -collect.perf\_schema.eventswaits=true -collect.perf\_schema.file\_events=true -collect.perf\_schema.indexiowaits=true -collect.perf\_schema.tableiowaits=true -collect.perf\_schema.tablelocks=true -collect.slave\_status=true -web.listen-address=10.11.13.141:42002 -web.auth-file=/usr/local/percona/pmm-client/pmm.yml -web.ssl-cert-file=/usr/local/percona/pmm-client/server.crt -web.ssl-key-file=/usr/local/percona/pmm-client/server.key  
root 11459 0.0 0.0 14224 984 pts/0 S+ 08:05 0:00 grep --color=auto percona

You can see here how much memory different processess consume. Note while there is large virtual memory amount consumed for example by “node\_exporter” it should not be the problem as resident amount of memory is very small.
