sc>showsc
sc>setsc if_emailalerts false
sc>showsc
Thursday, April 22, 2010
Friday, April 9, 2010
ulimit Error - ulimit: open files: cannot modify limit
-> Login to the server and check parameters by using plimit command
bash-3.00# plimit $$
25169: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 1024 1024
vmemory(kbytes) unlimited unlimited
It means you can not change value more than 1024. You can change max value by using
bash-3.00# plimit -n 10000 $$
Now it is set to 10000
bash-3.00# plimit $$
25505: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 10000 10000
vmemory(kbytes) unlimited unlimited
Now you can ulimit to set 10000
# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 10000
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
bash-3.00# plimit $$
25169: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 1024 1024
vmemory(kbytes) unlimited unlimited
It means you can not change value more than 1024. You can change max value by using
bash-3.00# plimit -n 10000 $$
Now it is set to 10000
bash-3.00# plimit $$
25505: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 10000 10000
vmemory(kbytes) unlimited unlimited
Now you can ulimit to set 10000
# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 10000
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
Subscribe to:
Posts (Atom)
Welcome to the UNIX world