Error "​Java::JavaLang::OutOfMemoryError: Java heap space" And Application Server is Down

Published: 07 Apr 2015
Last Modified Date: 12 Apr 2021


The Tableau Server admin view indicates that the Application Server process is down. Additionally, the following error can be found in the wgserver log: 

Java::JavaLang::OutOfMemoryError: Java heap space.


  • Tableau Server


For Tableau Server on Linux, Tableau Server 2018.2 and later on Windows:

1. Default settings for vizportal.vmopts may differ from version to version. The highlighted portion in the given example is the parameter that needs to be increased to add additional memory to the heap space. To see the current value, use the command below to see the current parameters for vizportal.vmopts and modify the -Xmx####m parameter as needed where ### is the number of Megabytes allocated.
tsm configuration get -k vizportal.vmopts

2. Increase the application server Java Virtual machine heap space. The default heap space setting is 1024 MB, doubling it to 2048 MB should suffice.
tsm configuration set -k vizportal.vmopts -v "-XX:+UseConcMarkSweepGC -Xmx2048m -Xms256m -XX:+CrashOnOutOfMemoryError -XX:-CreateMinidumpOnCrash"
tsm pending-changes apply 



Application Server java virtual machine heap space was exhausted.

Additional Information

Below are the commands for TSM versions of Tableau Server 
You should change the heap size of the process that is receiving the error for example (backgrounder, vizqlserver, etc..)

tsm configuration set -k backgrounder.vmopts -v "-Xmx1024m -Xms256m"
tsm configuration set -k vizqlserver.vmopts -v "-Xmx1024m -Xms256m"
tsm configuration set -k vizportal.vmopts -v "-Xmx1024m -Xms256m" 
tsm configuration set -k dataserver.vmopts -v "-Xmx1024m -Xms256m"
tsm pending-changes apply

You can then run the get command to confirm the change:
tsm configuration get -k <process>.vmopts 
Did this article resolve the issue?