UsePerVhostStatistics memory footprint #971
Comments
You wrote "pagespeed UsePerVhostStatistics off" twice; which one is off and which one is actually on? I'd guess the first one is on, since that has higher memory usage, but I wanted to confirm.
Can you script a test workload?
For the statistics that's not something we have. You can adjust
Sorry, there's not. Adding this would be practical, changing the code from asking "are there per-vhost statistics" to "are there per-vhost statistics for this vhost" but it's not something we've looked into. |
It seems to be ~240KiB per VHost for statistic object itself. |
Most of that isn't actually the counters (~12KiB), but the histograms. |
Maybe we should add a way to turn off the histograms, and maybe also the counters. Turning off statistics entirely disables things like cache flushing, but that needs much less memory than full stats. |
Sorry, there was a typo in the first statement. 240KiB is absolutely reasonable usage. I don't think that the majority of people maintains thousands of hosts on the same server, so it should be OK. However, per-host switch is indeed very practical. I would recommend to close this ticket and file a separate enhancement request for per-host stats. |
Renamed the ticket; now this is an enhancement request for functionality like:
|
It looks like this option can increase memory footprint dramatically when number of hosts is relatively large.
pagespeed UsePerVhostStatistics
offon (right after nginx restart, idle instance):pagespeed UsePerVhostStatistics off (right after nginx restart, idle instance):
So the questions I have:
The text was updated successfully, but these errors were encountered: