Page History
By default WhereScape 3D will use half of the available memory at startup. In some situations it can be beneficial to specify the heap size on startup of WhereScape 3D; for example when there is a requirement to view particularly large models. The command used to specify the heap size is as follows:
| Code Block |
|---|
Java path (The path to the java.exe packaged with WhereScape 3D, attempting to use other versions of Java is unsupported.) -Xmsn (Sets the initial size (in bytes) of the heap. This value must be a multiple of 1024 and greater than 1 MB. Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, g or G to indicate gigabytes. The default value is chosen at runtime based on system configuration.) -Xmxn (Specifies the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes, g or G to indicate gigabytes. The default value is chosen at runtime based on system configuration.) jar file path (The path to the WhereScape-3D-HEAD-bundle.jar packaged with WhereScape 3D.) |
...
For example the following command will attempt to start 3D with a heap size of 1500MB1024MB.
| Code Block |
|---|
"C:\Program Files\WhereScape\WhereScape 3D\jre\bin\java.exe" -Xms1024m -Xmx1500mXmx1024m -jar "C:\Program Files\WhereScape\WhereScape 3D\WhereScape-3D-HEAD-bundle.jar" |
This command assumes that 3D has been installed in the default install folder of C:\Program Files\WhereScape\WhereScape 3D. If WhereScape 3D has been installed in an alternate location, please update the command accordingly.
| Info |
|---|
For convenience this command could be linked to a desktop shortcut. |