max connections

Discussion in 'Install/Configuration' started by k141, Feb 9, 2007.

  1. k141

    k141 New Member

    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:


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

    mistwang LiteSpeed Staff

    <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.

Share This Page