KNOWLEDGE BASE

Tableau Server Unresponsive for Several Minutes with HTTP 502 Errors


Published: 30 Aug 2014
Last Modified Date: 20 Jun 2016

Issue

Tableau Server is unresponsive for several minutes each weekday and returns 502 error 30 minutes after request.
  • The wgserver\production.<PORT>_<DATETIME>.log files contain "Java heap space" and "OutOfMemoryError" errors around the time of the problem.
  • HTTP logs show an HTTP 502 Proxy error.
When publishing a workbook to Tableau Server, the following error might occur: 
An error occurred when publishing the workbook.
An unknown error related to remote content was detected (500)

Environment

Tableau Server 8.1 - 9.2

Resolution

Use tabadmin to increase the wgserver Java Virtual Machine heap space. In the example below, heap space is represented by the Xmx VM option. To double the heap space, perform the following:
tabadmin set wgserver.vmopts "'-Xmx1024m -Xss2048k -XX:MaxPermSize=128m'"
tabadmin configure
tabadmin restart

Note: The single and double quotation marks must be entered as above, despite the fact that they are stored differently in the YML files.

Cause

Wgserver java virtual machine heap space was exhausted.

Additional Information

The default heap space setting is 512MB.  Increasing by 50% or 100% is a good starting point for incrementally increasing heap space until adequate space has been achieved.  
Did this article resolve the issue?