Slow Startup

 

Insufficient entropy

 

 MailArchiva relies on secure random to perform license checks, etc. Server startup times may be slow due to lack of available entropy on the machine.

 
Linux Resolution

 

cat /proc/sys/kernel/random/entropy_avail

 

If the output of the above command is below ten, insufficient entropy could be the reason why your server is slow to start. A possible solution is to install Haveged to increase the amount of entropy available.

 

To install Haveged on RHEL/Fedora/CentOS machines:

 

yum install haveged
chkconfig haveged on

 

To install Haveged on CentOS 8:
 

yum install wget -y
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum install epel-release-latest-8.noarch.rpm -y
yum install haveged -y

 

DNS settings incorrect

 

Linux Resolution

 

Incorrect network configuration may slow startup. Specifically, the Java call:
 

InetAddress.getLocalHost();

 

Will be slow to perform if localhost is not setup correctly on /etc/hosts

 

127.0.0.1   servername

::1         servername

 

Graph database corruption

 

The server will attempt to repair the graph database on startup. It can take time to repair the database. If there are no folders to be preserved in the search interface, the graph database can be deleted/renamed by stopping the MailArchiva service, then deleting/renaming the following directories:

 

C:\ProgramData\MailArchiva\ROOT\database\archiva (Windows)
/var/opt/mailarchiva/ROOT/database/archiva (Linux)

 

To protect against database coruption in future, be sure to shut down the server cleanly. Upgrade MallArchiva to the latest if the server is having trouble shutting down.

 

 

 

 

 

 

 

 

 

Was this helpful?
© 2005 - 2025 ProProfs

Found this information useful? Visit mailarchiva.com to learn more about MailArchiva.
-