Hi Joseph,

(See also http://www.kegel.com/c10k.html )
That points to http://www.volano.com/linux.html which doesn't exist anymore. The wayback machine has a verion from Oct 31 2001 that doesn't say how to recompile the kernel to increase the limit. It does point me to /etc/security/limits.conf, but I don't have anything set there.
I removed that page since I think it's obsolete. Fortunately, I haven't had to go recompile the Kernel or the Glibc library in years.

Using the following options with Blackdown 1.3.1-02b-FCS on Red Hat Linux 8.0, I got 10,000 active socket connections (with 20,000 threads) on a 500-MHz Intel Pentium III with 384 megabytes of RAM:

/usr/local/j2sdk1.3.1/bin/java -green -Xmx256m -Xss64k ...

All I had to do was increase the per-process file descriptor limits for all the socket connections, by doing the following.

Add to /etc/pam.d/login:

session required /lib/security/pam_limits.so

Add to /etc/security/limits.conf:

* soft nofile 1024
* hard nofile 10240

Don't forget to add a "ulimit -n 10240" to your startup script.

John Neffenger



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to