HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with Socket.open( ) at 105 req/sec.
Operating System - HP-UX
1834394
Members
1706
Online
110066
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
02-11-2002 07:53 PM
02-11-2002 07:53 PM
Problem with Socket.open( ) at 105 req/sec.
Hi,
Am doing a test in which I try to retrieve content from my web server (iplanet 4.1) at the request rate of 105 req/sec. And I have nearly 50 threads for doing this operation.
At times I see that the Socket.open() takes a very large time (more than 20 secs!!!).
Any pointers as to why this should happen ?
Regards,
M Meenakshi Sundaram
Am doing a test in which I try to retrieve content from my web server (iplanet 4.1) at the request rate of 105 req/sec. And I have nearly 50 threads for doing this operation.
At times I see that the Socket.open() takes a very large time (more than 20 secs!!!).
Any pointers as to why this should happen ?
Regards,
M Meenakshi Sundaram
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 06:31 PM
02-12-2002 06:31 PM
Re: Problem with Socket.open( ) at 105 req/sec.
when a TCP connection is properly closed, one side is required to remain in TIME_WAIT state for a period of time. under HP-UX that is 60 seconds and for production, I would probably not make it any lower.
a TCP connection is "named" by the four-tuple of local/remote IP address and local/remote port number.
there can be delays if an attempt is made to establish a new connection while an old connection by the same name is in TIME_WAIT.
depending on the rev of UX you are running, the default anonymous port number range is either 5000 ports or 16384 ports.
105 connections per second, with a TIME_WAIT of 60 seconds would be inthe range of 6000 simultaneous TIME_WAITs, so I'm guessing that you are running from a 10.20 system.
the truely proper thing to do is to have the app specify port numbers itself via the bind() call. that is what SPECweb96 and SPECweb99 code does. that gives you upwards of 60K port numbers per IP address, which means you could do 1000 connections per second per IP pair before possibley running into TIME_WAIT reuse.
I believe that Java may not expose that to the application writer :(
That means you have to tweak the anonymous port range. under 10.20 that would be via nettune and tcp_high_port_enable (iirc). under 11, that would be ndd and tcp_smallest_anon_port.
i would _NOT_ suggest forcing abortive closes of the TCP connection, nor woudl I suggest shortening the TIME_WAIT state.
a TCP connection is "named" by the four-tuple of local/remote IP address and local/remote port number.
there can be delays if an attempt is made to establish a new connection while an old connection by the same name is in TIME_WAIT.
depending on the rev of UX you are running, the default anonymous port number range is either 5000 ports or 16384 ports.
105 connections per second, with a TIME_WAIT of 60 seconds would be inthe range of 6000 simultaneous TIME_WAITs, so I'm guessing that you are running from a 10.20 system.
the truely proper thing to do is to have the app specify port numbers itself via the bind() call. that is what SPECweb96 and SPECweb99 code does. that gives you upwards of 60K port numbers per IP address, which means you could do 1000 connections per second per IP pair before possibley running into TIME_WAIT reuse.
I believe that Java may not expose that to the application writer :(
That means you have to tweak the anonymous port range. under 10.20 that would be via nettune and tcp_high_port_enable (iirc). under 11, that would be ndd and tcp_smallest_anon_port.
i would _NOT_ suggest forcing abortive closes of the TCP connection, nor woudl I suggest shortening the TIME_WAIT state.
there is no rest for the wicked yet the virtuous have no pillows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 07:05 AM
06-13-2002 07:05 AM
Re: Problem with Socket.open( ) at 105 req/sec.
Rick wrote:
"a TCP connection is "named" by the four-tuple of local/remote IP address and local/remote port number. there can be delays if an attempt is made to establish a new connection while an old connection by the same name is in TIME_WAIT.
I believe that Java may not expose that to the application writer :( "
So if we have an application that is directed to a fixed IP address and port number, what can we do to handle high volumes?
Thanks,
Art
"a TCP connection is "named" by the four-tuple of local/remote IP address and local/remote port number. there can be delays if an attempt is made to establish a new connection while an old connection by the same name is in TIME_WAIT.
I believe that Java may not expose that to the application writer :( "
So if we have an application that is directed to a fixed IP address and port number, what can we do to handle high volumes?
Thanks,
Art
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