HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX java 1.4.2 NIO too many open files
Operating System - HP-UX
1830895
Members
2641
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-29-2005 02:50 AM
06-29-2005 02:50 AM
HPUX java 1.4.2 NIO too many open files
I've a program written in java running on HPUX 11i with SDK 1.4.2_08. It uses NIO.
The program is basically a gateway with a socket interface to query an ejb object.
Under heavy load it starts to get problems with the IO and reports "too many open files".
I've noticed a large number of socket in FIN_WAIT_2 state on the application side and CLOSE_WAIT on the client side.
I've tried to have the number of open files reduced enabling a timeout for FIN_WAIT_2 using ndd.
This worked at the "netstat -an" level, but I still get the problem.
I've checked with glance what happens inside the process and I've found more than 2000 lines like this one:
2k socket rd/wr 1 59
Anyone can help me?
Thanks
Marco
The program is basically a gateway with a socket interface to query an ejb object.
Under heavy load it starts to get problems with the IO and reports "too many open files".
I've noticed a large number of socket in FIN_WAIT_2 state on the application side and CLOSE_WAIT on the client side.
I've tried to have the number of open files reduced enabling a timeout for FIN_WAIT_2 using ndd.
This worked at the "netstat -an" level, but I still get the problem.
I've checked with glance what happens inside the process and I've found more than 2000 lines like this one:
2k
Anyone can help me?
Thanks
Marco
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2005 03:59 AM
06-29-2005 03:59 AM
Re: HPUX java 1.4.2 NIO too many open files
I'll add that I noticed the following behavior:
According to Glance sockets are generated as:
nnn inet,tcp socket rd/wr
Then when they're closed they go in FIN_WAIT_2 from ESTABLISHED.
After 90s (the configured timeout) they disappear from the "netstat -an" radar and become, again according to glance, like this:
2k socket rd/wr 1 59
And are never released.
Thanks
Marco
According to Glance sockets are generated as:
nnn inet,tcp socket rd/wr
Then when they're closed they go in FIN_WAIT_2 from ESTABLISHED.
After 90s (the configured timeout) they disappear from the "netstat -an" radar and become, again according to glance, like this:
2k
And are never released.
Thanks
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2005 06:43 AM
06-29-2005 06:43 AM
Re: HPUX java 1.4.2 NIO too many open files
Additional information:
Using java 1.5
[version]
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-_24_nov_2004_16_29)
Java HotSpot(TM) Server VM (build 1.5.0 FCS (JS B64) jinteg:11.24.04-15:51 PA2.0 (aCC_AP), mixed mode)
[/version]
The problem remains exactly the same.
Thanks
Marco
Using java 1.5
[version]
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-_24_nov_2004_16_29)
Java HotSpot(TM) Server VM (build 1.5.0 FCS (JS B64) jinteg:11.24.04-15:51 PA2.0 (aCC_AP), mixed mode)
[/version]
The problem remains exactly the same.
Thanks
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2005 07:55 AM
06-29-2005 07:55 AM
Re: HPUX java 1.4.2 NIO too many open files
"too many open files" does not relate to a system socket in any state (waiting or not). It means that your application has many open file descriptors (sockets).
Try to find out *when* your leak handles/descriptors. (It's like memory leak fixing.)
Take a snapshot of fuser/lsof for your process. Connect and disconnect. Take new snapshot. Compare snapshots. Check file handles open.
Currently, that's all.
Try to find out *when* your leak handles/descriptors. (It's like memory leak fixing.)
Take a snapshot of fuser/lsof for your process. Connect and disconnect. Take new snapshot. Compare snapshots. Check file handles open.
Currently, that's all.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP