Charles Forsythe wrote:
>
> Fellow Java Linux users:
>
> 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:
I would have to look at the kernel source, but I do know that on most
commercial Unix system the maximum open file diescriptors is set in an
include file. This can be modified and the kernel rebuilt, on a system
like AIX it configurable with a tool called "smit". On SVR4 it takes a
kernel rebuild, I beleive that is the case with HP-UX, and on Linux I
would think the same thing would hold true.
One must keep in mind too the implications of opening a lot of fds, and
remember in Unix all devices an sockets are reached via a FD. Which
takes up memory, both kernel and user space memory. If performance is
not a concern then start looking at the kernel headers for MAX_FDS,
MAX_OPEN_FDS, or something along those lines. There may also be
something that tells the kernel what the MAX number of socket
descriptors are allowed also.
The VM, and I could be wrong about this, shold not limit you to how many
open socket/file descriptors can be open at any given time. When I get
home this evening I can verify all of the above and send a reply.
Hope this helps.
Cheers,
Bruce...