Virtual Memory - Sun Microsystems Sun GlassFish Enterprise Server 2.1 Tuning Manual

Performance tuning guide
Hide thumbs Also See for Sun GlassFish Enterprise Server 2.1:
Table of Contents

Advertisement

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 file) entries:
*
soft
nofile
*
hard
nofile
The character "*" is a wildcard that identifies 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 sufficient. 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 configured.

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 5 • Tuning the Operating System and Platform
65535
65535
Chapter 6, "Tuning for High-Availability. "
Tuning for Linux platforms
101

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Sun GlassFish Enterprise Server 2.1 and is the answer not in the manual?

Table of Contents