What are the maximum number of allowable sessions?
session = socket. In Linux/Unix socket is a file so it depends how much opened file descriptors can be opened.
/proc/sys/fs/file-max
This specifies the maximum number of file handles that can be allocated. You may need to increase this value if
users get error messages stating that they cannot open more files because the maximum number of open files
has been reached. This can be set to any number of files and can be changed by writing a new numeric value
to the file.
/proc/sys/fs/file-nr
This file is related to file-max and holds three values:
Number of allocated file handles
Number of used file handles
Maximum number of file handles
For info and configs look at:
Code: Select all
ulimit -a #Provides control over the resources available to the shell and to processes started by it, on systems that allow such control.
Code: Select all
sysctl -a # configure kernel parameters at runtime
Is there any problem with the increasing the maximum client sessions?
Open connection/socket costs to system resources (open FD, create buffer an so on) so it depends on your system.