---
# System prepended metadata

title: Use jaeger and grafana to track down issue

---

# Use jaeger and grafana to track down issue

##    Problem Description:
We are having huge memory consumption in our vanguard side. A 32GB instance collups after syncing 50k blocks. So we took help of these two tools to track down bug.

## How to check memory usage:
1. Install jaeger
2. Install Prometheus
3. Install grafana

Now run grafana and add jaeger and prometheus as datasource in grafana.

After that, check when we get a spike. For this we need to select prometheus from grafana. Then select query `process_resident_memory_bytes`. This shows memory usage. If we find a memory spike then track the time.

Now we need to find the function for which we are getting memory overflow. To get this, select jaeger from grafana. Do a query for all data and track the time. We can see function name that executed on that time. For us we found that `ReceiveBlockBatch` function executed and consumed memory at that time..