ERROR

Out of Memory

Last Published: April 25, 2020

Error Message

An Out of Memory error is reported in two locations—in the message console of ArcExplorer 3-Java Edition, ArcIMS Author, and ArcIMS Administrator, and in the Java Console of ArcIMS Manager and the Java Viewers.

Cause

An "Out of Memory" error is caused by not enough memory being allocated to the Java Virtual Machine (VM), and can be resolved by increasing the maximum memory allocated.

The –Xms (-ms) value specifies the minimum amount of memory that is used by the Java VM. The –Xmx (-mx) value specifies the maximum amount of memory that the Java VM can use. If the Java VM uses the maximum amount, it can signal an Out of Memory error.

Solution or Workaround



  1. When you change the -Xmx value, it must be less than the total available virtual memory.

    On NT, total virtual memory consists of the RAM memory plus the pagefile memory. You can find this value in the Windows NT Task Manager, on the Performance tab, under Commit Charge Total.

    On UNIX, total virtual memory is a combination of swap space (disk backed memory) and RAM.

    On Solaris, use the following command to monitor swap resources on your system: % /usr/sbin/swap -s
  2. To set the Java VM memory parameters for ArcExplorer 3-Java Edition, ArcIMS Author, and ArcIMS Administrator:

    On NT, right-click on the ArcExplorer 3-Java Edition shortcut and click Properties. Click the Shortcut tab. In the Target input box, you can increase the maximum memory value -Xmx256m.

    On UNIX, open the aejava, aimsauthor, aimsadmin, and aimsdesigner scripts to increase the maximum memory value -Xmx256m. (NOTE: You can temporarily change these parameters by specifying this parameter on the command line.)
  3. To set the Java VM memory parameters for ArcIMS Manager and Java Viewers:

    On NT, go to Start > Programs > Java Plug-in Control Panel. On the Basic
    Tab in the field named Java Run Time Parameters, type the following to set the memory parameters: –Xms24m -Xmx256m Click the Advanced tab, check Enable Just In Time Compiler, and click Apply.

    On UNIX, if you have downloaded and installed the Plug-in, then there is a Java Plug-in Control Panel and you need to follow the same steps as NT above. Type the following to set the memory parameters:
    -ms24m -mx256m

Article ID:000002093

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic