Memory configuration in CAM

(Login)

CAM has a start-up option in which the amount of memory it will use is defined.

  • The default amount depends on the startup script you are using (CAM.bat, CAM_osx.sh etc.)
  •  If your system has close to, or less memory than required by the particular startup script, CAM will not start. If that occurs you can edit the startup script file in a text editor to reduce the memory requirement. This is explained below.
  • The maximum amount of memory which can be configured depends on the version of Java (32 or 64 bit) and the operating system (32 or 64 bit). A 32-bit OS or 32-bit Java limits the maximum memory to about 1.6 gigabytes, or less if you have less physical memory installed. Using 64-bit Java and a 64-bit OS, it should be possible to allocate much more memory (we have tested with up to 6 gigabytes on an 8gb machine)

To learn more about CAM on a 64 vs. 32 bit Windows platform see CAM on 64-bit Microsoft Windows

 

To change the maximum memory limit on a 32-bit system:

Open the startup script (CAM.bat, CAM_java32.bat, CAM_osx.sh etc.) in a text editor.

The important line is right at the bottom of the file. It should look something like this:

@javaw -Xmx1024m -Dswing.aatext=true -classpath "%CD%/dist/p3-bootstrapper.jar" p3.P3

The parameters are:

  • javaw - this points to the java executable.This may vary depending on your startup script.
  • -Xmx1024m - this is the maximum memory usage. In this case, 1024m means about 1gb. To reduce the maximum memory usage, replace this parameter with -Xmx512m (for a 512mb limit), or as desired.
  • -Dswing.aatext=true - sets CAM to antialiased graphics (you may get marginally better performance by changing this to -Dswing.aatext=false)
  • -classpath "%CD%/dist/p3-bootstrapper.jar" p3.P3 - starts CAM. Do not change this!



To change the maximum memory limit on a 64-bit system:

  Open the 64-bit startup script (eg. CAM_java64.bat) in a text editor.

The important line is right at the bottom of the file. It should look something like this:

@javaw -D64 -Xmx6g -Dswing.aatext=true -classpath "%CD%/dist/p3-bootstrapper.jar" p3.P3

The parameters are similar to those above. Note in particular:

  • -D64 - this tells java to run in 64 bit mode.
  •  -Xmx6g- in this case, a maximum memory limit of about 6 gigabytes. To reduce this maximum you might replace the parameter with, eg.  -Xmx2g (or, equivalently,  -Xmx2024m)