Tuning for Linux platforms
Network Interface
To ensure that the network interface is operating in full duplex mode, add the following entry
into /etc/rc.local:
mii-tool -F 100baseTx-FD eth0
where eth0 is the name of the network interface card (NIC).
Disk I/O Settings
▼
To tune disk I/O performance for non SCSI disks
Test the disk speed.
1
Use this command:
/sbin/hdparm -t /dev/hdX
Enable direct memory access (DMA).
2
Use this command:
/sbin/hdparm -d1 /dev/hdX
Check the speed again using the hdparm command.
3
Given that DMA is not enabled by default, the transfer rate might have improved considerably.
In order to do this at every reboot, add the /sbin/hdparm -d1 /dev/hdX line to
/etc/conf.d/local.start, /etc/init.d/rc.local, or whatever the startup script is called.
For information on SCSI disks, see:
TCP/IP Settings
▼
To tune the TCP/IP settings
Add the following entry to /etc/rc.local
1
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 60000 > /proc/sys/net/ipv4/tcp_keepalive_time
echo 15000 > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
102
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 2009
System Tuning for Linux Servers —
SCSI.
Need help?
Do you have a question about the Sun GlassFish Enterprise Server 2.1 and is the answer not in the manual?