- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file descriptor not enough
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
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
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
тАО12-22-2004 09:54 PM
тАО12-22-2004 09:54 PM
Is there any way that we can monitor this number with OS commands?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 09:58 PM
тАО12-22-2004 09:58 PM
Re: file descriptor not enough
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.73/
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 10:00 PM
тАО12-22-2004 10:00 PM
Solutionsar -v 5 5/glance -t
Will tell you that.
The no. of files opened by a process can be check with glance and with lsof tool.
If you are hitting the nfile limit, you will have to increase it. This is static value and you will have to reboot the box after kernel tuning.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2004 04:13 PM
тАО12-30-2004 04:13 PM
Re: file descriptor not enough
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2004 04:30 PM
тАО12-30-2004 04:30 PM
Re: file descriptor not enough
> If you are hitting the nfile limit, you will have to
> increase it. This is static value and you will have
> to reboot the box after kernel tuning
On HP-UX 11.23, nfiles tunable can be dynamically
set without rebooting the system (as long as you
set it to a value greater than # of currently open
files). Ofcourse, you need to reboot if you want to
set it to a # smaller than currently open files.
Vincent,
if your system has more than 1 GB of memory, the
nfiles is already set to 65536 by default (again I'm
assuming HP-UX 11.23).
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2004 10:51 AM
тАО12-31-2004 10:51 AM
Re: file descriptor not enough
So you have two choices. If you have programmers developing programs, I would leave the limit at slightly more than the Java apps require (although a program that opens thousands of files at the same time seems in need of a redesign). Or you can leave the limit at 60 (the default) and increase the limit in the Java environment with a call to setrlimit or use a shell script to start the Java apps and use the ulimit -n shell built-in to set a higher value for the Java environment.
Note also that the Java app will also complain about file handles if nfile is too small. nfile is the maximum number of files open at the same time. maxfiles is a per-process limit while nfile is for all files.
Bill Hassell, sysadmin