JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1 Performance Tuning Guide
search filter icon
search icon

Document Information

Preface

1.  Overview of GlassFish Server Performance Tuning

2.  Tuning Your Application

3.  Tuning the GlassFish Server

4.  Tuning the Java Runtime System

5.  Tuning the Operating System and Platform

Server Scaling

Processors

Memory

Disk Space

Networking

UDP Buffer Sizes

To Determine an Optimal UDP Buffer Size

To Set the UDP Buffer Size on Linux Systems

Solaris 10 Platform-Specific Tuning Information

Tuning for the Solaris OS

Tuning Parameters

Sizing the Connection Hash Table

File Descriptor Setting

Tuning for Solaris on x86

File Descriptors

IP Stack Settings

Tuning for Linux platforms

Startup Files

File Descriptors

Virtual Memory

Network Interface

Disk I/O Settings

To tune disk I/O performance for non SCSI disks

TCP/IP Settings

To tune the TCP/IP settings

Tuning UltraSPARC CMT-Based Systems

Tuning Operating System and TCP Settings

Disk Configuration

Network Configuration

Index

Tuning for Solaris on x86

The following are some options to consider when tuning Solaris on x86 for GlassFish Server:

Some of the values depend on the system resources available. After making any changes to /etc/system, reboot the machines.

File Descriptors

Add (or edit) the following lines in the /etc/system file:

set rlim_fd_max=65536
set rlim_fd_cur=65536
set sq_max_size=0
set tcp:tcp_conn_hash_size=8192
set autoup=60
set pcisch:pci_stream_buf_enable=0

These settings affect the file descriptors.

IP Stack Settings

Add (or edit) the following lines in the /etc/system file:

set ip:tcp_squeue_wput=1
set ip:tcp_squeue_close=1
set ip:ip_squeue_bind=1
set ip:ip_squeue_worker_wait=10
set ip:ip_squeue_profile=0

These settings tune the IP stack.

To preserve the changes to the file between system reboots, place the following changes to the default TCP variables in a startup script that gets executed when the system reboots:

ndd -set /dev/tcp tcp_time_wait_interval 60000
ndd -set /dev/tcp tcp_conn_req_max_q 16384
ndd -set /dev/tcp tcp_conn_req_max_q0 16384
ndd -set /dev/tcp tcp_ip_abort_interval 60000
ndd -set /dev/tcp tcp_keepalive_interval 7200000
ndd -set /dev/tcp tcp_rexmit_interval_initial 4000
ndd -set /dev/tcp tcp_rexmit_interval_min 3000
ndd -set /dev/tcp tcp_rexmit_interval_max 10000
ndd -set /dev/tcp tcp_smallest_anon_port 32768
ndd -set /dev/tcp tcp_slow_start_initial 2
ndd -set /dev/tcp tcp_xmit_hiwat 32768
ndd -set /dev/tcp tcp_recv_hiwat 32768