Get information about the virtual server
ns_server ?-server servername? active
ns_server ?-server servername? all
ns_server ?-server servername? connections
ns_server ?-server servername? queued
ns_server ?-server servername? threads
ns_server ?-server servername? verbose ?on/off?
ns_server ?-server servername? waiting
ns_server active returns a list of lists containing information about the currently-active connections for the specified virtual server, or the current virtual server if none is specified. For each active connection, the following information is returned:
ns_server all returns the same information as ns_server active about both active and waiting connections for the specified virtual server, or the current virtual server if none is specified.
ns_server connections returns the total number of connections for the specified virtual server, or the current virtual server if none is specified.
ns_server queued returns the same information as ns_server active about the waiting connections for the specified virtual server, or the current virtual server if none is specified.
ns_server threads returns a Tcl list containing the minimum number of threads, the maximum number of threads, the number of currently active threads, the number of idle threads, and the number of stopping threads for the specified virtual server, or the current virtual server if none is specified. For example:
{min 0} {max 50} {current 2} {idle 1} {stopping 0}
ns_server verbose returns 1 if the server is in verbose mode and 0 if it is not for the specified virtual server, or the current virtual server if none is specified. If "on" is specified, sets verbose mode on. If "off" is specified, sets verbose mode off.
ns_server waiting returns the number of waiting connections for the specified virtual server, or the current virtual server if none is specified.