1. Overview of GlassFish Server Performance Tuning
3. Tuning the GlassFish Server
4. Tuning the Java Runtime System
5. Tuning the Operating System and Platform
To Determine an Optimal UDP Buffer Size
To Set the UDP Buffer Size on Linux Systems
Solaris 10 Platform-Specific Tuning Information
Sizing the Connection Hash Table
Use a combination of tunable parameters and other parameters to tune UltraSPARC CMT–based systems. These values are an example of how you might tune your system to achieve the desired result.
The following table shows the operating system tuning for Solaris 10 used when benchmarking for performance and scalability on UtraSPARC CMT–based systems (64-bit systems).
Table 5-2 Tuning 64–bit Systems for Performance Benchmarking
|
Note that the IPGE driver version is 1.25.25.
If HTTP access is logged, follow these guidelines for the disk:
Write access logs on faster disks or attached storage.
If running multiple instances, move the logs for each instance onto separate disks as much as possible.
Enable the disk read/write cache. Note that if you enable write cache on the disk, some writes might be lost if the disk fails.
Consider mounting the disks with the following options, which might yield better disk performance: nologging, directio, noatime.
If more than one network interface card is used, make sure the network interrupts are not all going to the same core. Run the following script to disable interrupts:
allpsr=`/usr/sbin/psrinfo | grep -v off-line | awk '{ print $1 }'` set $allpsr numpsr=$# while [ $numpsr -gt 0 ]; do shift numpsr=`expr $numpsr - 1` tmp=1 while [ $tmp -ne 4 ]; do /usr/sbin/psradm -i $1 shift numpsr=`expr $numpsr - 1` tmp=`expr $tmp + 1` done done
Put all network interfaces into a single group. For example:
$ifconfig ipge0 group webserver $ifconfig ipge1 group webserver