Increasing memory allocation to upload applications

Uploading and instrumenting an application from a device or simulator to the test workbench requires memory. If you are testing complex applications, in some cases, the instrumentation might fail and you might receive an out-of-memory error. The solution is to increase the available memory that is allocated to Eclipse Java processes for the computer on which the test workbench is installed.

Procedure

To increase the memory allocation:

  1. Edit the configuration file eclipse.ini located in your Eclipse installation directory on which the Rational® Test Workbench Mobile Test Edition is installed. Find the line where the available amount of memory is specified. It is defined with the -Xmxnnnnm parameter, where -Xmx is the command name, and nnnn is the amount of memory, in megabytes.
  2. Replace the default value by another one, note that you can change a value that is specified in megabytes by a value in gigabytes: -Xmx<memory size in Mo>m or -Xmx<memory size in Go>g. On a Windows 32-bit system, the maximum value is 4 gigabytes. Example:-Xmx4000m or -Xmx4g.
  3. Save the eclipse.ini file, relaunch the test workbench and try to upload your application again.

Feedback