Previous Topic: Configure the Automatic Recovery of the Data Aggregator Process (Recommended)Next Topic: Modify the External ActiveMQ Memory Limit After Installation (Optional)


Modify Maximum Memory Usage for Data Aggregator and Data Collector Components After Installation (Optional)

The default maximum memory usage for the Data Aggregator and the Data Collector components is not sufficient. To run effectively in a large-scale deployment, modify the maximum memory usage for Data Aggregator and for Data Collector. This modification can be done during or after the installation process. By default, the memory usage for Data Aggregator and Data Collector is 2 GB.

Important! The memory modifications in this procedure assume that Data Aggregator and Data Collector are installed on separate computers. This procedure also assumes that those computers are dedicated only to the installation of these components.

Follow these steps:

  1. Open a console and type the following command:
    more /proc/meminfo
    

    The total memory usage is displayed.

  2. Make a note of this total memory.
  3. Modify the maximum memory for Data Aggregator by performing the following steps:
    1. Access the Data Aggregator installation directory/apache-karaf-2.3.0/bin/setenv file.
    2. Modify the IM_MAX_MEM=number unit line for large-scale deployments.
      number unit

      Indicates the maximum amount of memory. number is a whole, positive number, and unit is “G” or “M”. Subtract 2 GB from the total memory you noted previously and enter it here. 2 GB are reserved for other operating system operations.

      For example: 33544320 KB - 2G = 30 GB

      IM_MAX_MEM=30G

      For example:

      IM_MAX_MEM=4G

    3. Save the file.
    4. Restart Data Aggregator using the following command:
      service dadaemon start
      

      Data Aggregator starts and synchronizes with CA Performance Center automatically.

    5. In order for the memory setting change to persist during a Data Aggregator upgrade, modify the /etc/DA.cfg file, replacing the updated value for the property "da.memory".

      For example:

      da.memory=4G
      
  4. Modify the maximum memory for all Data Collector hosts by performing the following steps:
    1. Access the Data Collector installation directory/apache-karaf-2.3.0/bin/setenv file.
    2. Modify the IM_MAX_MEM=number unit line for large-scale deployments.
      number unit

      Indicates the maximum amount of memory. number is a whole, positive number, and unit is “G” or “M”. Subtract 2 GB from the total memory you noted previously and enter it here. 2 GB are reserved for other operating system operations.

      For example: 33544320 KB - 2G = 30 GB

      IM_MAX_MEM=30G

      For example:

      IM_MAX_MEM=4G

    3. Save the file.
    4. Restart Data Collector hosts using the following command:
      service dcmd start
      
    5. In order for the memory setting change to persist during a Data Collector upgrade, modify the /opt/DCM.cfg, replacing the updated value for the property "IM_MAX_MEM".

      For example:

      IM_MAX_MEM=4G
      

    The maximum amount of memory is configured for large-scale deployments.

Example: Configure the Maximum Memory Usage for Data Aggregator After You Install Data Aggregator

The following example configures the maximum memory usage for Data Aggregator where the total memory is 3354432 KB:

  1. Open a console and type the following command:
    more /proc/meminfo
    

    The following result displays:

    MemTotal: 33554432KB
    
  2. Calculate the maximum memory that is required for large-scale deployments:

    Equation: total memory - 2G = maximum memory for large-scale deployments

    Solution: 3354432 KB - 2G = 30G

  3. Access the Data Aggregator installation directory/apache-karaf-2.3.0/bin/setenv file.
  4. Modify the IM_MAX_MEM=number unit line for large-scale deployments:

    IM_MAX_MEM=30G

  5. Save the file.
  6. Restart Data Aggregator.

    The maximum amount of memory is modified for large-scale deployments.

More information:

How to Complete the Installation