Welcome to Vestris Inc.
Internet Interactive Solutions Company



Software Documentation

My server is very loaded and Alkaline crashes every 24 hours. How can I improve server stability?

Alkaline should never crash. Crashing means that the process is gone from the processes list, a segmentation fault or a similar message appears, a core file is written on a UNIX system or an asearch.exe has provoked an unexpected error in module ... message appears on Windows NT.

Note

If you can consistently reproduce an Alkaline crash, please file a bug report at http://www.vestris.com/vestris/bugreport.html with as many detail as possible.

Other visible problems include:

  • Alkaline takes a long time to respond.

  • Alkaline consumes too much memory.

  • Alkaline uses too much CPU time.

  • Alkaline does not respond at all but the process is still running.

The very first thing to do when you experience a problem with Alkaline's performance is to disable the background indexing. For that purpose, run Alkaline with the --noreindex command line option. This should greatly improve Alkaline's response time and searching speed.

If Alkaline takes too much memory, consider using an exclusion dictionary. Excluding simple common words will greatly reduce Alkaline's memory usage.

When Alkaline takes too long to respond, try adjusting -mt, -mi, -sf, -sr and -ai parameters. These define the amount of concurrent threads that Alkaline can host and other sleep intervals. It is a good idea to try -ai (--AcceptInterval) with values between 100 and 500 milliseconds.

If Alkaline takes too much CPU, disable background indexing first. Try running Alkaline with the --DisablePing option and with reduced values for -mt and -mi.

Alkaline is hung when processes are still running and are visible with ps, but the server does not service requests. There're two choices: either the server is dead or the server is able to accept, but not to process the request. To find out which case it is, run telnet [server] [port] where server is the machine running Alkaline and port is the port to which it is bound. If you are able to connect, then Alkaline is pooling too many connections and you should consider any of the above-mentioned remedies. If you are unable to connect, then Alkaline died and needs to be restarted. In this case, and after you have tried all remedies above, you might want to contact the technical support.