- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendq size
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-22-2002 02:26 AM
тАО10-22-2002 02:26 AM
Hello
Can anybody help to find the maximum size of Send-Q that it can grow before closing the socket connection?
This problem (dropping socket connection) is occurring in hp-ux 11.00 with Java based Application (Socket programming)
Thanks
Manoj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 02:46 AM
тАО10-22-2002 02:46 AM
Re: sendq size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 03:11 AM
тАО10-22-2002 03:11 AM
Re: sendq size
To find the current max value do this,
#ndd -get /dev/tcp tcp_connec_request_max
Increase the value .
#ndd -set /dev/tcp tcp_connec_request_max 2048
Make entries in /etc/rc.config.d/nddconf file
TRANSPORT_NAME[
NDD_NAME[
NDD_VALUE[
to make setting permanent even after
reboot.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 03:46 AM
тАО10-22-2002 03:46 AM
Re: sendq size
you are telling about the maximum number of request from a client that can be accepted by server tcp_conn_request_max.
But I need the maximum limit of Send_Q in tcp socket in server client tcp communication.
Thanks for reply
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 04:03 AM
тАО10-22-2002 04:03 AM
Re: sendq size
DO this please.
#/usr/sbin/ndd -set tcp_syn_rcvd_max 2000
Make approriate entries in nddconf also
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 04:21 AM
тАО10-22-2002 04:21 AM
Re: sendq size
You are giving solution to keep the socket connection for long time. But I don't want to do that because the application is developed in that way, it will close the connection if it cannot write to the socket.
In which location you are working in HCL, I am in Mumbai, HCL.
Thanks
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 07:45 AM
тАО10-22-2002 07:45 AM
Re: sendq size
Just got the message from CTK. Did you check the command 'netstat'. This command will tell you the value of Send-Q at the third column:
# netstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 08:24 PM
тАО10-22-2002 08:24 PM
SolutionI think you can understand that parameter tcp_syn_rcvd_max perfectly now.
Maximum SYN received parameter limits the socket queue because it will drop connections
when it exceeds the value.
Moreover I have done lot of R&D on this paramter . So you have to belive me ;-)
To Reinforce my arguments , I would like to quote a reference from my collection:-
"While great effort is undertaken to defend any network from those with malicious intent, several ports (largely TCP) must remain open to conduct business. Internet vandals may attempt to exploit these ports to launch a denial of service attack. One of the most popular attacks remains the SYN flood, wherein the socket queue of the attacked host is overwhelmed with bogus connection requests. To defend against such attacks, certain UNIX variants maintain separate queues for inbound socket connection requests. One queue is for half-open sockets (SYN received, SYN|ACK sent), the other queue for fully-open sockets awaiting an accept() call from the application. These two queues should be increased so that an attack of low to moderate intensity will have little to no effect on the stability or availability of the server.
A. AIX
/usr/sbin/no -o clean_partial_conns=1
This setting will instruct the kernel to randomly remove half-open sockets from the q0 queue to make room for new sockets.
B. Solaris
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q 1024
The q queue holds sockets awaiting an accept() call from the application.
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q0 2048
The q0 queue contains half-open sockets.
C. Tru64 UNIX
/sbin/sysconfig -r socket sominconn=65535
The value of sominconn determines how many simultaneous incoming SYN packets can be handled by the system.
/sbin/sysconfig -r socket somaxconn=65535
The value of somaxconn sets the maximum number of pending TCP connections.
D. HP-UX
/usr/sbin/ndd -set tcp_syn_rcvd_max 1024
/usr/sbin/ndd -set tcp_conn_request_max 200
I know you , I was working in mumbai now transfered to Coimbatore. I was with sudheesh varma in RBI.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 08:55 PM
тАО10-22-2002 08:55 PM
Re: sendq size
Hi
Shiju, Ethu message anu nokkendathu ?
Shiva, Now I got yoy and nice to meet you in this forum. How is your health??
Warm regards
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 09:11 PM
тАО10-22-2002 09:11 PM
Re: sendq size
My health is almost OK now. Thanks . Keep in touch. Convey my regards to all.
regards,
U.SivaKumar