On 30-Jun-98 Charles Forsythe wrote:
>  I have a simple client/sever benchmark (code below) designed to see how
>  many simultanious open sockets I can sustain.  The answer seems to be
>  about 250.  This is really sad because the crufty HP-UX JDK 1.1.3
>  managed to make it to 1200.  The exception is weird, too.  Linux throws:
Linux has a compile-time limit of 256 open files. You'll need to change
the NR_OPEN symbol in include/linux/fs.h and include/linux/limits.h.
Please review include/linux/posix_types.h, which explains that a
maximum of 1024 open files per process are supported, and that this
is a crib from OSF/1. From a cursory glance at the kernel sources,
it seems to me that the __FD_SETSIZE could be increased without
problems, but YMMV.

Please don't forget to update the system-wide number of open files
and inodes by echoing the appropriate value to
/proc/sys/kernel/files-max and /proc/sys/kernel/inode-max
in your rc.d boot scripts.

PS. Maybe you might want to review the design decision to
have 2500 open sockets. IMESHO you'd be better off splitting
the application over several servers. BTW, Java is a speed-hog,
is there any good reason to use it for the server?

HTH

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.

Reply via email to