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:
- Edit the configuration file eclipse.ini located in
your Eclipse installation directory on which the 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.
- 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.
- Save the eclipse.ini file, relaunch
the test workbench and
try to upload your application again.