- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Determine number of open files and/or open fil...
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-12-2004 02:03 AM
08-12-2004 02:03 AM
Determine number of open files and/or open file locks
I'm trying to debug some program running on HP-UX 11i. In the application
log file, I got a lot of these messages:
*** warning: fork: no more processes - retrying
Well, it seems that something hit a limit here and I'm thinking that
it might be the number of open files (nfile) and/or the number of open
file locks (nflocks).
Is there some way, that I can find out how many open files there are
in the system and how many open file locks there are?
Thanks a lot,
Alexander Skwar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:06 AM
08-12-2004 02:06 AM
Re: Determine number of open files and/or open file locks
sar -v 1 5
To get the number of open files (look under the file-sz column).
You will have to install Glance (trial version on the application CD's is free) to look at the number of locks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:12 AM
08-12-2004 02:12 AM
Re: Determine number of open files and/or open file locks
check with SAM, or in /stand/system, and looks for parameters
maxuprc - maximum number of process per user
nflocks - number of file locks
nproc - maximum number of process - systemwide
You may need to adapt them.
Check current usage with
"sar -v 5 10"
Do not take into account ninode, it's just a cache and it will almost always be at 100%.
Regards,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:15 AM
08-12-2004 02:15 AM
Re: Determine number of open files and/or open file locks
glance -t
sar -v 5 5
For nflocks
lsof | awk 'match("NrRwWuUx",substr($0,31,1))'|wc -l
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:15 AM
08-12-2004 02:15 AM
Re: Determine number of open files and/or open file locks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:21 AM
08-12-2004 02:21 AM
Re: Determine number of open files and/or open file locks
your is setting errno 11 - EAGAIN. That condition can be set for two reason and is one of the few examples of a system call failing and it is not possible to pinpoint the cause. You could be hotting nproc (system-wide process limit) or maxuprc (maximum number of processes for a sinfle users). Both set the same errno value.
Man 2 fork for more details.
sar -v will tell you the number of system-wide open files and I'm betting that nproc is too low.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:21 AM
08-12-2004 02:21 AM
Re: Determine number of open files and/or open file locks
yours is setting errno 11 - EAGAIN. That condition can be set for two reason and is one of the few examples of a system call failing and it is not possible to pinpoint the cause. You could be hotting nproc (system-wide process limit) or maxuprc (maximum number of processes for a sinfle users). Both set the same errno value.
Man 2 fork for more details.
sar -v will tell you the number of system-wide open files and I'm betting that nproc is too low.