- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
11-19-2002 02:03 AM
11-19-2002 02:03 AM
Too many open files
We are getting 'Too many open files' exceptions when running a java application that opens sockets. Using lsof we found that the error comes when the number of open file identifier reaches 1024. This is strange because the kernel is configured to open 2048 files. The parameter that we have configured are maxfiles(2048), maxfiles_lim(2048), ncallout(2064), ulimit(nofiles 2048).
We are using HPUX11i on K380.
Any suggestions are most welcome.
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 02:24 AM
11-19-2002 02:24 AM
Re: Too many open files
You might want to take a look at the following link: http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/configuration.html
It provides information on how to configure hp-ux for use with java.
Regards,
Vincent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 02:25 AM
11-19-2002 02:25 AM
Re: Too many open files
Your nfile parameter is still set far to low - we have to run nfile around 4000+ for java applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 02:52 AM
11-19-2002 02:52 AM
Re: Too many open files
for java applications nfile kernel parameter should be high.
nfiles
Maximum number of open files
This value is usually determined by the formula:
((NPROC*2)+1000)
NPROC is usually: ((MAXUSERS*5)+64)
I feel that you need to increase the nfile value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 02:58 AM
11-19-2002 02:58 AM
Re: Too many open files
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 03:35 AM
11-19-2002 03:35 AM
Re: Too many open files
The nfile is set at 114548.
The ulimit(nofiles 2048) is the user limitation in the shell.
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 04:07 AM
11-19-2002 04:07 AM
Re: Too many open files
I have seen this situation when the user account runs out of file descriptors.
You can increase file descriptors if you have enough privileges with the ulimit command
# ulimit
-Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 04:15 AM
11-19-2002 04:15 AM
Re: Too many open files
can you look at this URL
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1/configuration.html
and also check
# ulimit -a
Regards
Niraj