Sun Microsystems 820434310 Server User Manual


 
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize 0 kbytes
memoryuse unlimited
descriptors 1024
memorylocked unlimited
maxproc 8146
openfiles 1024
The openfiles and descriptors show a limit of 1024. To increase the limit to 65535 for all
users, edit /etc/security/limits.conf as root, and modify or add the nofile setting
(number of le) entries:
* soft nofile 65535
* hard nofile 65535
The character “*” is a wildcard that identies all users. You could also specify a user ID instead.
Then edit /etc/pam.d/login and add the line:
session required /lib/security/pam_limits.so
On Red Hat, you also need to edit /etc/pam.d/sshd and add the following line:
session required /lib/security/pam_limits.so
On many systems, this procedure will be sucient. Log in as a regular user and try it before
doing the remaining steps. The remaining steps might not be required, depending on how
pluggable authentication modules (PAM) and secure shell (SSH) are congured.
Virtual Memory
To change virtual memory settings, add the following to /etc/rc.local:
echo 100 1200 128 512 15 5000 500 1884 2 > /proc/sys/vm/bdflush
For more information, view the man pages for bdflush.
For HADB settings, refer to
Chapter 6, “Tuning for High-Availability.”
TuningforLinuxplatforms
Chapter5 • Tuningthe OperatingSystemand Platform 101