summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chernavin <achernavin@netgate.com>2022-06-15 14:42:17 +0000
committerAlexander Chernavin <achernavin@netgate.com>2022-06-15 14:42:17 +0000
commitd6c3b1f1fc2cfa50a67222e272a7e48744708d9f (patch)
tree84b0556eafbdf18975ee216fc38f6e316a274e15
parent15b13813bc251aca32b091bf753e41331e472595 (diff)
stats: fix prometheus exporter crash on large number of FIB entries
Type: fix Currently, prometheus exporter may crash because of memory exhaustion when dumps metrics if the FIB contains large number of routes. With this fix, increase memory size for prometheus exporter to be able to handle large number of FIB entries. Signed-off-by: Alexander Chernavin <achernavin@netgate.com> Change-Id: Ia2b9a665368883c87448deee9bcf8d2ac1168357
-rw-r--r--src/vpp/app/vpp_prometheus_export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/app/vpp_prometheus_export.c b/src/vpp/app/vpp_prometheus_export.c
index a08adeeb9bc..69baeb02fc7 100644
--- a/src/vpp/app/vpp_prometheus_export.c
+++ b/src/vpp/app/vpp_prometheus_export.c
@@ -244,8 +244,8 @@ main (int argc, char **argv)
u8 *stat_segment_name, *pattern = 0, **patterns = 0;
int rv;
- /* Allocating 32MB heap */
- clib_mem_init (0, 32 << 20);
+ /* Allocating 256MB heap */
+ clib_mem_init (0, 256 << 20);
unformat_init_command_line (a, argv);