- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: U_STACK_TRACE: 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
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
01-20-2004 08:44 AM
01-20-2004 08:44 AM
While running some cobol/app engine programs and I'm getting the following error: U_STACK_TRACE: Too many open files
I've checked my kernel and these are the values of what I think it's files related:
maxfiles=60
maxfiles_lim=1042
nfiles=7142
Could one of these being set too low?
Please help!
Thanks,
Remy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 08:50 AM
01-20-2004 08:50 AM
SolutionYou can check out nfile usage by
sar -v 2 20
Look at the last column that says file-sz. If the nominator (usage) is close to denominator (limit), then you will need to consider increasing that value. nfile is the total number of files you can open on the system.
If the above is not true, then there is a good chance that maxfiles and|or maxfiles_lim have overflown. maxfiles is softlimit and it can be changed upto maxfiles_lim . These are per process limits.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 08:54 AM
01-20-2004 08:54 AM
Re: U_STACK_TRACE: Too many open files
Thanks for the fast reply.
I'm getting this for the command you recommended:
16:52:59 N/A N/A 433/4116 0 2136/4540 0 3544/7422 0
and it looks like i'm only using half of the total.
Could it be something else?
Thanks again,
Remy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 08:57 AM
01-20-2004 08:57 AM
Re: U_STACK_TRACE: Too many open files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 09:04 AM
01-20-2004 09:04 AM
Re: U_STACK_TRACE: Too many open files
Is there a limit I should stay within or can I just make up a high number to avoid this from happening again?
Thanks again,
Remy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 09:05 AM
01-20-2004 09:05 AM
Re: U_STACK_TRACE: Too many open files
Then as I mentioned in the next paragraph, maxfiles (or maxfiles_lim if you are already setting your maxfiles to match maxfiles_lim). If you haven't done anything do the following.
$sh
$ulimit -a
(look at nofiles value)
$ulimit -n 1042
$ulimit -a
(verify nofiles value)
If you start the processes from this shell, all the child processes will have 1042 limit. You can put it in your .profile so that everytime you login, you will get the new value.
If this is not enough, increase the kernel parameters. Set maxfiles to 1024 and maxfiles_lim to 2048 though SAM. You will need to reboot the box.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 09:17 AM
01-20-2004 09:17 AM
Re: U_STACK_TRACE: Too many open files
Do I have to do it for all users or can I do it for root and it will export out to all users?
Thanks again,
Remy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 09:22 AM
01-20-2004 09:22 AM
Re: U_STACK_TRACE: Too many open files
It's for the user that is running the cobol/app engine programs. All the processes owned by that user will have the new "maxfiles" limit for the open files.
If you increase maxfiles *kernel* parameter which needs a reboot, then they don't have to change it at their end which is what usually done.
If you have 11i system, you can incrase maxfiles_lim (the hardlimit) dynamically. But the users still have to execute ulimit command to increase their maxfiles parameter.
-Sri