Main Topics
Browse All TopicsI have tried editing the limits.conf file to change the ulimit value for the linux box. Since i got the warning in logs "INFO | jvm 1 | 2008/10/02 19:58:49 | java.io.IOException: Too many open files"
vi /etc/security/limits.conf
# End of file
* soft nofile 1024
* hard nofile 4096
and rebooted the system.But after the reboot also the ulimit value didnt changed and its still 1024
[root@sys1 ~]# ulimit -n
1024
[root@sys1 ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 36864
virtual memory (kbytes, -v) unlimited
[root@sys1 ~]# uname -a
Linux sys1.domain.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux
[root@sys1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant)
I have to increase the ulimit value.The question is why the ulimit value did not updated after the reboot?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok. Now how the ulimit to the user and ulimit to the operating system are related. Actually I want to increase the ulimit value for one particular application which is running under the user name user1. As i told before currently it is
vi /etc/security/limits.conf
# End of file
* soft nofile 1024
* hard nofile 4096
[root@sys1 ~]# ulimit -n
1024
1. How to find the current opened files by the operating system and current opened files by the user?
2. Is there any limitations like user ulimit should be less than the operating system ulimit?
Hi,
to have the limit changed for user1 (all applications),
enter in /etc/security/limits.conf
*
* hard nofile 4096
user1 soft nofile 4096
As I said, you must change the soft limit !
The hard limit is the value up to which a user may increase the limit by using the 'ulimit' command.
To change only for one application, you could modify the start script of that application (if one exists) by adding
ulimit -n 4096
There is no operating system 'ulimit' beyond what's defined in limits.conf.
There is a system wide maximum number of open files permitted (that's not an ulimit!)
To change, add
fs.file-max = 65535
(or the like) in /etc/sysctl.conf
Reboot, or load new values from the sysctl.conf file by issuing
sysctl -p /etc/sysctl.conf
wmp
Business Accounts
Answer for Membership
by: woolmilkporcPosted on 2008-11-01 at 05:12:34ID: 22856458
Hi,
for a change to take effect immediately after logon (or reboot), you must change the soft limit in limits.conf!
The hard limit is the value up to which a user may increase the limit by using the 'ulimit' command.
wmp