Date: Thu, 18 Mar 2004 10:41:50 +0100 From: Gabriel Ambuehl <gabriel_ambuehl@buz.ch> To: Panagiotis Astithas <past@noc.ntua.gr> Cc: freebsd-java@freebsd.org Subject: Re[2]: java.net.SocketException: Too many open files Message-ID: <708003903.20040318104150@buz.ch> In-Reply-To: <40596806.4000808@noc.ntua.gr> References: <011a01c40bc3$cd534050$0200a8c0@rescue> <40596806.4000808@noc.ntua.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Panagiotis, Thursday, March 18, 2004, 10:12:38 AM, you wrote: > Nick Gieczewski wrote: >> I have written a small program that attempts to open 2,048 concurrent >> connections to the server in oder to reproduce this. On my FreeBSD >> box, the thread dies with the above exception at 500-600 open >> connections. When running the server application on Win32, on the >> other hand, I'm able to open all the 2,048 connections without a >> hitch. > Hello, > would you mind posting your small test program? It would help shed some > light I think. Maybe system resource limits are too low (IIRC, 4-STABLE has hard wired, relatively low limits)? Seems like the 2048 on Win are some arbitrary limit as well (didn't someone benchmark a tuned 4-STABLE with some 1,6 MILLION concurrent connections to a dummy server? So one would guess more than 2K connections should be possible when the system is configured properly). I think the default hoovers somewhere around 1024 file descriptors, so 500 to 600 is reasonable considering that the system and daemons will chew up a few of their own. My CURRENT box says: #sysctl -a | grep files kern.maxfiles: 7560 kern.maxfilesperproc: 6804 Best regards, Gabriel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?708003903.20040318104150>