- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command to find number of maxfiles and maxfiles_li...
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
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
тАО02-27-2002 08:41 AM
тАО02-27-2002 08:41 AM
I am running several web servers on an HP L2000, 2 CPUs, 2Gb memory, HP-UX 11.00, 64-bit. We are using iPlanet-WebServer-Enterprise/4.1. One of the web servers running (ns-httpd) shows 40+ open files, 100+ threads. None of the other webservers have this many open files or threads.
I am also running about 4 other webservers and 3 proxy servers. On the above web server, I get the following message in the netscape error log:
"failure (thepid): Error accepting connection -5974, oserr=233 (Insufficient resources)".
We have talked to tech reps at iPlanet. They stated the error might indicate a "lack of file descriptors". As far as I know, this relates to maxfiles and maxfiles_lim.
So...how do I see what this current usage is of these kernel params. I know that I am NOT running out of resources for nproc, nfile, nflocks, ninode. Also, my max_thread_proc = 1024 and nkthreads = 2048. As far as I can tell, these parameters seem fine.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2002 08:57 AM
тАО02-27-2002 08:57 AM
Re: Command to find number of maxfiles and maxfiles_lim currently being used
I would set maxfile quite large (>100)... just to be sure its not the same uid that is being connected several times and touches the limit...
For machine with java these are values I usually put:
maxfiles 2048
maxfiles_lim 2176
I wonder if its not more
shmmax max_thread_proc maxdsiz
maxssiz maxtsiz
parameters giving you trouble (lack of resource)
Just thoughts
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2002 08:58 AM
тАО02-27-2002 08:58 AM
Re: Command to find number of maxfiles and maxfiles_lim currently being used
If you have lsof installed (and you should install it, if you don't) you can do a lsof and restruict by process or process group to list the open files and that is what the maxfiles_lim refers to.
You can also use Glance->Reports->Process List->Process Open Files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2002 09:14 AM
тАО02-27-2002 09:14 AM
SolutionHowever, the error you've given does not indicate a problem with the number of open files - the iPlanet reps are wrong. The errno value given in the log of 233 is ENOBUFS or "no buffer space available". Note that this does not necessarily mean you are out of buffer space, but it occurs when the client resets the TCP connection before the servers accept() call is complete - something which can happen frequently especially when dealing with HTTP and browser clients. You can read the accept(2) man page to confirm the causes of ENOBUFS. There have been a couple of other threads on this recently.
As such, these messages can be safely ignored as they do not indicate any serious problem (as long as the application is not exiting after reoprting the error).
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2002 11:17 AM
тАО02-27-2002 11:17 AM
Re: Command to find number of maxfiles and maxfiles_lim currently being used
My maxfiles and maxfiles_lim is 2048. Shmmax = 201326592, max_thread_proc = 1024, maxdsiz = 268435456, maxssiz = 838608, maxtsiz = 201326592. Of hand, I would say these look good to me. Any suggestions?
Side note, NO other webserver error logs are giving me "Insufficient resource" errors. Also, if I am truly reaching a kernel resource limit, wouldn't I expect to see error messages in syslog or via dmesg?
I ran lsof -p
I did a man on accept, and as the last response states, ENOBUFS says "No buffer space available. The accept() cannot complete. The queued socket connect request is aborted". Now I haven't heard if the application is exiting or not (no user complaints), but, I don't really like just ignoring these errors (and BTW, excellent call...why didn't the iPlanet reps know this???). Some of the "Performance Tuning for iPlanet 4.0 server on HP-UX 11.00" states changing some of the TCP/IP parameters: tcp_time_wait_interval, tcp_conn_req_max, tcp_ip_abort_interval, tcp_keepalive_interval, tcp_rexmit_interval_initial, tcp_rexmit_interval_max, tcp_rexmit_interval_min, tcp_xmit_hiwater_def, tcp_recv_hiwater_def. I haven't applied any of these suggested tuned parameters. Should I? If so, which one would you recommend that might apply to the ENOBUFS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2002 11:25 AM
тАО02-27-2002 11:25 AM
Re: Command to find number of maxfiles and maxfiles_lim currently being used
If you looked at the number of files opened in glance, did you do it per EACH process, because the "Glance->Reports->Process List->Process Open Files" is only good for the process highlighted.
Also, socket opens are file opens and count towards the number of files opened.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2002 02:41 AM
тАО02-28-2002 02:41 AM
Re: Command to find number of maxfiles and maxfiles_lim currently being used
Eg if a user hits the 'stop' button on a browser while the server is in the process of accept()ing the connection, the ENOBUFS error is returned.
So you really do have to ignore them! Our application only reports them if 10 in a row are received, otherwise they are not even logged.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2002 06:22 AM
тАО02-28-2002 06:22 AM
Re: Command to find number of maxfiles and maxfiles_lim currently being used
The kernel parameter nfile is indeed a resource and limits the number of open files for the entire system. Use Glance or sar -v 1 to look at the nfile value to see if it is approaching 90% utilized. If so, then this is a true system-wide limitation and nfile should be increased accordingly.
Bill Hassell, sysadmin