Troubleshooting
Problem
Symptom
1. "iptrace" show SYN packet coming into the server but SYN/ACK will not going back to client.
2. "netstat -an" show a lot of connections in SYN_RCVD state.
4. "netstat -ano" show "(qlen + q0len) > 1.5 * qlimit" for the port in LISTEN state.
tcp 0 0 *.23 *.* LISTEN
q0len:1510 qlen:0 qlimit:1000 so_state: (PRIV)
Cause
Environment
OS: AIX / VIOS
Diagnosing The Problem
qlen is the number of completed connections (completed three-way handshake but waiting for accept()).
q0len is the number of partial connections waiting for third segment of the three-way handshake (i.e. ACK) from client.
About the listen() Subroutine
Purpose:
Listens for socket connections and limits the backlog of incoming connections.
Library:
Standard C Library (libc.a)
Syntax:
#include <sys/socket.h>
int listen ( Socket, Backlog)
int Socket, Backlog;
Description:
The listen subroutine performs the following activities:
(1). Identifies the socket that receives the connections.
(2). Marks the socket as accepting connections.
(3). Limits the number of outstanding connection requests in the system queue.
Purpose:
Specifies the maximum listen backlog.
Values:
Default: 1024 connections
Range: 0 to MAXSHORT
Type: Connect
Diagnosis:
N/A
Tuning
Increase this parameter on busy Web servers to handle peak connection rates.
Resolving The Problem
somaxconn is global parameter for all the applications in this system. somaxconn can be tuned by no command.
backlog is set in the application code by listen() Subroutine.
SUPPORT | ||
---|---|---|
If additional assistance is required after completing all of the instructions provided in this document, please follow the step-by-step instructions below to contact IBM to open a case for software under warranty or with an active and valid support contract. The technical support specialist assigned to your case will confirm that you have completed these steps. 1. Document and/or take screen shots of all symptoms, errors, and/or messages that might have occurred. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, please visit the IBM Support Community: 4. Provide a good description of your issue, and reference this Technote, and any issues you had with the instructions. 5. Collect the system snap and upload all of the details and data for your case.
|
Related Information
Was this topic helpful?
Document Information
Modified date:
07 January 2020
UID
ibm10887721