Skip navigation.

WebLogic Server Performance and Tuning

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

Tuning Hardware, Operating System, and Network Performance

The following sections describe issues related to optimizing hardware, operating system, and network performance:

 


Hardware Tuning

When you examine performance, a number of factors influence how much capacity a given hardware configuration will need in order to support WebLogic Server and a given application. The hardware capacity required to support your application depends on the specifics of the application and configuration. You should consider how each factor applies to your configuration and application. Before continuing with this section, here are some recommended starting points for planning your hardware configuration:

Supported Platforms

The following table provides some links to the information on the Supported Configurations pages, which contains the latest certification information on the hardware/operating system platforms that are supported for each release of WebLogic Server.

Table 2-1 Platform-Specific Tuning Information

Platform

For more information

Bull/IBM pSeries with AIX

See the Bull/IBM links on the Supported Configurations pages.

  • Bull/IBM pSeries with AIX 5L v5.1

  • Bull/IBM pSeries with AIX 5L v5.2

Hewlett-Packard 9000 with HP-UX

See Hewlett-Packard HP/9000 with HP-UX 11.0 and 11i on the Supported Configurations pages.

See also Hewlett-Packard Company Information.

Intel Pentium-compatible with Windows

See the Intel/Windows links on the Supported Configurations pages.

  • Windows 2000 Server or Windows 2000 Advanced Server

  • Windows 2000 Professional

  • Windows XP

See also Microsoft Information.

Intel 32-bit-compatible with Red Hat Advanced Server

See the Red Hat links on the Supported Configurations pages.

  • Red Hat Enterprise Linux AS 2.1 and ES 2.1 for IA-32

  • Red Hat Enterprise Linux WS 2.1 for IA-32

See also Linux OS Information.

Intel 64-bit-compatible with SuSE Linux

See SuSE Linux (SLES 8) for IA-32 on the Supported Configurations pages.

See also Linux OS Information.

Sun Microsystems SPARC with Solaris

See the Sun Microsystems SPARC Solaris links on the Supported Configurations pages.

  • SPARC with Solaris 8

  • SPARC with Solaris 9

  • SPARC with Solaris 10

See also Sun Microsystems Information.

 


Operating System Tuning

Tune your operating system according to your operating system documentation. BEA certifies WebLogic Server on multiple operating systems on the Supported Configurations pages.

For Windows platforms, the default settings are usually sufficient. However, the Solaris and Linux platforms usually need to be tuned appropriately.

Solaris Tuning Parameters

The following sections provide information on tuning Solaris operating systems.

Note: The following sections list common parameters that can enhance performance. These lists are not all inclusive and parameters may be different or have different defaults for different Solaris operating systems.

Setting TCP Parameters With the ndd Command

This section lists important TCP tuning parameters that when tuned, can enhance application performance:

Table 2-2 Suggested TCP-Related Parameters

Parameter

/dev/tcp tcp_time_wait_interval

/dev/tcp tcp_conn_req_max_q

/dev/tcp tcp_conn_req_max_q0

/dev/tcp tcp_ip_abort_interval

/dev/tcp tcp_keepalive_interval

/dev/tcp tcp_rexmit_interval_initial

/dev/tcp tcp_rexmit_interval_max

/dev/tcp tcp_rexmit_interval_min

/dev/tcp tcp_smallest_anon_port

/dev/tcp tcp_xmit_hiwat

/dev/tcp tcp_recv_hiwat

/dev/ce instance

/dev/ce rx_intr_time

Set the following TCP-related tuning parameters using the ndd command, as demonstrated in the following example:

ndd -set /dev/tcp tcp_conn_req_max_q 16384

Tip: Use the netstat -s -P tcp command to view all available TCP parameters.

Setting Parameters In the /etc/system File

This section lists important /etc/system file tuning parameters that when tuned, can enhance application performance. Each socket connection to the server consumes a file descriptor. To optimize socket performance, you need to configure your operating system to have the appropriate number of file descriptors. Therefore, you should change the default file descriptor limits, as well as the hash table size and other tuning parameters in the /etc/system file, to the recommended values in the following table.

Note: You must reboot your machine anytime you modify /etc/system parameters.

Table 2-3 Suggested /etc/system Parameters

Parameter

set rlim_fd_cur

set rlim_fd_max

set tcp:tcp_conn_hash_size (Solaris 8,9)

set ip:ipcl_conn_hash_size (Solaris 10)

set shmsys:shminfo_shmmax

Note: This should only be set for machines that have at least 4 GB RAM or higher.

set autoup

set tune_t_fsflushr

CE Gigabit Network Card Settings

This section lists important CE Gigabit Network Card tuning parameters that when tuned, can enhance application performance:

Table 2-4 Suggested CE Gigabit Card Parameters

Parameter

set ce:ce_bcopy_thresh

set ce:ce_dvma_thresh

set ce:ce_taskq_disable

set ce:ce_ring_size

set ce:ce_comp_ring_size

set ce:ce_tx_ring_size

For more information about Solaris tuning options, see:

Linux Tuning Parameters

This section lists important Linux tuning parameters that when adjusted, can enhance application performance:

Table 2-5 Suggested Linux Values

Parameter

/sbin/ifconfig lo mtu

kernel.msgmni

kernel.sem

fs.file-max

kernel.shmmax

net.ipv4.tcp_max_syn_backlog

For more information about Linux tuning, you should consult your Linux vendor's documentation. Also, the Ipsysctl Tutorial 1.0.4 describes all of the IP options provided by Linux.

HP-UX Tuning Parameters

This section lists important HP-UX operating system tuning parameters that when adjusted, can enhance application performance:

Table 2-6 Suggested HP-UX TCP Values

Parameter

tcp_conn_req_max

tcp_xmit_hiwater_def

tcp_ip_abort_interval

tcp_rexmit_interval_initial

tcp_keepalive_interval

For more HP-UX tuning information, see the Tunable Kernel Parameters reference documentation.

Other Operating System Tuning Information

For more information about Windows, HP-UX, and AIX tuning options, refer to the following Web sites:

 


Network Performance

Network performance is affected when the supply of resources is unable to keep up with the demand for resources. Today's enterprise-level networks are very fast and are now rarely the direct cause of performance in well-designed applications. However, if you find that you have a problem with one or more network components (hardware or software), work with your network administrator to isolate and eliminate the problem. You should also verify that you have an appropriate amount of network bandwidth available for WebLogic Server and the connections it makes to other tiers in your architecture, such as client and database connections. Therefore, it is important to continually monitor your network performance to troubleshoot potential performance bottlenecks.

Determining Network Bandwidth

A common definition of bandwidth is "the rate of the data communications transmission, usually measured in bits-per-second, which is the capacity of the link to send and receive communications." A machine running WebLogic Server requires enough network bandwidth to handle all WebLogic Server client connections. In the case of programmatic clients, each client JVM has a single socket to the server, and each socket requires dedicated bandwidth. A WebLogic Server instance handling programmatic clients should have 125-150 percent of the bandwidth that a similar Web server would handle. If you are handling only HTTP clients, expect a bandwidth requirement similar to a Web server serving static pages.

To determine whether you have enough bandwidth in a given deployment, you can use the network monitoring tools provided by your network operating system vendor to see what the load is on the network system. You can also use common operating system tools, such as the netstat command for Solaris or the System Monitor (perfmon) for Windows, to monitor your network utilization. If the load is very high, bandwidth may be a bottleneck for your system.

Also monitor the amount of data being transferred across the your network by checking the data transferred between the application and the application server, and between the application server and the database server. This amount should not exceed your network bandwidth; otherwise, your network becomes the bottleneck. To verify this, monitor the network statistics for retransmission and duplicate packets, as follows:

netstat -s -P tcp

For instructions on viewing other TCP parameters using the netstat -s -P command, see Setting TCP Parameters With the ndd Command.

LAN Infrastructure

Your local area network must be fast enough to handle your application's peak capacity. If your network is fully utilized, in that the amount of traffic consistently exceeds its bandwidth capacity, yet your WebLogic Server machine is not fully utilized, do one of the following:

 

Skip navigation bar  Back to Top Previous Next