Apache 1.3.x Web Server Performance Tuning

Apache 1.3.x Web Server Performance Tuning on HP-UX 11.x (Rev C, 10/23/01) Kernel Parameters Parameter Default Value Recommended Value maxusers 32 128 nproc 20+8*MAXUSERS 20+128*MAXUSERS maxuprc 75 8192 nkthread ((NPROC*7)/4)+16 8192 max_thread_proc 64 1024 maxdsiz 0x04000000 0x10000000 maxfiles 60 2048 maxfiles_lim 1024 2048 nflocks 200 16384 semmns 128 512 semmni 64 256 ninode ((NPROC+16+MAXUSERS)+32+(2*NPTY)) 2((NPROC+16+MAXUSERS)+32+(2*NPTY)) […]

lbolt

PROBLEM I am running HP-UX 11.0 on an N4000 server.  The syslog.log file contains the following error line: vmunix: SCSI:  Request Timeout — lbolt: 1406090869, dev: 1f026000 How do I determine which device generates the lbolt/timeout errors? CONFIGURATION Operating System – HP-UX Version – 11.0 Hardware System – HP9000 Series – N4000 Subsystem – System […]

Kill Pid

#!/bin/ksh ## List all running processes and grep for the “program_name” ## make sure to ignore the grep process that is running (grep -v grep) ## The process id is the second column in the ps -ef statement pid_var=`ps -ef | grep program_name | grep -v grep | awk ‘{print $2}’` kill -9 $pid_var ## […]

ftp access

Use this procedure to configure the new ftpd: Note: A user will not have the ability to travel anywhere outside of his home directory on the system.  Setting up a bogus shell with exit 0 as the contents will cause the connection of a user to be immediately terminated if the user attempts to telnet […]

history command

In your .profile put in the following. YOu can have your HISTSIZE as large as you want. It will be put in your HISTFILE /.sh_history # Set command history HISTFILE=/.sh_history export HISTFILE HISTSIZE=2000 export HISTSIZE

device busy

for the filesystem you want to unmount, do fuser -cu /mount_pount this will list the users currently using the mount point. If you cannot logout those users, do fuser -ck /mount_point Sometimes processes do not show under ‘fuser /filesystem Try using ‘fuser /dev/vgXX/lvolX’ Best thing is to use the logical volume name instead of the […]

which boot disk

to see which boot disk you booted from: echo ‘boot_string/s’ | adb /stand/vmunix /dev/mem setboot

unlock id

to fix the problem you can run /usr/lbin/modprpw -k -l root, but follow the above suggestions to find out why the account was disabled /usr/lbin/modprpw -k -l userid

memory

1) Log-on as manager.sys 2) :cstm 3) cstm>map (looks toward th end) Dev Last Last Op Num Path Product Active Tool Status === ===================== 1 system system () …() 31 8 MEMORY (9b) 32 160 CPU (5d6) 4) cstm>sel dev 31 5) cstm>info 6) cstm>infolog Or echo “selclass qualifier memory;info;wait;infolog” | /usr/sbin/cstm echo “selclass qualifier […]

HANDY ONE-LINERS FOR AWK

HANDY ONE-LINERS FOR AWK 22 July 2003 compiled by Eric Pement version 0.22 Latest version of this file is usually at: http://www.student.northpark.edu/pemente/awk/awk1line.txt USAGE: Unix: awk ‘/pattern/ {print “$1”}’ # standard Unix shells DOS/Win: awk ‘/pattern/ {print “$1”}’ # okay for DJGPP compiled awk “/pattern/ {print “$1″}” # required for Mingw32 Most of my experience comes […]