cpanelsolr was introduced in cPanel version 64. cpanelsolr uses Java to index email messages managed by dovecot. cPanel describe the service as;
------------------------------------------------------------
Fast Email Searching (IMAP Full-Text Search)
Full-Text Search Indexing (powered by Solr) provides fast search capabilities for IMAP mailboxes. Users of iOS devices, Microsoft® Outlook™, SquirrelMail, Horde, Roundcube, and Mozilla™ Thunderbird will notice significantly improved search speed and convenience.
------------------------------------------------------------
How to disable cpanelsolr
1) Login to WHM with the root user account
2) Select “Service Manager”
3) Once the page loads untick the two boxes next to the cpanel-dovecot-solr service.
4) Click save at the bottom of the page
This will now disable the cpanel-dovecot-solr service and you should notice your memory usage won’t be as high. It’s important to remember you should only disable this service if you are having problems with it or your system is running a low amount of memory. Any system over 4GB of ram running the defaults provided by cPanel should be fine leaving the service enabled.