- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TCP Setup: Socket() failed: Too many 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
тАО05-21-2008 10:30 AM
тАО05-21-2008 10:30 AM
TCP Setup: Socket() failed: Too many open files
Could you pls tell me what parameter I should tune to get rid of messages like this in syslog:
Server[10607]: 499259: TCP Setup: Socket() failed: Too many open files
Thanks in Advance
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2008 11:12 AM
тАО05-21-2008 11:12 AM
Re: TCP Setup: Socket() failed: Too many open files
You need to evaluate 'maxfiles' or possibly 'nfile'.
Use 'kctune' (>= 11.23) or 'kmtune' (11.11) to see your current kernel settings.
Better than a textual message would be the actual 'errno' value or mnemonic, such as ENFILE (#23) or EMFILE (#24). The later just so happens to match "too many open files" which points to 'maxfiles'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2008 08:25 PM
тАО05-21-2008 08:25 PM
Re: TCP Setup: Socket() failed: Too many open files
Sudeesh,
tune up the nfile kernel parameter.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2008 09:20 PM
тАО05-21-2008 09:20 PM
Re: TCP Setup: Socket() failed: Too many open files
to view the number of open files
#sar -v 5 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2008 09:51 PM
тАО05-21-2008 09:51 PM
Re: TCP Setup: Socket() failed: Too many open files
what are values of current nfile??
You amy check using lsof wchi process had these open connectiona and try to recycle that processes.
If this happenns again then probably you need to change the kernel paramater.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2008 11:57 PM
тАО05-21-2008 11:57 PM
Re: TCP Setup: Socket() failed: Too many open files
this could comes from a java program not closing some descriptors in it's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2008 06:48 AM
тАО05-22-2008 06:48 AM
Re: TCP Setup: Socket() failed: Too many open files
This is a socks jumpstation and lot of network connections go through this box. This is the only message I get from syslog. I dont have any error numbers. When this situation arise, socks authentication stops working. Then we switch the cluster pkg to alternate node to get working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2008 08:15 AM
тАО05-22-2008 08:15 AM
Re: TCP Setup: Socket() failed: Too many open files
maxfiles 512
nfile 12259
maxfiles_lim 1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2008 08:49 AM
тАО05-22-2008 08:49 AM
Re: TCP Setup: Socket() failed: Too many open files
Another option would be to obtain and use tusc against the socks server binaries - it will show you the actual errno's for the socket() calls being made, and will even give you (IIRC) the mnemonics.
Other thoughts:
The documentation for the socks server may explain the error message.
If "Too many open files" is a common error message from strerror (iirc) then it may be possible to reverse map that to an errno and so knowledge of whether it is nfile or maxfile/maxfile_lim being hit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2008 08:57 AM
тАО05-22-2008 08:57 AM
Re: TCP Setup: Socket() failed: Too many open files
> Rick: If "Too many open files" is a common error message from strerror (iirc) then it may be possible to reverse map that to an errno and so knowledge of whether it is nfile or maxfile/maxfile_lim being hit.
In fact, this is how I concluded that 'maxfiles' is the likely culprit:
# grep -i "too many open files" /usr/include/sys/errno.h
#define EMFILE 24 /* Too many open files */
Then, examining the mapages for 'socket(2)' yields:
" [EMFILE] The per-process descriptor table is full."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 07:22 AM
тАО05-23-2008 07:22 AM
Re: TCP Setup: Socket() failed: Too many open files
I am closely monitoring the server now with lsof and netstat o/ps.
Will assign you points shortly
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2009 08:04 AM
тАО08-16-2009 08:04 AM
Re: TCP Setup: Socket() failed: Too many open files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2009 08:08 AM
тАО08-16-2009 08:08 AM