- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Java program always hang.. message "Too many open ...
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
04-19-2005 04:28 PM
04-19-2005 04:28 PM
Java program always hang.. message "Too many open files" appears sometime.
perform command lsof will appear following error message.
java 21929 mms31 53u sock 0,0 15544497 can't
identify protocol
java 21929 mms31 54u sock 0,0 15544498 can't
identify protocol
java 21929 mms31 55u sock 0,0 15544522 can't
identify protocol
java 21929 mms31 56u sock 0,0 15544523 can't
identify protocol
java 21929 mms31 57u sock 0,0 15544562 can't
identify protocol
........
my platform:
Redhat enterprice AS3 update 4 x86_64
j2sdk1.4.2_03
CPU Intel(R) Xeon(TM) CPU 2.80GHz *2
MEMORY 2G
Thanks.
NiCK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 04:35 PM
04-19-2005 04:35 PM
Re: Java program always hang.. message "Too many open files" appears sometime.
If I'm right, adding memory will do no good.
Java could stand some patching though.
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
04-19-2005 05:54 PM
04-19-2005 05:54 PM
Re: Java program always hang.. message "Too many open files" appears sometime.
cat /proc/sys/fs/file-max
if the value is low increase the number.
echo 10000 > /proc/sys/fs/file-max
This will change the kernel limit.No need to reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 10:19 PM
04-19-2005 10:19 PM
Re: Java program always hang.. message "Too many open files" appears sometime.
209689
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 03:42 AM
04-20-2005 03:42 AM
Re: Java program always hang.. message "Too many open files" appears sometime.
If you use bash you can check the number of open files allowed by the shell with the following command:
ulimit -f
or all limits with this:
ulimit -a
ulimit is built into bash. All its documentation is in the bash man page.
man bash then search for ulimit.
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 03:43 AM
04-20-2005 03:43 AM
Re: Java program always hang.. message "Too many open files" appears sometime.
snipped from the man page:
-n The maximum number of open file descriptors
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 12:24 AM
04-21-2005 12:24 AM
Re: Java program always hang.. message "Too many open files" appears sometime.
Anything else?
Now,I upgrade jdk from 1.4.2-03 to 1.4.2-08 to have a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:22 AM
04-22-2005 08:22 AM
Re: Java program always hang.. message "Too many open files" appears sometime.
I remember having trouble with a Analog CAD tool that used this really clunky java GUI and it would spawn a hundred garbage file descriptors anytime you clicked on a icon so eventually it would tank with too many open files.
If it still doesn't work then it could be your /proc/sys/fs files like other people have said:
file-max
inode-max ( if your system has an inode-max file )
--Dave