> Source: [sk175265](https://support.checkpoint.com/results/sk/sk175265)

# sk175265 - Management API heap size reduced to 256 megabytes 

| Property | Value |
|----------|-------|
| Solution ID | sk175265 |
| Date Created | 2021-09-01 |
| Last Modified | 2021-09-30 |
| Technical Level | General |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R81.20, R82, R82.20 |
| OS | Gaia |

## Symptoms

- * On Mutli-Domain Management Server, the Management API heap size is reduced to 256 megabytes after installing these Jumbo Hotfixes:
  * R80.20 Jumbo Hotfix Accumulator Take 202
  * R80.30 Jumbo Hotfix Accumulator Take 235
  * R80.40 Jumbo Hotfix Accumulator Take 114
* The Management API server crashes under heavy load.

## Solution

This problem was fixed. The fix is included starting from:

* [](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=skXXX)[Jumbo Hotfix Accumulator for R80.40](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk165456) starting from Take 125 (see PRJ-30574)

<br />

**To resolve the problem manually in other affected versions, follow these steps:**

1. Set the environment variable *NGM_WEB_API_MAX_MEMORY* which defines the Management API Server maximum heap size (XMX) to the specified value (in megabytes).  
   Run this command in the Expert mode:  
   `export NGM_WEB_API_MAX_MEMORY=4096`  

2. Set the environment variable *NGM_WEB_API_JRE_64* to "1".  
   This lets you run the Security Management API Server on a 64-bit Java device, which allows you to set a maximum heap size greater than 4Gb with *`NGM_WEB_API_MAX_MEMORY`* .  
   Run this command in the Expert mode:  
   `export NGM_WEB_API_JRE_64=1`  

3. To maintain the environment variable definitions between reboots, add the line below to the `/opt/CPshared/5.0/tmp/.CPprofile.sh` file for each variable:  

   `_cpprof_add <Variable-Name> <Variable-Value> 0 0`  

4. To apply new configuration, restart the API server.  
   Run this command in the Expert mode:  

   `api restart`  

5. To verify the changes were made, run this command in the Expert mode:  

   `grep "_cpprof_add NGM_WEB_API_" /opt/CPshared/5.0/tmp/.CPprofile.sh`

<br />

**Example of adding persistent variables definitions (JVM 64-bit is enabled and Xmx is set to 4Gb) and applying the changes:**

`cp -v /opt/CPshared/5.0/tmp/.CPprofile.sh{,_BKP}`

`echo "_cpprof_add NGM_WEB_API_MAX_MEMORY 4096 0 0" >> /opt/CPshared/5.0/tmp/.CPprofile.sh`

`echo "_cpprof_add NGM_WEB_API_JRE_64 1 0 0" >> /opt/CPshared/5.0/tmp/.CPprofile.sh`

`api restart`

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
