Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

View Connection Server reports the error: [ws_TomcatService] STDOUT: java.lang.OutOfMemoryError: Java heap space (2009877)

Symptoms

  • Unable to connect to View desktops
  • Unable to provision desktops
  • Desktop status is incorrect in the View Manager
  • Desktop status shows (Missing) in View Manger, though the desktop is running in vCenter Server
  • In the View Connection server debug logs, you see the error:

    [ws_TomcatService] STDOUT: java.lang.OutOfMemoryError: Java heap space

    For more information on the View Connection server debug log, see Location of VMware View log files (1027744).

Cause

This issue occurs if the Java heap size in the View Connection server is set to a value insufficient to administer a production environment.

Insufficient Java heap memory can lead to a number of issues in the View environment.

Resolution

Note: Before making any changes, back up the ADAM database on the View Connection Server. For more information, see Performing an end-to-end backup and restore for View Manager (1008046).

To resolve this issue, increase the memory of the View Connection server.

Windows Server 2003 32-bit allows you to adjust the Java heap memory by editing the registry after upgrading the memory.

To resolve this issue in Windows Server 2003 32-bit:

Note: This procedure modifies the Windows registry. Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article 136393.

  1. Power down the View Connection server.
  2. Increase the memory of the server to the required 6 GB.
  3. Power on the View Connection server.
  4. Ensure that PAE (Physical Addressing Extensions) is enabled and Windows is able to see the full 6 GB of memory.

    For more information on enabling PAE, see the Microsoft Knowledge Base article, 283037.

  5. In the Registry Editor, navigate to:

    HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VDM\plugins\wsnm\TomcatService\Params

  6. Change this registry setting from -Xmx512m to -Xmx1024m.
  7. Reboot the View Connection server.

Windows Server 2008 R2 requires you to reinstall the View Connection server software to adjust the Java heap.

To resolve this issue in Windows Server 2008 R2:

Note: You can also perform these steps on Windows Server 2003.
  1. Power down the View Connection server.
  2. Increase the memory in the View Connection server to the required 10 GB.
  3. Power on the View Connection server.
  4. Using Add/Remove programs, remove the VMware View Connection Server instance from the machine.
  5. Reinstall the VMware View Connection server using the View installer.
  6. When prompted, allow the View install to use the existing ADAM instance.

Additional Information

For translated versions of this article, see:

Note: The links in this article were correct as of May 9, 2013. If you find a link is broken, provide feedback and a VMware employee will update the link.

See Also

Update History

08/16/2012 - Updated Step 6 to say: "Change this registry setting from -Xmx512m to -Xmx1024m" 10/04/2012 - Added to backup ADAM before making any changes and linked to backup KB 05/09/2013 - Added registry modification note.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 5 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 5 Ratings
Actions
KB: