Search Our Database

How to increase the Solr memory limit

Last updated on |
under |

Introduction

To address the issue of slow searching in large mailboxes due to high memory usage by the index-worker and Solr process, you may need to adjust the configuration settings. While cPanel does not provide a direct way to adjust this through the WHM GUI, you can modify the configuration files manually to optimize the performance.

Prerequisites

  1. SSH Access to Server: Ensure administrative access to the server where cPanel is installed.
  2. Solr Plugin Installed: Verify that the Solr plugin is installed on the server.

Steps to increase the Solr limit:

1: Locate Configuration File: Open the configuration file.

/etc/sysconfig/cpanel-dovecot-solr

2. Adjust Memory Limit: Find the parameter SOLR_MEMORY ,which defines the memory limit for Solr. By default, it is set to 512M.

3. Update Memory Limit: Modify the value of SOLR_MEMORY to 750M or any desired value to increase the memory limit. This allows Solr to utilize more memory for indexing and searching.

4. Restart Service: After making the change, restart the cPanel Dovecot Solr service using the command:

/usr/local/cpanel/scripts/restartsrv_cpanel_dovecot_solr

Conclusion

After increasing the Solr memory limit to desired value, monitor the performance to see if it improves.

For further help or if you encounter any issues, please contact our support team at support@ipserverone.com.