- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to monitor maxfiles parameter on HP-UX 11....
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
08-30-2005 12:13 AM
08-30-2005 12:13 AM
How to monitor maxfiles parameter on HP-UX 11.0
We are experiencing a problem whereby we are seeing 'too many open files' message in /var/adm/syslog/syslog.log
We have spoken to our software application company and evidently the problem is being caused by the client version that we are using being incompatible with the version of RPC and thus is chews up our maxfiles.
The have said that it is a known problem between the client version and HP-UX 11.0 and they have informed us of a couple of OS patches that we are looking in to at the moment.
maxfiles is set to 2048
we are running HP-UX 11.0
In the mean time, does anyone know how we can monitor the maxfiles so we can predict when it is about to blow please ?
Many thanks,
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 12:17 AM
08-30-2005 12:17 AM
Re: How to monitor maxfiles parameter on HP-UX 11.0
Check this thread.
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=/cm/QuestionAnswer/1,,0xec733fd7f72ad611abd50090277a778c,00.html&admit=716493758+1067866320167+28353475
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 12:21 AM
08-30-2005 12:21 AM
Re: How to monitor maxfiles parameter on HP-UX 11.0
If you have Glance, it will monitor nfile using the System Tables Report, but I don't know of a way to monitor maxfiles.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 12:31 AM
08-30-2005 12:31 AM
Re: How to monitor maxfiles parameter on HP-UX 11.0
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 02:39 AM
08-30-2005 02:39 AM
Re: How to monitor maxfiles parameter on HP-UX 11.0
Of course, there is a another question: why does this program need 2048 files opened at the same time???? Now if there is a valid reason, DON'T set maxfiles to 2048. Instead, set maxfiles to 60 or so, and then (because the program won't do this) use the ulimit -n command to set the required number of files for this program. Put this into a startup script for the program. NOTE: ulimit -n is only available in HP-UX POSIX shell. maxfiles is a soft limit and can be modified with setrlimit() or ulimit -n.
Now if the program needs more than 2048 files (again, ask why), then change maxfiles_lim which is a hard limit for all programs. If the program needs 6000 files open at the same time, then set maxfiles_lim=6000 and use ulimit -n to set the maxfiles value for the program.
Now all of this assumes that you are NOT running out of system-wide open files. This is controlled by nfile and can be seen with sar -v 1. If nfile is too small, limiting maxfiles won't help because the program will simply crash. nfile has no practical bounds, so if it is set to 4000, then you can't run 2 copies of a programs that opens 2048 files. Note also that network ports are also counted in the file list. If you need to run 100 copies of this program, then nfile needs to be set to more than 204,800 perhaps 220,000. syslog.log will tell you if you've exceeded the kernel's file table with messages: file: table is full
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 07:46 PM
08-30-2005 07:46 PM
Re: How to monitor maxfiles parameter on HP-UX 11.0
After speaking to our vendors for the application that we run, they have said that it is a compatibility between the client software version and the server software causing open files to be left open, thus ramping up the maxfiles and then causing us to have to stop/restart the application.
The have said that it is a known problem and is addressed by patches PHNE_23833 & PKNE_23456 which will allow these files to be released as previously occured.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 03:27 AM
08-31-2005 03:27 AM
Re: How to monitor maxfiles parameter on HP-UX 11.0
If you write a script that uses sar -v you can monitor the number of files open and the kernal parm associated. I have several that I use if you are interested send me an email and I will send you a copy. linnbi01@unisourcelink.com
William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 05:38 AM
08-31-2005 05:38 AM
Re: How to monitor maxfiles parameter on HP-UX 11.0
check ,
1.
# sar -v 5 5
and check for the parameter "file-sz" , and it will tell how many file you can open ,and current , and its nothing but nfile kernel parameter. And you can monitor it ,
2.
Also check
# glance -t [ Will show system table usage.]
hope this will help ..
Cheers ,
Raj.