Overview
The Kerio Connect uses built-in memory (RAM) management for specific services like instant messaging and Fulltext search. These apps are written in Java and are designed to consume a limited amount of server resources. The default values can be optimized for better-increased performance.
Prerequisites
Administrator (root) access to the Kerio Connect server
Diagnosis
Instant Messaging or Chat feature is using IM and XMPP services to deliver instant communication for domain users. Fulltext search is providing immediate output for all emails matching the necessary search pattern.
Both services are written in Java language and can be modified using configuration file called mailserver.cfg. The default limits are set to 256 MB.
Solution
- Stop the Kerio Connect service.
- Edit the mailserver.cfg by modifying the following variables:
-
MaxMemorySize in tables InstantMessaging and WebIM. Set it to 512 or bigger value.
-
JvmOptions in FullTextSearch table. Specify the -Xmx512m parameter to set the Java process limit to 512 MB.
-
MaxMemorySize in tables InstantMessaging and WebIM. Set it to 512 or bigger value.
- Save the changes and start the Kerio Connect service.
Confirmation
The new Java memory allocation limit is set to the necessary value.