Salesforce

How to Modify the SMC Server Memory Allocation and Resources

« Go Back
Information
000005812
How to Modify the SMC Server Memory Allocation and Resources
The article provides guidance with SMC server memory and resource allocation.

The SMC server memory allocation is calculated automatically during the SMC installation based on the physical memory available on the host. After the installation, the allocation can be changer per SMC server by using the AutoAssignHeap script, or by manually defining the allocation.

Note SMC memory requirements have increased in SMC 6.8. For more details, see the SMC Memory Management article.
 

    High-end server memory allocation

    On high-end servers with  more than 16 GB of memory, the maximum memory allocation for each server can be increased manually. If this isn't done, the allocated memory may become a limiting factor when high-performance SMC operation is required.
     
    Note The Sum of memory allocation for all SMC processes must remain below the total available memory while preserving memory for the operating system.

    SMC 6.8.3 and higher version Management servers

    1. Stop the Management Server
    2. Open the  <installation_directory>/data/smc_starter.xml file for editing
    3. Change the value for the MAX_MEMORY_IN_MB parameter value
    4. Save the change and start the server
    Note <installation_directory> may be c:\ProgramData on Windows when SMC was installed to the c:\Program Files path.

    SMC 6.8.2 and lower version Management Servers
    1. Stop the Management Server
    2. Open <installation_directory>/data/smc_starter.xml
    3. Change the value for the parameter MANAGEMENT_MAX_MEMORY_IN_MB (default: MANAGEMENT_MAX_MEMORY_IN_MB="4000")
    Note <installation_directory> may be c:\ProgramData on Windows when SMC was installed to the c:\Program Files path.

    SMC 6.8.3 and higher version Log Servers and Web Portal Servers
    1. Stop the Log Server or the Web Portal Server
    2. Open <installation_directory>/data/log_starter.xml (Log Server) or <installation_directory>/data/web_starter.xml (Web Portal Server)
    3. Change the value for the parameter MAX_MEMORY_IN_MB 
    4. Save your change and start server
    Note <installation_directory> may be c:\ProgramData on Windows when SMC was installed to the c:\Program Files path.

    SMC 6.8.2 and lower version Log Servers and Web Portal Servers
    1. Stop the Log Server or the Web Portal Server
    2. Open <installation_directory/bin/StartLogSrv.sh (Linux) |.bat (Windows) with a text editor
    3. Look for the line starting with MAX_HEAP_SIZE and edit this value to modify the maximum memory allocation. For example to modify the heap size to 6 Gb:
    MAX_HEAP_SIZE=6144
    1. Save the changes and start the server
    Note <installation_directory> may be c:\ProgramData on Windows when SMC was installed to the c:\Program Files path.

     

    Memory allocation using the AutoAssignHeap script

    Note The maximum memory allocation for SMC servers with the AutoAssignHeap script is 8 GB, even when SMC is installed on a high-end server with large amount of RAM.

    To recalculate memory allocation for SMC processes after adding memory to server, follow the steps below:

    1. Stop all SMC servers
    2. Open a command line session to the SMC host
    3. Perform the following:
      • On Microsoft Windows:
        1. Navigate to the <installation_directory>/bin/install folder
        2. Type AutoAssignHeap.vbs and press Enter
      • On Linux:
        1. Navigate to the <installation_directory>/bin/install folder
        2. Type ./AutoAssignHeap.sh and press Enter
    1. Start all SMC servers

    Note Prior to SMC version 6.4.1, the memory allocation will be reassigned during an SMC software upgrade and you must repeat any customization done for Log Server of Web Portal Server after the upgrade. Starting from SMC version 6.4.1, the custom MAX_HEAP_SIZE memory allocations are preserved on upgrade. The smc_starter.xml file used by Management Server is not touched on upgrade in any version.



    Keywords: Security Management Center; SMC server; configuration file; command line; memory allocation; HEAP size; amount of RAM; out of memory; low memory



    11/07/2019 lnurmi - Edited the problem 2 note per SE feedback, and edited the solution 2 note as well.
    02/18/2022 thyvarinen - Updated the title and added keywords.
    09/01/2022 thyvarinen - Changed the article type to FAQ, updated the title and reworked the article content.
    10/28/2024 thyvarinen - Added question and note (and link) about Web Access memory requirements.
    Additional Information
    Not Checked
    Modifying-the-memory-allocation-and-resources-post-installation-for-SMC-servers
    System Information

    Powered by