vCenter Server 6.0 Windows performance charts fail to load with the error: Performance Charts service returned an invalid response
search cancel

vCenter Server 6.0 Windows performance charts fail to load with the error: Performance Charts service returned an invalid response

book

Article ID: 328150

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • No data is shown when viewing the Overview Performance Charts for any Inventory object.
  • You see the error:

    Performance Charts service returned an invalid response
     
  • You can view the performance charts with [email protected].
  • In the C:\ProgramData\VMware\vCenterServer\logs\vsphere-client\vsphere-client-gc.log file, you see entries similar to:

    [DD/MMM/YYYY:TT] [ERROR] data-service-pool-22227 70002305 100017 200005 com.vmware.vise.util.http.ConnectionManager Error reading from the stream: Server returned HTTP response code: 400 for URL: https://MachineName.domain.com:443/statsreport/vicr.do?moref=VirtualMachine:vm-330&locale=de_DE&sessionId="aa79238a5068bb9700ca602e8591d128153d671d"&serviceUrl=https://MachineName.domain.com:443/sdk&gmtTimezoneOffset=120
     
  • In the C:\ProgramData\VMware\vCenterServer\logs\perfcharts\localhost_access_log. YYYY-MM-DD file, you see the service returning a 400 response similar to:

    127.0.0.1 - - [DD/MMM/YYYY:TT] "GET /statsreport/vicr.do?moref=VirtualMachine:vm-330&locale=de_DE&sessionId="aa79238a5068bb9700ca602d8591d128153d671d"&serviceUrl=https://MachineName.domain.com:443/sdk&gmtTimezoneOffset=120 HTTP/1.1" 400 -

    Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.


Resolution

This issue is resolved in VMware vCenter Server 6.0 Update 2, available at VMware Downloads

To work around this issue, increase or add the max HTTP header size in the server.xml file of the performance charts service.

  1. Create a copy of the C:\ProgramData\VMware\vCenterServer\data\perfcharts\tc-instance\conf\server.xml file on vCenter Server.

    Note: Path in VCSA, /usr/lib/vmware-perfcharts/tc-instance/conf/server.xml
     
  2. Open the server.xml file using a plain text editor.
  3. In the and , sections search for the port="${bio.http.port}" entry.

    Note: Add the entry if it is not present.
     
  4. Modify both entries to maxHttpHeaderSize="65536".

    For example:

    <Connector address="127.0.0.1" acceptCount="300" maxThreads="300" connectionTimeout="20000" executor="tomcatThreadPool" maxKeepAliveRequests="15" port="${bio.http.port}" maxHttpHeaderSize="65536" protocol="org.apache.coyote.http11.Http11Protocol"/> <Connector address="::1" acceptCount="300" maxThreads="300" connectionTimeout="20000" executor="tomcatThreadPool" maxKeepAliveRequests="15" port="${bio.http.port}" maxHttpHeaderSize="65536" protocol="org.apache.coyote.http11.Http11Protocol"/>

    Note: The entry is case sensitive.
     
  5. Restart the performance charts service with these commands:
     
    • service-control --stop vmware-perfcharts
    • service-control --start vmware-perfcharts

      Note:Path for service-control C:\Program Files\VMware\vCenter Server\bin
       
  6. Log in to the vSphere Web Client and retry the performance charts.


Additional Information

vCenter Server Appliance 6.0 performance charts fail to load with the error: Performance Charts service returned an invalid response
vCenter Server 6.0 Windows 性能图表加载失败,并出现以下错误:性能图表服务返回无效的响应 (Performance Charts service returned an invalid response)
vCenter Server 6.0 Windows のパフォーマンス チャートの読み込みに失敗し、次のエラーが表示される: パフォーマンス チャート サービスから無効な応答が返されました