- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- see how many open files (maxfiles)
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
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
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-05-2005 11:28 PM
10-05-2005 11:28 PM
see how many open files (maxfiles)
I'd like to monitor the real number of open files in order to be able to set a decent value for my maxfiles and maxfiles_lim parameters.
Thanks in advance
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 11:31 PM
10-05-2005 11:31 PM
Re: see how many open files (maxfiles)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 11:33 PM
10-05-2005 11:33 PM
Re: see how many open files (maxfiles)
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.76/
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.76/man.html
For using lsof, check this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=666769
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 11:37 PM
10-05-2005 11:37 PM
Re: see how many open files (maxfiles)
lsof combined with fuser will give you the perfect result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 11:41 PM
10-05-2005 11:41 PM
Re: see how many open files (maxfiles)
sar -v 1,2
To see specifically then get lsof tool to monitor it.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 01:24 AM
10-06-2005 01:24 AM
Re: see how many open files (maxfiles)
It is common for a vendor to state: maxfiles=maxfiles_lim=2000 which defeats the purpose of maxfiles. maxfiles is designed to limit casual programs. After all, why is a program opening so many files in the first place? Now if you don't have a programmer, you can still leave maxfiles=200 and change the maxfiles value for a specific program (same as setrlim) with:
ulimit -Sn 2000
Put this into a startup script and this specific program will now have maxfiles set to 2000. This is the preferred way to handle programs that need massive numbers of files open at the same time.
Bill Hassell, sysadmin