# Grafana Graph works only sporadic

**URL:** <https://forums.percona.com/t/grafana-graph-works-only-sporadic/5171>\
**Category:** PMM 1.x\
**Created:** [October 26, 2016, 5:40am UTC](https://forums.percona.com/t/grafana-graph-works-only-sporadic/5171 "2016-10-26T05:40:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![geoiii](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/geoiii/32/1147_2.png) [@geoiii](https://forums.percona.com/u/geoiii)\
**Post date:** [October 26, 2016, 3:57pm UTC](https://forums.percona.com/t/grafana-graph-works-only-sporadic/5171/5 "2016-10-26T15:57:26Z")

</div>

I have been having this (or similar issue) and it seems to be that it runs out of memory to ingest the metrics coming in to prometheus.  
And usually when it dies it really dies and I have to restart the docker.

I have been bumping up the memory with this command:

METRICS\_MEMORY=2097152

In the docker run command line. It has some fairly small default - that was working fine until I added one too many servers or has a peak in events.

You might take a look at the Prometheus graph in grafana.

My running server looks like this when I run `docker stats pmm-server`

```auto
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O

pmm-server 71.24% 6.77 GB / 7.934 GB 85.33% 6.932 GB / 379.2 MB 3.766 GB / 18.15 GB

```

---

_[View the full topic](https://forums.percona.com/t/grafana-graph-works-only-sporadic/5171)._
