Capacity Planning Report Performance
Posted: Tue Jan 07, 2020 10:13 am
Hi,
I've been tasked to see if there is any way to improve the performance of a capacity report we are running.
Does the capacity planning report gets it's data straight from the database or does it need to look through the /usr/local/nagios/var/archives/ folder at all?
My colleague ran a capacity planning report against a host group, which has 31 servers in it for the next month. From start to finish it took around 30 minutes and resulted in the actual NagiosXI server going into a critical state as all RAM was consumed with only 337 MB left. The generated PDF was 368 pages long.
Is there anything we can do to speed the capacity planning report up?
I have tried testing a smaller hostgroup and can see that the wkhtmltopdf process consumes a large amount of memory (GBs) to produce the PDF.
PHP settings are currently:
max_input_vars = 10000
memory_limit = 512M
max_execution_time = 180
max_input_time = 180
Our DB is offloaded.
Regards,
Andy
I've been tasked to see if there is any way to improve the performance of a capacity report we are running.
Does the capacity planning report gets it's data straight from the database or does it need to look through the /usr/local/nagios/var/archives/ folder at all?
My colleague ran a capacity planning report against a host group, which has 31 servers in it for the next month. From start to finish it took around 30 minutes and resulted in the actual NagiosXI server going into a critical state as all RAM was consumed with only 337 MB left. The generated PDF was 368 pages long.
Is there anything we can do to speed the capacity planning report up?
I have tried testing a smaller hostgroup and can see that the wkhtmltopdf process consumes a large amount of memory (GBs) to produce the PDF.
PHP settings are currently:
max_input_vars = 10000
memory_limit = 512M
max_execution_time = 180
max_input_time = 180
Our DB is offloaded.
Regards,
Andy