SOLVED How to increase the Solr memory limit

Syneic

Member
Mar 17, 2014
11
2
3
cPanel Access Level
DataCenter Provider
Hi,

We have several accounts which is 15+GB with several hundred thousand emails total.
And we can see index-worker running and solr process building in ram usage untill it reaches 512MB rss.

And after this happens searching in those inboxes takes upwards to 30minutes.

Do cPanel provide any way to adjust this through whm gui/api or do i need to change the config files ?
 
  • Like
Reactions: Jean Boudreau

Syneic

Member
Mar 17, 2014
11
2
3
cPanel Access Level
DataCenter Provider
I've had it disabled up until recently, but due to some email client software not building proper index files, they makes the server read all files in inbox while searching creating huge IO load on the server.
Using solr has mitigated this, but now some have to much mail for solr in current configuration.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello @Syneic,

The default memory limit for Solr is defined in /etc/sysconfig/cpanel-dovecot-solr:

Code:
SOLR_MEMORY="512m"
Can you try increasing this value from 512m to 750m to see if that helps? Remember to restart the service after making the change:

Code:
/usr/local/cpanel/scripts/restartsrv_cpanel_dovecot_solr
Thank you.
 
  • Like
Reactions: Jean Boudreau