IBM Tivoli Composite Application Manager for Application Diagnostics, Version 7.1.0.1
HP-UX - J2EE Agent
Several HP-UX kernel values are typically too small for the application server.
To adjust the kernel values:
- Log into the host computer as root.
- Determine the physical memory, which know to avoid setting certain kernel parameters above the physical capacity:
- Start the HP-UX System Administration Manager (SAM) utility:
samThis starts a text-based GUI interface. Use tab and arrow keys to move around in the interface.- Select Performance Monitors > System Properties > Memory.
- Note the value for Physical Memory and click OK.
- Exit from the SAM utility.
- Set the maxfiles and maxfiles_lim parameters to at least 4096. Table 1 shows recommended values of 8000 and 8196, respectively. You must first edit the /usr/conf/master.d/core-hpux file, so the SAM utility can set values greater than 2048:
- Open the /usr/conf/master.d/core-hpux file in a text editor.
- Change the line, "*range maxfiles<=2048" to "*range maxfiles<=60000"
- Change the line, "*range maxfiles_lim<=2048" to "*range maxfiles_lim<=60000"
- Save and close the file. Old values might be stored in the /var/sam/boot.config file. Force the SAM utility to create a new boot.config file:
- Move the existing version of the /var/sam/boot.config file to another location, such as the /tmp directory.
- Start the SAM utility.
- Select Kernel Configuration > Configurable Parameters. When the Kernel Configuration window opens, a new boot.config file exists.
Alternatively, rebuild the boot.config file with the following command:
# /usr/sam/lbin/getkinfo -b
- Set new kernel parameter values:
- Start the SAM utility.
- Click Kernel Configuration > Configurable Parameters.
- For each of the parameters in the following table, perform this procedure:
- Highlight the parameter to change.
- Click Actions > Modify Configurable Parameter.
- Type the new value in the Formula/Value field.
- Click OK.
Typical kernel settings for running the application server are displayed in the following table:
Typical Kernel settings for Running the Application Server
Parameter Value dbc_max_pct 25 maxdsiz 805306358 maxdsiz 2048000000 (when running multiple profiles on the same system) maxfiles_lim 8196 (Change this one before maxfiles.) maxfiles 8000 maxssiz 8388608 maxswapchunks 8192 max_thread_proc 3000 maxuprc 512 maxusers 512 msgmap 2048 msgmax 65535 msgmax 131070 (when running multiple profiles on the same system) msgmnb 65535 msgmnb 131070 (when running multiple profiles on the same system) msgmni 50 msgseg 32767 msgssz 32 msgtql 2046 nfile 58145 nflocks 3000 ninode 60000 nkthread 7219 nproc 4116 npty 2024 nstrpty 1024 nstrtel 60 sema 1 semaem 16384 semmap 514 semmni 2048 semmns 16384 semmnu 1024 semume 200 semvmx 32767 shmmax 2147483647 shmem 1 shmmni 1024 shmseg 1024 STRMSGSZ 65535
When the application server and DB2 are on the same server, some kernel values are higher than those shown in the preceding table.
- Click Actions > Process New Kernel.
- Click Yes on the information window to confirm your decision to restart the server. Follow the on-screen instructions to restart your server and to enable the new settings.
- If you plan to redirect displays to non-HP servers before running the application server installation wizard:
- Issue the following command to obtain information about all the public locales that are accessible to your application:
# locale -a- Choose a value for your system from the output that is displayed and set the LANG environment variable to this value. Here is an example command that sets the value of LANG to en_US.iso88591:
# export LANG=en_US.iso8859
Parent topic:
HP-UX and Solaris: Kernel settings for application servers