In the Xvnc code, find the file where function main() is defined and add the
following lines
----- begin --------
struct rlimit rlp;
rlp.rlim_cur = 20000;
rlp.rlim_max = 20000;
int ret = setrlimit(RLIMIT_NOFILE, &rlp);
if ( ret < 0 ) {
perror("Error in setrlimit");
}
----- end -------
Compile Xvnc and this should allow more no of clients.
-shashi
-----Original Message-----
From: Richard L. Hamilton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Max. number of clients per Xvnc display window [?]
>Hello.
>
>Recently, we replaced Sun's standard X display server with Xvnc. The
reason
>was that,
>even with the latest Sun patches, we could display no more than 45 clients
>on :0 on
>Sun's X display server before it would refuse new clients with "Maximum #
of
>clients
>reached" errors. We verified this via an xterm loop shell script. This
>despite the
>fact that we learned that the standard maximum number of X clients is 128.
Haven't looked at the Xvnc source yet. But there are a number of things
that might compose such a limit.
* a hard-coded limit
* the file descriptor limit (need one per XOpenDisplay, plus one per
screen, plus one per hardware input device, plus one to just listen on
each type of connection (local - of possibly more than one flavor,
network),
plus maybe a few more
* max stack depth
* sufficient vm
See
http://www.sunmanagers.org/pipermail/sunmanagers/2001-September/006231.html
for a way to increase the number of clients on Xsun. Basically, you add
-clients 1024
to the command line for Xsun. 128 is also a valid value, not sure if
anything
else is. I think this trades off against something else, i.e. increasing
number of clients decreases some other thing like maybe number of atoms or
max number of properties or something like that.
--
ftp> get |fortune
377 I/O error: smart remark generator failed
Bogonics: the primary language inside the Beltway
mailto:[EMAIL PROTECTED] http://www.smart.net/~rlhamil
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------