What to do if there is a heap space error using the Command Line (STCMD) client

0 Likes

Problem:

What to do if there is a heap space error using the Command Line (STCMD) client

Resolution:

  • Product Name: StarTeam
  • Product Version: 2008 R2
  • Product Component:CPC
  • Platform/OS Version: All Supported OS


Description:


When using the 2008 R2 command line interface (STCMD), the error appears "heap space" when trying to do any command.


Answer/Solution:

The problem occurs because by default, STCMD does not allocate enough system memory. Currently, the STCMD client does not provide a way to increase the heap space, so you must launch the STCMD main class manually using the JVM installed on your machine. The JVM must be 1.6.0_X (_02 is the formally supported version).

stcmd.exe

is synonymous with

java -Xmx512M -cp "C:\Program Files\Borland\StarTeam SDK 10.4\Lib\starteam104.jar" com.starbase.starteam.commandline.StarTeamCmd

Note: It might be necessary to increase the heap size to a larger value. 512M is a recommended value only.

Note: The classpath to the StarTeam 2008 R2 main jar file might differ on various machines. The above is only the default so it might be necessary to update it to reflect alternate installation directories or Unix pathways.

Contact Borland Support if the problem persists.


Old KB# 29210
Comment List
Related
Recommended