- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Too Many Open Files error message
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
тАО03-10-2009 12:51 AM
тАО03-10-2009 12:51 AM
Too Many Open Files error message
I received some error message at syslog.log file.
sshd[6409]: error: openpty: Too many open files
sshd[6412]: error: session_pty_req: session 2 alloc failed
sshd[6412]: error: session_pty_req: session 1 alloc failed
sshd[6412]: error: session_pty_req: session 3 alloc failed
sshd[6409]: error: chown 0 0 failed: No such file or directory
sshd[6409]: error: chmod 0666 failed: No such file or directory
sshd[6409]: error: openpty: Too many open files
above message repeats 2 times
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:58 AM
тАО03-10-2009 12:58 AM
Re: Too Many Open Files error message
This would indicate a need to change some kernel parameters:
nfile
maxuprc
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:00 AM
тАО03-10-2009 01:00 AM
Re: Too Many Open Files error message
what OS HPUX version.?
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:14 AM
тАО03-10-2009 01:14 AM
Re: Too Many Open Files error message
I recommend sam kernel configuration configurable parameters for those who are new with the OS. Sam is replaced with SMH in the 11.31 OS.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:18 AM
тАО03-10-2009 01:18 AM
Re: Too Many Open Files error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:44 AM
тАО03-10-2009 01:44 AM
Re: Too Many Open Files error message
# sar -v 1 5
This will let us know if the number of files are getting filled, and if the kernel parameters needs to be increased.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:45 AM
тАО03-10-2009 01:45 AM
Re: Too Many Open Files error message
Then you have to see which process is opening so many files(if you have lsof it can help you a lot in that).
And if this issue come after any upgrade then you have have to incrase above suggested parameter inclusing the need of that new application.
Don go and change kernel parameter at one instance you gotta see why that happened.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 05:08 PM
тАО03-10-2009 05:08 PM
Re: Too Many Open Files error message
I saw maxuprc = 3780 by smh,but I can not find this parameter nfile. My os is HP-UX 11.31.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 05:09 PM
тАО03-10-2009 05:09 PM
Re: Too Many Open Files error message
HP-UX pmsdb1 B.11.31 U ia64 03/11/09
09:08:32 text-sz ov proc-sz ov inod-sz ov file-sz ov
09:08:33 N/A N/A 502/4200 0 1484/35648 0 8480/2147483647 0
09:08:34 N/A N/A 505/4200 0 1488/35648 0 8482/2147483647 0
09:08:35 N/A N/A 502/4200 0 1495/35648 0 8480/2147483647 0
09:08:36 N/A N/A 503/4200 0 1484/35648 0 8483/2147483647 0
09:08:37 N/A N/A 503/4200 0 1485/35648 0 8484/2147483647 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 07:05 PM
тАО03-10-2009 07:05 PM
Re: Too Many Open Files error message
nfile is no longer there on 11.31, so don't worry about it. That was the case where there were too many open files for ALL of the processes, not just the per process limit maxfiles_lim.
http://docs.hp.com/en/B2355-60130/nfile.5.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 07:08 PM
тАО03-10-2009 07:08 PM
Re: Too Many Open Files error message
pfiles 6409
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 07:30 PM
тАО03-10-2009 07:30 PM
Re: Too Many Open Files error message
You can check this from 'glance'.
Go to glance and press 't' for the system tables report.
If there are any inactive sessions, kill them.
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 07:06 PM
тАО03-16-2009 07:06 PM
Re: Too Many Open Files error message
I saw a very large nfile(2147483647) by glance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 07:07 PM
тАО03-16-2009 07:07 PM
Re: Too Many Open Files error message
--------------------------------------------------------------------------------
Proc Table (nproc) 4200 533 13 13
File Table (nfile) 2147483647 6371 0 0
Shared Mem Table (shmmni) 512 16 3 3
Message Table (msgmni) 4200 2 0 0
Semaphore Table (semmni) 8400 30 0 0
File Locks (nflocks) 4200 81 2 2
Pseudo Terminals (npty) 60 0 0 0
Buffer Headers (nbuf) na 11936 na na
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 08:34 PM
тАО03-16-2009 08:34 PM
Re: Too Many Open Files error message
What is the value of maxfiles_lim and have you tried pfiles(1)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 10:20 PM
тАО03-16-2009 10:20 PM
Re: Too Many Open Files error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 10:27 PM
тАО03-16-2009 10:27 PM
Re: Too Many Open Files error message
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 11:38 PM
тАО03-16-2009 11:38 PM
Re: Too Many Open Files error message
maxfiles=2048
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 11:49 PM
тАО03-16-2009 11:49 PM
Re: Too Many Open Files error message
# maxfile = 2048
# maxfiles_lim =4096
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 11:51 PM
тАО03-16-2009 11:51 PM
Re: Too Many Open Files error message
Thanks,
Johnson