Enabling Processing of Large Files with Shared-Nothing Persistence

For shared-nothing persistence, ActivesSpaces is enabled to work with files larger than 2 GB.

On some UNIX systems, the administrator might have set small ulimit values for resources that affect execution of ActiveSpaces processes, such as data segment size, stack size, and virtual memory. It is advisable to set these values to unlimited and let processes receive maximum available memory from the available resources.

You can use the following commands to change resource values to unlimited:

ulimit -d unlimited
ulimit -s unlimited
ulimit -v unlimited

Procedure

  1. At the shell command prompt, enter the following:
    ulimit -a
  2. If the ulimit command does not return unlimited, enter the following to set the user resources (including file length) to unlimited:
    ulimit -f unlimited
  3. Make sure that the file system where ActiveSpaces will write shared-nothing persistence files is enabled for large files. To set the directory to which shared-nothing persistence files are written, do one of the following:
    1. The default directory is the home directory of the user running the ActiveSpaces application. If that is where you want the shared nothing files written, you do not need to change the directory.
    2. Set the AS_DATA_STORE environment variable to point to the directory where the shared-nothing persistence files are to be stored.
    3. When running as-agent, use with the -data_store parameter to specify the data store directory:
      as-agent -data_store <path>

      where path specifies the directory path for the data store directory.

      Consult with your system administrator on how to verify and enable the file system for large files.