Out of memory error: java heap space
Problem
One of the following occurs:
- When trying to open an image, the error message occurs: Out of memory error : java heap space.
- When trying to optimize imagery, only a few images are optimized instead of all the images and then the Trimble MX software closes without warning.
Solution
Increase the maximum heap size for the Java application (remember that Trimble MX is running on Java). For instance, make sure it's set to at least 4 GB:
- Open /program/bin/Trimble.ini. The maximum RAM is the value after "-Xmx". For example, "-Xmx4096m" means it can use up to 4096 MB of RAM; "-Xmx4g" means it can use up to 4 GB of RAM (equivalent to 4096 MB). Make sure this value is at least 4 GB. Trimble recommends setting this to your computer RAM minus 2 GB (for example, for a computer with 16 GB of RAM, set this value to -"Xmx14g").
-
If this does not resolve the problem, it is possible that this value is overridden in your environment variables. Open the Environment Variables and search for a system variable named "_JAVA_OPTIONS". Either delete this variable, or set its value to at least 4 GB, ideally to the same value that is defined in Trimble.ini.
Problem Details
See also:
-
Memory in Orbit Desktop Startup Configurations.
-
-Xmx in Command-line Options.
Related Products
Trimble MX Asset Modeler
Trimble MX Content Manager
Trimble MX Publisher
Support Reference
00449500
Last modified
13 May 2021