/var/log/vmware/vpxd/vpxd-<number>.log contains entries similar to:####-##-## error vpxd[90632] [Originator@6876 sub=MoPerfManager opID=########] The query size of ### metrics exceeded the vpxd.stats.maxQueryMetrics limit of 256 metrics. DroppingAny vCenter version from 5.5 Update 2d on, has a pre-configured limit to the number of entities that are included in a single database query.
This limit is meant to protect the vCenter Server database from receiving large queries, which might adversely impact vCenter performance.
If the number entities in the query exceeds the default limit, this issue occurs.
To prevent this issue from occurring, the limitation for performance charts can be increased. This is a 2-Step process:
config.vpxd.stats.maxQueryMetrics vCenter advanced option.config.vpxd.stats.maxQueryMetrics".config.vpxd.stats.maxQueryMetrics in the Name field below the table and use the Value field to provide the desired query size limit. Then click Add to add the advanced setting, before selecting Save.Note: The default value for config.vpxd.stats.maxQueryMetrics is 256. Review the messages in the vpxd logs to evaluate the required value.
Alternatively using -1 as value will disable the limit.
web.xml configuration file of the web server used to render the charts.root./usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF:# cd /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INFweb.xml:# cp /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml_301449<context-param>
<description>Specify the maximum query size (number of metrics)for a single report. Non-positive values are ignored.</description>
<param-name>maxQuerySize</param-name>
<param-value>###</param-value>
</context-param><value-param>. If it exceeds the value used in part 1, no further changes are needed.:wq!)# service-control --restart vmware-perfchartsRefer to Stopping, Starting or Restarting VMware vCenter Server Appliance services for more information.Attention: Increasing the value of config.vpxd.stats.maxQueryMetrics beyond the default value of 256, or disabling the limit completely, will result in larger queries against the vCenter Database. This will put increased strain of the involved components and might result in:
As a rule of thumb, use a value slightly above the query sizes reported in the vpxd logs.
For example, if the message in the vpxd log says this:
The query size of 277 metrics exceeded the vpxd.stats.maxQueryMetrics limit of 256 metrics. Dropping.Select a value only slightly larger than 277, e.g. 280.
Additional Notes:
maxQueryMetrics limit is exceeded when the metric query count exceeds the default value (256).