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

# sk183290 - Optimizer Script for Spark Firewall 1500 series

| Property | Value |
|----------|-------|
| Solution ID | sk183290 |
| Date Created | 2025-03-26 |
| Last Modified | 2025-03-26 |
| Technical Level | General |
| Products | Spark Firewall (Locally Managed) |
| Versions | R81.10.X |
| Platform | 1500 |

## Solution

### Overview

In some cases, the enabled features on a Quantum Spark Gateway may increase the utilization of resources (CPU, Memory, Storage) to the point that the performance of the Quantum Spark Gateway deteriorates significantly.

Users and administrators may experience these issues (in WebUI \> **Home** view \> **Troubleshooting** section \> **Tools** page \> click the **Monitor System Resources** button):

* CPU usage is very high.
* Memory usage is very high
* The "`/pfrm2.0`" storage partition and/or the "`/storage`" storage partition are getting almost 100% used.

For Quantum Spark Gateways 1500 series, this article offers a shell script that determines the root causes of the high resource utilization and makes the applicable changes:

1. Removes unneeded files from the storage partitions to free up the space.
2. Disables these features to decrease the CPU and Memory usage:
   * IoT
   * SD-WAN
   * Smart Accel
   * IoT Statistics
   * Device information logging
   * Hit Count
   * Privacy Settings
   * Logging of allowed traffic
   * Probing in Internet connections (depends on the script)
   * Batch recognition
3. Restarts the *sfwd* daemon.

### Running the Optimizer Script

1. Download the applicable script to your computer:

   |-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | Script                                                | Download                                                                                                                 | Description                                                                                                                                                                                                                                                                                                                             |
   | Optimizer Script that disables probing ^(\*)^         | [![](https://sc1.checkpoint.com/sc/images/download-m.png)](https://support.checkpoint.com/results/download/136402) (LUA) | Run this script only if: 1. This is Quantum Spark Gateway is Locally Managed. 2. Your configuration does not require the probing to be enabled in the Internet connections.                                                                                                                                                             |
   | Optimizer Script that does not disable probing ^(\*)^ | [![](https://sc1.checkpoint.com/sc/images/download-m.png)](https://support.checkpoint.com/results/download/137034) (LUA) | Run this script only if: 1. This is Quantum Spark Gateway is connected to the [Quantum Spark Management](https://sc1.checkpoint.com/documents/Infinity_Portal/WebAdminGuides/EN/Quantum-Spark-Management/Default.htm) service in Infinity Portal. 2. Your configuration requires the probing to be enabled in the Internet connections. |

   ^(\*)^ In Web UI \> **Device** view \> **Network** section \> **Internet** page \> edit the Internet connection \> click the **Connection Monitoring** tab \> refer to the checkbox "**Monitor connection state by sending probe packets to the specified server on the Internet**".
2. Copy the script from your computer to the Quantum Spark Gateway to the partition "`/storage`".

3. Connect to the command line on the Quantum Spark Gateway.

4. If your default shell is Gaia Clish, then go to the Expert mode:

   `expert`
5. Assign the 'execute' permission to the script:

   `chmod +x /storage/<Name of Script>.lua`
6. Examine the permissions assigned to the script:

   `ls -l /storage/<Name of Script>.lua`
7. Run the script:

   `/storage/<Name of Script>.lua`

   Notes:
   * The script prints the relevant error, warning, and success messages on the screen.

   * The changes made by this script are permanent - survive a reboot.

---

# 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
