What to do if there is a heap space error using the Command Line (STCMD) client
When using the 2008 R2 command line interface (STCMD), the error appears "heap space" when trying to do any command.
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).
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.
Support if the problem persists.