- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maximum number of open files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2007 05:13 PM
тАО10-21-2007 05:13 PM
i m getting an error in "/var/adm/messages" file
syslog: Java: Number of open files: 4096
syslog: Java: Maximum number of allowed open files: 4096
syslog: Java: Number of open files: 4096
syslog: Java: Maximum number of allowed open files: 4096
Please give me some hints regarding the above error messages.
Regards
Mridul Dutta
Solved! Go to Solution.
- Tags:
- kernel parms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2007 05:30 PM
тАО10-21-2007 05:30 PM
SolutionBut this can not be changed dynamically and other parameters value also gets affected. To overcome these error messages we have to increase its value after consulting from application team.
Based on your OS version this change may require a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2007 05:32 PM
тАО10-21-2007 05:32 PM
Re: maximum number of open files
But this can not be changed dynamically and other parameters value also gets affected. To overcome these error messages we have to increase its value after consulting from application team.
Based on your OS version this change may require a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2007 05:57 PM
тАО10-21-2007 05:57 PM
Re: maximum number of open files
Mridul,
kmtune -q max_files
example:-
# kmtune -q maxfiles
Parameter Current Dyn Planned Module Version
===============================================================================
maxfiles 60 - 60
=> Tune maxfiles kernel parameter > 4096
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2007 12:28 AM
тАО10-22-2007 12:28 AM
Re: maximum number of open files
nfile = maximum number of files (and network sockets) opened at the same time.
maxfiles = maximum number of files that can be opened by a single process. This is a soft limit and may be extended by the process itself with a call to setrlimit() or by changing the ulimit value prior to starting the process.
maxfiles_lim = maximum number of files that can ever be opened at the same time by a single process. This is a hard limit and can only be changed by changing the kernel value. If you are running 11.11 or later, you can change this value without a reboot.
Now 4096 is a large number of files, so the first question is whether the code is working correctly. If so, then change the kernel parameter maxfiles_lim to 8192 or 16384, whatever is needed. And if your Java code was not written to dynamically change maxfiles using setrlimit, then make maxfiles = maxfiles_lim.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2013 01:54 AM
тАО05-17-2013 01:54 AM
Re: maximum number of open files
Hello
I am facing the same problem in our system where below error was coming
May 14 19:23:14 cmd1 syslog: Java: Maximum number of allowed open files: 4096
at that time maxfiles_lim value was 4096 than we changed it to 16384 but still problem not resolved , java process is still not able to take new value and still same error is coming , below is the output after change
bash-4.2# kctune | grep maxfiles
maxfiles 2048 Default
maxfiles_lim 16384 16384 Immed
bash-4.2# kcusage | grep maxfiles
maxfiles_lim 4096 / 16384
bash-4.2#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2013 02:33 AM
тАО05-17-2013 02:33 AM
Re: maximum number of open files
>maxfiles_lim value was 4096 than we changed it to 16384 but still problem
Have you logged out? What does this show?
$ /usr/bin/ulimit -Hn; /usr/bin/ulimit -Sn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2013 03:31 AM
тАО05-17-2013 03:31 AM
Re: maximum number of open files
bash-4.2# /usr/bin/ulimit -Hn
16384
bash-4.2# /usr/bin/ulimit -Sn
2048
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2013 09:53 AM
тАО05-17-2013 09:53 AM
Re: maximum number of open files
>/usr/bin/ulimit -Sn => 2048
Hmm, the strange thing is that you don't get this in your error message.
You need to set the soft limit larger before you run your app.