How to configure maximum memory (heap size) of the On-Premise Poller
Configure the maximum memory (heap size) of the On-Premise Poller to control how much system memory the application can consume. This helps ensure stable performance and prevents resource exhaustion.
Prerequisites
- Access to the On-Premise Poller installation directory.
- Administrative or root privileges in the system where the On-Premise Poller is installed.
- Details about available system memory (RAM).
By default, the On-Premise Poller allocates up to 80% of total system memory, which is suitable for most environments. Modify the heap size to increase or reduce memory usage based on monitoring workload and system resource availability. Ensure the configured values are appropriate for your environment, as incorrect values may impact monitoring performance. As a best practice, create a backup copy of the file before making any changes.
Configuring maximum memory in Linux
In Linux, you can manually set the heap size in the StartServer.sh file.
Steps
- Navigate to the On-Premise Poller's installation directory.
- Open the StartServer.sh file.
- Locate the following section:
# Optional manual override
# maxHeapSize=8192 - Uncomment the line and set the required value (in MB):
maxHeapSize=8192 - Save the file.
- Restart the On-Premise Poller.

Notes
- The value is specified in MB.
- This overrides the default memory calculation.
- Ensure sufficient memory is available on the system before making changes.
In Windows, you can configure max memory in the wrapper.conf file.
- Navigate to the On-Premise Poller's installation directory.
- Open the wrapper.conf file.
- Locate:
wrapper.java.maxmemory.percent - Set the required percentage value.
Example:
wrapper.java.maxmemory.percent=85
- Total system memory: 16GB
- Configured value: 85%
- On-Premise Poller maximum memory: 13.6GB
- In the wrapper.conf file, locate:
#wrapper.java.maxmemory=8096 - Uncomment the line and set the required value in MB:
wrapper.java.maxmemory - Save the file.
- Restart the On-Premise Poller.
Notes
- Value is specified in MB.
- This overrides the percentage-based configuration.
When should you increase maximum memory?
Increase the On-Premise Poller's maximum memory (heap size) when you observe performance degradation or memory-related issues.
Common indicators
- Frequent OutOfMemoryError messages in logs.
- High memory utilization sustained over time.
- Slow data collection or delayed metric updates.
- On-Premise Poller becoming unresponsive or restarting unexpectedly.
- Increase in the number of monitored devices, interfaces, or flows.
Typical scenarios
- Adding a large number of devices to the On-Premise Poller.
- Enabling high-frequency polling.
- Monitoring flow data (NetFlow, sFlow, etc.).
- Collecting logs or handling high-volume telemetry.
- Running multiple monitoring modules on the same On-Premise Poller.
Before increasing memory
- Verify current memory usage at the OS level.
- Check On-Premise Poller logs for memory-related errors.
- Ensure additional RAM is available on the system.
- Avoid over-allocation that impacts other processes.
Quick tip
If memory usage is consistently high even after increasing heap size, review:
- Polling intervals.
- Number of monitored resources.
- Enabled monitoring features.
Best practices
- Allocate 70–85% of total system memory.
- Avoid assigning full system memory to the On-Premise Poller.
- Monitor memory usage after configuration changes.
- Restart the On-Premise Poller after updating settings.
Related links
Related Articles
Manage log files filling up on an On-Premise Poller
The limit for a single log file is 10 MB. Beyond this, we will rotate the logs up to 10 files, giving a maximum of 100 MB for a single module. Likewise, we have 7-8 modules. This depends on the customer's usage of Poller and the number of monitors ...
Resolving huge disk space issues with the On-Premise Poller and Network Module
Often huge disk space results from the heap dump files in the NetworkPlus/bin directory of the On-Premise Poller. What are HPROF files? HPROF files are used to store Java virtual machine (JVM) memory dumps. When a JVM runs out of memory (OOM), it ...
Prerequisites for installing the On-Premise Poller
To monitor your internal network and resources behind a firewall, you need to install the On-Premise Poller within your network. You can install the On-Premise Poller on physical or virtual machines. System requirements: The configuration given below ...
Configure proxy for an already installed On-Premise Poller
Please follow the below steps for an On-Premise Poller installed in a Windows server: Go to the Run dialog box. Type in services.msc and press Enter. This will open Windows Services. Stop the service name SITE24X7_ONPREMISEMONITOR. i.e. Stop the ...
How secure is On-Premise Poller
On-Premise Poller: Introduction On-Premise Poller, a lightweight agent, helps to monitor your internal network and resources behind a firewall or virtual private network (VPN). You can install On-Premise Poller in various branch offices within a ...