Monday, April 5, 2010

My Reason to Despise Java

I understand it's a great language. Portable, (supposedly) easy to write. Also takes up a TON of file handlers on Linux. Quick fix below:

/etc/pam.d/common-session
ADD: session required pam_limits.so

/etc/sysctl.conf
ADD: fs.file-max = 1137875
then RUN: sysctl -p

/etc/security/limits.conf
ADD:
* soft nofile 131070
* hard nofile 131070
* soft nproc 25000
* hard nproc 65000


(This is for Ubuntu, and MY settings....yours may be different).

No comments:

Post a Comment