Hi all
I have a request from user to change the file descriptors limit to 8192. The current setting are:
root@xxxxx:(wmdev)> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096
root@xxxxx:(wmdev)>
I have tried to change it with command
ulimit -n 8192
but when i logged off the server the setting went back to 4096
Is there anyway I can make this change permanent? I know that I can edit the user's .profile or /etc/profile but I am not sure how and what I need to add to the profile. This is the user's .profile
# @(#)B11.23_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
HISTSIZE=1000
export HISTSIZE
# Set Library paths
export SHLIB_PATH=/u01/app/webMethods_dev/IntegrationServer/lib
# Set Java Path
JAVA_HOME=/u01/app/webMethods_dev/jvm/hp142/jre/bin
mesg -y
resize > /dev/null
Also, you can see the OS version I am using-HP UX 11.23
Please help, I need to sort this out today..thank you
---------- Post updated at 05:58 PM ---------- Previous update was at 05:34 PM ----------
Thanks for viewing,
I'm answering my own questions, added the line
ulimit -n 8192
to the user's .profile:
#set number of open files
ulimit -n 8192
".profile" 43 lines, 709 characters
Lets see if this works
---------- Post updated at 06:16 PM ---------- Previous update was at 05:58 PM ----------
that didn't work:
ulimit: The specified value exceeds the user's allowable limit.