max connections

k141

New Member
#1
Hello all,

I'm a bit confused with maxconnections, maxconns, and instances.

I have written a script that polls the lsws report every second, and currently it says that my max ever connections was 231 (PLAINCONN). I don't really understand the relations between PLAINCONN, <maxConnections>300</maxConnections>, <maxConns>20</maxConns>, and <instances>20</instances>

I'm using lsphp and a ps -ef | grep lsphp | wc never goes beyond 21.

I'm planning to buy the enterprise version since i'm reaching the maxConnections, apparently, but I want to know what the maxConns and instances are and how they work with the maxConnections parameter?

My script is simple:

echo 1 > lsreport then run the script:

#!/bin/bash

while [ 1 ] ; do
f=`cat lsreport`
g=`cat /tmp/lshttpd/.rtreport | grep PLAINCONN | awk -F"," '{print $3}' | awk '{print $2}'`
if [ "$g" -gt "$f" ]
then
echo $g > lsreport
fi
sleep 1
done
 
Last edited:

mistwang

LiteSpeed Staff
#2
<maxConnections> is the limit of client connections, PLAINCONN will not exceed this value.

<maxconns> is the limit of number of connections that LSWS will use when talk to a backend external application.
 
Top