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

# sk182063 - SmartConsole slowness when adding applications to rules

| Property | Value |
|----------|-------|
| Solution ID | sk182063 |
| Date Created | 2024-02-29 |
| Last Modified | 2024-07-01 |
| Technical Level | General |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R81.20, R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS), R81.20 |

## Symptoms

- * SmartConsole slowness when adding applications to rules in the Access Control policy.

* The `show objects` API command times out when there is a large number of applications in the database.

* If the Management Server had many application updates, the APPI domain is large in the postgres database.

## Cause

The Management Server stores all revisions of each Application Control and URL Filtering update. To prevent it from taking all of the disk space, APPI purge runs and cleans old unused revisions in the database.

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 70
* [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 152

If you choose not to upgrade, use APPI purge which removes old and unused APPI versions in the database.  
In a High Availability environment, the APPI purge runs on the active Management Server.  
In a Multi-Domain environment, the APPI purge only runs on the Multi-Domain Server with the active Global domain.  
In a multi-site environment, the APPI purge only runs on the Multi-Domain Server with the active Global domain and it relays to check the assigned APPI versions for each domain in order not to purge these versions.  

<br />

**To run the APPI purge automatically:**   

By default, the APPI purge runs every Sunday at 1am.  
To change the schedule, configure the days and hours on which it runs.  
For the day:

1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday  
The hour must be in the 24-hour time format:  

Example for configuring a purge that runs every Tuesday at 3pm:  

`$MDS_FWDIR/scripts/reload_env_vars.sh -e "APPI_PURGE_DAYS=3;APPI_PURGE_HOUR=15:00:00"`  
`$MDS_FWDIR/scripts/override_server_setting.sh -e APPI_PURGE_DAYS 3`  
`$MDS_FWDIR/scripts/override_server_setting.sh -e APPI_PURGE_HOUR 15:00:00`  

<br />

**How to run the APPI purge manually:**   

`$MDS_FWDIR/scripts/reload_env_vars.sh -e RUN_APPI_PURGE=1`  

<br />

**To disable the APPI purge:**   

`$MDS_FWDIR/scripts/reload_env_vars.sh -e DISABLE_APPI_PURGE=1`  
`$MDS_FWDIR/scripts/override_server_setting.sh -e DISABLE_APPI_PURGE 1`  

<br />

**To debug the APPI purge:**   

`$MDS_FWDIR/scripts/cpm_debug.sh -c AppiDomainPurgeManager,CpmRelaySvcImpl,RevisionsSvcImpl -s debug`  

You can then replicate the issue by running the APPI purge manually (see above):  
Open `$MDS_FWDIR/log/cpm.elg` and review the lines which include `AppiDomainPurgeManager`.  

<br />

<br />

<br />

**Related Solutions:**   

[sk181332 - Application Control Data Overload Check error in CPM Doctor, or Policy Installation is slow due to large number of Application Control (APPI) objects in the Database](https://support.checkpoint.com/results/sk/sk181332)

---

# 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
