Re: Setting Open FDs to 16,384

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 11/12/03


Date: Wed, 12 Nov 2003 06:05:23 GMT

Gene Mat <geneSPAMAWAYmat@eathlink.net> wrote:
> Hello fellow admins,

> I have a Sun 4500 10x10, that can't handle more then 2000 established TCP
> connections. The TCP based application runs fine under 2000 established TCP
> connection, but once the app starts handling over 2000 TCP connections,
> chances are high that it could crash and will need to be restarted.

> The error message I get from the exe is "error creating new thread LWP".

Do you have any limit on stacksize in the environment? My recollection
is that the stack requirements for each thread can be one of the first
resources to be exhausted when creating many.

> So I am guessing the Solaris 8 is limiting the the app from creating
> additional threads.

Depends on what you mean by "the Solaris 8".

> maxuser to 4096 and

I doubt maxuser will do any good at all.

> rlim_fd_cur to 16384

> These are pretty high values and most people have been warning me against
> this, however, the tuning guide at docs.sun.com, says that rlim_fd_cur can
> go as high as MAXINT. On a 64 bit system SUN4500 MAXINT is very large,

I would use rlim_fd_max and make sure the process can raise the limit
itself, or it is launched in an environment that can raise it. Setting
the default system wide to that isn't necessarily a good idea.

Do you already have rlim_fd_max and limits set appropriately? According
to 'pfiles' how many file descriptors are in use at the 2000 connection
point?

-- 
Darren Dunham                                           ddunham@taos.com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


Relevant Pages

  • Re: SQL Server does not exist or access denied.
    ... more info on your environment ... TCP has is less overhead and network reads/writes over NP. ... is about 10-12 new connections per second. ... >I get the following error when trying to connect to SQL Server ...
    (microsoft.public.sqlserver.connect)
  • Re: TCP over UDP
    ... The idea is to put the TCP logic over UDP. ... own retransmission and reliability protocol. ... Moving the connection logic to the user space makes the connections ...
    (freebsd-hackers)
  • RE: SUMMARY:RE: TCP_keepalive
    ... of short and unreliable connections). ... creating a TCP socket. ... printf "Decrease the tcp time wait interval\n" ...
    (SunManagers)
  • Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+
    ... is discovered to see if TCP still tries to do something, ... use -v or -vv for full protocol decode ... Active Internet connections ... # ISDN4Linux hardware drivers ...
    (Linux-Kernel)
  • Re: TCP/IP redundant connections
    ... The clients have persistent TCP connections to the server, ...
    (freebsd-hackers)