You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* use new version which uses bytes consumed by process
see Dieterbe/profiletrigger@e8a1450
* set default threshold of 25GB which should work great for 32GB systems
Copy file name to clipboardExpand all lines: docs/operations.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,10 @@ Metrictank crashed. What to do?
41
41
1) Check `dmesg` to see if it was killed by the kernel, maybe it was consuming too much RAM
42
42
If it was, check the grafana dashboard which may explain why. (sudden increase in ingested data? increase in requests or the amount of data requested? slow requests?)
43
43
Tips:
44
-
* The [profiletrigger](https://github.com/raintank/metrictank/blob/master/docs/config.md#profiling-instrumentation-and-logging) functionality can automatically trigger a memory profile and save it to disk. This can be very helpful if suddently memory usage spikes up and then metrictank gets killed in seconds or minutes. It helps diagnose problems in the code base that may lead to memory savings. The profiletrigger looks at the `bytes_alloc.not_freed` metric which is just memory allocated within the runtime. Amount of memory consumed by the process may be twice this. So as a rule of thumb, if you have a system running just metrictank, set it to about 40% of available memory.
44
+
* The [profiletrigger](https://github.com/raintank/metrictank/blob/master/docs/config.md#profiling-instrumentation-and-logging) functionality can automatically trigger
45
+
a memory profile and save it to disk. This can be very helpful if suddently memory usage spikes up and then metrictank gets killed in seconds or minutes.
46
+
It helps diagnose problems in the codebase that may lead to memory savings. The profiletrigger looks at the `bytes_sys` metric which is
47
+
the amount of memory consumed by the process.
45
48
* Use [rollups](https://github.com/raintank/metrictank/blob/master/docs/consolidation.md#rollups) to be able to answer queries for long timeframes with less data
46
49
2) Check the metrictank log.
47
50
If it exited due to a panic, you should probably open a [ticket](https://github.com/raintank/metrictank/issues) with the output of `metrictank --version`, the panic, and perhaps preceeding log data.
0 commit comments