Discussion:
How do I display TCPIP.PROFILE parm SOMAXCONN
(too old to reply)
Jim Labine
2006-03-14 20:07:43 UTC
Permalink
We need to change SOMAXCONN - but I do not know how to display the current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

____________________________
Email Disclaimer

Information contained in this e-mail transmission is the property of TCF and is intended for the named recipient. If you are not the intended recipient, do not read, distribute, or reproduce this transmission. If you have received this e-mail transmission in error, please contact the sender.

Disclaimer Regarding Uniform Electronic Transmissions Act (UETA) and Federal E-Sign (E-SIGN) Law: This communication is for discussion purposes only, and it does not create a contract or legally binding agreement. The UETA and E-SIGN do not apply to this communication. We only contract with manually affixed original signatures on the original paper contracts.



----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Vernon Dixon
2006-03-14 20:11:47 UTC
Permalink
Look at the DISPLAY OMVS command and it's parameters.

Vern Dixon
Attorneys Title Insurance Fund, Inc.
407.563.3000 or 800.929.6160 X7486 on VM
407.570.7908 Pager

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: Tuesday, March 14, 2006 3:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: How do I display TCPIP.PROFILE parm SOMAXCONN

We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

____________________________
Email Disclaimer

Information contained in this e-mail transmission is the property of TCF
and is intended for the named recipient. If you are not the intended
recipient, do not read, distribute, or reproduce this transmission. If
you have received this e-mail transmission in error, please contact the
sender.

Disclaimer Regarding Uniform Electronic Transmissions Act (UETA) and
Federal E-Sign (E-SIGN) Law: This communication is for discussion
purposes only, and it does not create a contract or legally binding
agreement. The UETA and E-SIGN do not apply to this communication. We
only contract with manually affixed original signatures on the original
paper contracts.



----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L


The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. By reading the message and opening any attachments, the recipient
accepts full responsibility for taking protective and remedial action about viruses and other defects. Attorneys' Title Insurance Fund, Inc. is not liable for any loss or damage arising in any way from this message or its attachments.

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Jim Labine
2006-03-14 20:36:33 UTC
Permalink
This has several MAX displays but no SOMAXCONN

D OMVS,P shows the number of sockets being used per file type, but not what the setting for SOMAXCONN is.

Thanks



-----Original Message-----
From: Vernon Dixon [mailto:***@TheFund.com]
Sent: Tuesday, March 14, 2006 2:12 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN


Look at the DISPLAY OMVS command and it's parameters.

Vern Dixon
Attorneys Title Insurance Fund, Inc.
407.563.3000 or 800.929.6160 X7486 on VM
407.570.7908 Pager

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: Tuesday, March 14, 2006 3:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: How do I display TCPIP.PROFILE parm SOMAXCONN

We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

____________________________
Email Disclaimer

Information contained in this e-mail transmission is the property of TCF
and is intended for the named recipient. If you are not the intended
recipient, do not read, distribute, or reproduce this transmission. If
you have received this e-mail transmission in error, please contact the
sender.

Disclaimer Regarding Uniform Electronic Transmissions Act (UETA) and
Federal E-Sign (E-SIGN) Law: This communication is for discussion
purposes only, and it does not create a contract or legally binding
agreement. The UETA and E-SIGN do not apply to this communication. We
only contract with manually affixed original signatures on the original
paper contracts.



----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L


The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. By reading the message and opening any attachments, the recipient
accepts full responsibility for taking protective and remedial action about viruses and other defects. Attorneys' Title Insurance Fund, Inc. is not liable for any loss or damage arising in any way from this message or its attachments.

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Gray, Larry - Larry A
2006-03-14 20:43:03 UTC
Permalink
NOTICE:
All information in and attached to the e-mail(s) below may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure. If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message. If you have erroneously received this communication, please notify the sender immediately by phone (704-758-1000) or by e-mail and destroy all copies of this message (electronic, paper, or otherwise). Thank you.

Under OMVS and assuming you have snmp active try,

osnmp -v -h localhost -c public get ibmMvsSoMaxConn.0

Or

osnmp -v -h localhost -c public walk ibmTcpipMvsSystem
and look for ibmMvsSoMaxConn

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: Tuesday, March 14, 2006 3:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: How do I display TCPIP.PROFILE parm SOMAXCONN

We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

____________________________
Email Disclaimer

Information contained in this e-mail transmission is the property of TCF
and is intended for the named recipient. If you are not the intended
recipient, do not read, distribute, or reproduce this transmission. If
you have received this e-mail transmission in error, please contact the
sender.

Disclaimer Regarding Uniform Electronic Transmissions Act (UETA) and
Federal E-Sign (E-SIGN) Law: This communication is for discussion
purposes only, and it does not create a contract or legally binding
agreement. The UETA and E-SIGN do not apply to this communication. We
only contract with manually affixed original signatures on the original
paper contracts.



----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Meehan, Cheryl
2006-03-14 21:02:07 UTC
Permalink
Jim-

I wasn't able to find a place to display the current value of somaxconn,
however, if you don't have it explicitly set in the profile, you should
be able to look in this file to see what it's set at.

/usr/include/sys/socket.h

Cheryl

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: Tuesday, March 14, 2006 3:46 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN

Thanks -

No we don't have snmp active.


-----Original Message-----
From: Gray, Larry - Larry A [mailto:***@Lowes.com]
Sent: Tuesday, March 14, 2006 2:43 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN


NOTICE:
All information in and attached to the e-mail(s) below may be
proprietary, confidential, privileged and otherwise protected from
improper or erroneous disclosure. If you are not the sender's intended
recipient, you are not authorized to intercept, read, print, retain,
copy, forward, or disseminate this message. If you have erroneously
received this communication, please notify the sender immediately by
phone (704-758-1000) or by e-mail and destroy all copies of this message
(electronic, paper, or otherwise). Thank you.

Under OMVS and assuming you have snmp active try,

osnmp -v -h localhost -c public get ibmMvsSoMaxConn.0

Or

osnmp -v -h localhost -c public walk ibmTcpipMvsSystem
and look for ibmMvsSoMaxConn

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: Tuesday, March 14, 2006 3:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: How do I display TCPIP.PROFILE parm SOMAXCONN

We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

____________________________
Email Disclaimer

Information contained in this e-mail transmission is the property of TCF
and is intended for the named recipient. If you are not the intended
recipient, do not read, distribute, or reproduce this transmission. If
you have received this e-mail transmission in error, please contact the
sender.

Disclaimer Regarding Uniform Electronic Transmissions Act (UETA) and
Federal E-Sign (E-SIGN) Law: This communication is for discussion
purposes only, and it does not create a contract or legally binding
agreement. The UETA and E-SIGN do not apply to this communication. We
only contract with manually affixed original signatures on the original
paper contracts.



----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions, send
email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions, send
email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions, send
email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Jim Labine
2006-03-14 20:46:13 UTC
Permalink
Thanks -

No we don't have snmp active.


-----Original Message-----
From: Gray, Larry - Larry A [mailto:***@Lowes.com]
Sent: Tuesday, March 14, 2006 2:43 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN


NOTICE:
All information in and attached to the e-mail(s) below may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure. If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message. If you have erroneously received this communication, please notify the sender immediately by phone (704-758-1000) or by e-mail and destroy all copies of this message (electronic, paper, or otherwise). Thank you.

Under OMVS and assuming you have snmp active try,

osnmp -v -h localhost -c public get ibmMvsSoMaxConn.0

Or

osnmp -v -h localhost -c public walk ibmTcpipMvsSystem
and look for ibmMvsSoMaxConn

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: Tuesday, March 14, 2006 3:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: How do I display TCPIP.PROFILE parm SOMAXCONN

We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

____________________________
Email Disclaimer

Information contained in this e-mail transmission is the property of TCF
and is intended for the named recipient. If you are not the intended
recipient, do not read, distribute, or reproduce this transmission. If
you have received this e-mail transmission in error, please contact the
sender.

Disclaimer Regarding Uniform Electronic Transmissions Act (UETA) and
Federal E-Sign (E-SIGN) Law: This communication is for discussion
purposes only, and it does not create a contract or legally binding
agreement. The UETA and E-SIGN do not apply to this communication. We
only contract with manually affixed original signatures on the original
paper contracts.



----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Steven St.Jean
2006-03-14 20:53:21 UTC
Permalink
Jim,

From the OMVS shell on my system, the command "osnmp -v walk
ibmTcpipMvsSystem" returns (among a bunch of other objects):

ibmMvsSoMaxConn.0 = 10

Hope this helps.

Steven St.Jean
Senior Developer
Software Diversified Services
http://www.sdsusa.com


> -----Original Message-----
> From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On
> Behalf Of Jim Labine
> Sent: Tuesday, March 14, 2006 3:37 PM
> To: IBMTCP-***@VM.MARIST.EDU
> Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN
>
> This has several MAX displays but no SOMAXCONN
>
> D OMVS,P shows the number of sockets being used per file
> type, but not what the setting for SOMAXCONN is.
>
> Thanks
>
>
>
> -----Original Message-----
> From: Vernon Dixon [mailto:***@TheFund.com]
> Sent: Tuesday, March 14, 2006 2:12 PM
> To: IBMTCP-***@VM.MARIST.EDU
> Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN
>
>
> Look at the DISPLAY OMVS command and it's parameters.
>
> Vern Dixon
> Attorneys Title Insurance Fund, Inc.
> 407.563.3000 or 800.929.6160 X7486 on VM
> 407.570.7908 Pager
>
> -----Original Message-----
> From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On
> Behalf Of Jim Labine
> Sent: Tuesday, March 14, 2006 3:08 PM
> To: IBMTCP-***@VM.MARIST.EDU
> Subject: How do I display TCPIP.PROFILE parm SOMAXCONN
>
> We need to change SOMAXCONN - but I do not know how to
> display the current settings.
>
> I know it is defaulted to SOMAXCONN 10.
>
> I have been looking at NETSTAT and other TCPIP display commands.
>
> Thank You
>
> Jim LaBine
> TCF Bank Tech Support
> MPLS, MN
>
> ____________________________
> Email Disclaimer
>
> Information contained in this e-mail transmission is the
> property of TCF and is intended for the named recipient. If
> you are not the intended recipient, do not read, distribute,
> or reproduce this transmission. If you have received this
> e-mail transmission in error, please contact the sender.
>
> Disclaimer Regarding Uniform Electronic Transmissions Act
> (UETA) and Federal E-Sign (E-SIGN) Law: This communication
> is for discussion purposes only, and it does not create a
> contract or legally binding agreement. The UETA and E-SIGN
> do not apply to this communication. We only contract with
> manually affixed original signatures on the original paper contracts.
>
>
>
> ----------------------------------------------------------------------
> For IBMTCP-L subscribe / signoff / archive access
> instructions, send email to ***@VM.MARIST.EDU with the
> message: INFO IBMTCP-L
>
>
> The sender believes that this E-mail and any attachments were
> free of any virus, worm, Trojan horse, and/or malicious code
> when sent. By reading the message and opening any
> attachments, the recipient accepts full responsibility for
> taking protective and remedial action about viruses and other
> defects. Attorneys' Title Insurance Fund, Inc. is not liable
> for any loss or damage arising in any way from this message
> or its attachments.
>
> ----------------------------------------------------------------------
> For IBMTCP-L subscribe / signoff / archive access
> instructions, send email to ***@VM.MARIST.EDU with the
> message: INFO IBMTCP-L
>
> ----------------------------------------------------------------------
> For IBMTCP-L subscribe / signoff / archive access
> instructions, send email to ***@VM.MARIST.EDU with the
> message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Chris Mason
2006-03-15 01:17:27 UTC
Permalink
Jim,

Sometimes checking a troublesome parameter name in APARs is useful.

SOMAXCONN seems to have been introduced to MVS TCP/IP by APAR PN62468 back in 1994.

Note the minimum of the following is taken as the value during execution of a C socket program:

- The PROFILE SOMAXCONN value
- The C listen() call "backlog" parameter value in the socket program
- The SOMAXCONN value in the socket.h file used during compilation of the socket C program

One assumes some applications set the maximum in the listen() call and the socket.h file in order to ensure that the PROFILE value is used. Perhaps some don't.

Searching for SOMAXCONN and APAR turned up PQ75363 which shows that you may well have to set application parameters which feed the listen() call "backlog" parameter.

Perhaps your reason for distrusting what you can very easily read in your PROFILE definitions is that the number you find there doesn't seem to apply.

I seem to recall some discussion long ago in the IBM FORA that the listen() call "backlog" parameter needs to go though some sort of algorithm in order to come up with the true number of how many TCP connection requests can be queued. Scraping the neurons, let me propose backlog/2 + 1. I'm sure the collective memory of the community here in attendance will arrive at the correct algorithm.

It seems the only way to check the PROFILE value is via SNMP - as has been pointed out by many contributors. You'd better enable the SNMP agent. You can use a variety of clients but, obviously, the osnmp command is probably the most readily available. This is very worthwhile since just about all the PROFILE parameters are available through the SNMP agent (by way of the MVS subagent).

Chris Mason

P.S. Unfortunately I lost the "original message" - as evidenced by my having sent this reply to the wrong list initially :-(

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Vernon Dixon
2006-03-15 20:01:36 UTC
Permalink
A 'NETSTAT ALL' in our shop got me 50 pages of output.

You can get the same result on 1 page - determining the setting of
'MaximumBacklog' and therefore 'SOMAXCONN' - by entering
'NETSTAT ALL (CLIent clientname'.

Vern Dixon
Attorneys Title Insurance Fund, Inc.
407.563.3000 or 800.929.6160 X7486 on VM
407.570.7908 Pager

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Doug
Bulbeck
Sent: Wednesday, March 15, 2006 10:15 AM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN

Hi Jim,

You can display the SOMAXCONN value by issuing a 'NETSTAT ALL' command
from tso, or the 'netstat -A' command from USS. This will give you
stats for all current connections, but you can use filters to reduce the
amount of output you get. Look for the information on the connection
for your application's listener port -- the 'Local Socket' is generally
0.0.0.0..nn in this case. The information included will indicate the
'CurrentBacklog' and the 'MaximumBacklog', where the 'MaximumBacklog'
will be the value of SOMAXCONN that the application is using -- either
the default from the profile, or whatever value the application set when
it opened the socket as described by Chris Mason. Another interesting
piece of information will be the 'ConnectionsDropped' field, which
indicates the number of connections that were dropped because the
maximum number of connection requests was already in the backlog queue.

Regards,
Doug Bulbeck



-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: March 14, 2006 1:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN


We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

_

This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L


The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. By reading the message and opening any attachments, the recipient
accepts full responsibility for taking protective and remedial action about viruses and other defects. Attorneys' Title Insurance Fund, Inc. is not liable for any loss or damage arising in any way from this message or its attachments.

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Jim Labine
2006-03-15 20:06:14 UTC
Permalink
Thank You to all who have contributed. I have the answer (in seven ways) from Sunday.
Jim

-----Original Message-----
From: Vernon Dixon [mailto:***@TheFund.com]
Sent: Wednesday, March 15, 2006 2:02 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN


A 'NETSTAT ALL' in our shop got me 50 pages of output.

You can get the same result on 1 page - determining the setting of
'MaximumBacklog' and therefore 'SOMAXCONN' - by entering
'NETSTAT ALL (CLIent clientname'.

Vern Dixon
Attorneys Title Insurance Fund, Inc.
407.563.3000 or 800.929.6160 X7486 on VM
407.570.7908 Pager

-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Doug
Bulbeck
Sent: Wednesday, March 15, 2006 10:15 AM
To: IBMTCP-***@VM.MARIST.EDU
Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN

Hi Jim,

You can display the SOMAXCONN value by issuing a 'NETSTAT ALL' command
from tso, or the 'netstat -A' command from USS. This will give you
stats for all current connections, but you can use filters to reduce the
amount of output you get. Look for the information on the connection
for your application's listener port -- the 'Local Socket' is generally
0.0.0.0..nn in this case. The information included will indicate the
'CurrentBacklog' and the 'MaximumBacklog', where the 'MaximumBacklog'
will be the value of SOMAXCONN that the application is using -- either
the default from the profile, or whatever value the application set when
it opened the socket as described by Chris Mason. Another interesting
piece of information will be the 'ConnectionsDropped' field, which
indicates the number of connections that were dropped because the
maximum number of connection requests was already in the backlog queue.

Regards,
Doug Bulbeck



-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: March 14, 2006 1:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN


We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

_

This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L


The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. By reading the message and opening any attachments, the recipient
accepts full responsibility for taking protective and remedial action about viruses and other defects. Attorneys' Title Insurance Fund, Inc. is not liable for any loss or damage arising in any way from this message or its attachments.

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Chris Mason
2006-03-15 22:23:23 UTC
Permalink
Jim

Armed with what Doug mentioned, I did a search using "MaximumBacklog" in the
z/OS V1R7.0 Communications Server IP System Administrator's Commands manual
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1C240. There
is only one "hit": Netstat ALL/-A report, 3.3.2.2. You will see the example
output here and the explanation:

<quote>

MaximumBacklog

The maximum number of connection requests a server will maintain waiting to
finish the connection establishment. Connection requests that are received
when the maximum number of requests is already on the backlog queue are
generally discarded. The higher the maximum backlog queue, the more
simultaneous connection requests a server can handle without having to drop
requests.

</quote>

Now, going back to my last post and despite Doug's endorsement, I think I
made a mistake based on the APAR text I was reading and *not* thinking
about. I'm pretty sure there are only two execution-time limits, the minimum
of which is used:

- The PROFILE SOMAXCONN value
- The value of the listen() call "backlog" parameter

I think the socket.h value gets in on the act by virtue of SOMAXCONN being a
suggested token to be placed in the listen() call as the second, "backlog",
parameter. I suspect - unfortunately I can't check - that SOMAXCONN in the
socket.h file is a #define (a Google search revealed "#define SOMAXCONN 8"
so I think I'm right). Thus it's only if you use the token SOMAXCONN in the
listen() call that you need to follow the suggestion in the "Usage Notes"
(actually there is only the one) in section 1.2.52 SOMAXCONN of the CS IP
Configuration Reference that the PROFILE SOMAXCONN value and the socket.h
file SOMAXCONN value should be matched.

Nobody has responded concerning the algorithm I suspected exists for
converting the "coded" "backlog" number to the "operational" "backlog"
number. I have had a further possible memory that the algorithm exists for
any TCP/IP implementation based upon a popular BSD which - I think - was
4.3. I'm putting up an "Aunt Sally" for contributors to take shots at.

Chris Mason

----- Original Message -----
From: "Doug Bulbeck" <***@celero.ca>
Newsgroups: bit.listserv.ibmtcp-l
To: <IBMTCP-***@VM.MARIST.EDU>
Sent: Wednesday, 15 March, 2006 4:15 PM
Subject: Re: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN


Hi Jim,

You can display the SOMAXCONN value by issuing a 'NETSTAT ALL' command
from tso, or the 'netstat -A' command from USS. This will give you
stats for all current connections, but you can use filters to reduce the
amount of output you get. Look for the information on the connection
for your application's listener port -- the 'Local Socket' is generally
0.0.0.0..nn in this case. The information included will indicate the
'CurrentBacklog' and the 'MaximumBacklog', where the 'MaximumBacklog'
will be the value of SOMAXCONN that the application is using -- either
the default from the profile, or whatever value the application set when
it opened the socket as described by Chris Mason. Another interesting
piece of information will be the 'ConnectionsDropped' field, which
indicates the number of connections that were dropped because the
maximum number of connection requests was already in the backlog queue.

Regards,
Doug Bulbeck



-----Original Message-----
From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On Behalf Of Jim
Labine
Sent: March 14, 2006 1:08 PM
To: IBMTCP-***@VM.MARIST.EDU
Subject: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN


We need to change SOMAXCONN - but I do not know how to display the
current settings.

I know it is defaulted to SOMAXCONN 10.

I have been looking at NETSTAT and other TCPIP display commands.

Thank You

Jim LaBine
TCF Bank Tech Support
MPLS, MN

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Steven St.Jean
2006-03-15 23:39:15 UTC
Permalink
To further complicate the picture, the maximum backlog value for a server
will sometimes change dynamically. If the backlog has exceeded the maximum
and a number of connection requests have been dropped, the maximum backlog
can jump from the default 10 to a number in the hundreds. This behavior is
not documented anywhere that I have ever been able to find, but I have
witnessed it and was able to recreate it. It was years ago, and I was using
FTP, but a customer recently reported maximum backlog values jumping from 10
to 768 on some DB2 servers.

I suppose the server could be re-issuing its listen() with a new backlog
value, but it's not clear to me how the application would even know that a
backlog had developed -- that's TCP's business. And in my case, at least,
the new maximum backlog value far exceeded what was coded in the PROFILE for
SOMAXCONN. It appeared to me as if it were a unilateral decision by the
stack.


> -----Original Message-----
> From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On
> Behalf Of Chris Mason
> Sent: Wednesday, March 15, 2006 5:23 PM
> To: IBMTCP-***@VM.MARIST.EDU
> Subject: Re: How do I display TCPIP.PROFILE parm SOMAXCONN
>
> Jim
>
> Armed with what Doug mentioned, I did a search using
> "MaximumBacklog" in the z/OS V1R7.0 Communications Server IP
> System Administrator's Commands manual
> http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A
> 1C240. There is only one "hit": Netstat ALL/-A report,
> 3.3.2.2. You will see the example output here and the explanation:
>
> <quote>
>
> MaximumBacklog
>
> The maximum number of connection requests a server will
> maintain waiting to finish the connection establishment.
> Connection requests that are received when the maximum number
> of requests is already on the backlog queue are generally
> discarded. The higher the maximum backlog queue, the more
> simultaneous connection requests a server can handle without
> having to drop requests.
>
> </quote>
>
> Now, going back to my last post and despite Doug's
> endorsement, I think I made a mistake based on the APAR text
> I was reading and *not* thinking about. I'm pretty sure there
> are only two execution-time limits, the minimum of which is used:
>
> - The PROFILE SOMAXCONN value
> - The value of the listen() call "backlog" parameter
>
> I think the socket.h value gets in on the act by virtue of
> SOMAXCONN being a suggested token to be placed in the
> listen() call as the second, "backlog", parameter. I suspect
> - unfortunately I can't check - that SOMAXCONN in the
> socket.h file is a #define (a Google search revealed "#define
> SOMAXCONN 8"
> so I think I'm right). Thus it's only if you use the token
> SOMAXCONN in the
> listen() call that you need to follow the suggestion in the
> "Usage Notes"
> (actually there is only the one) in section 1.2.52 SOMAXCONN
> of the CS IP Configuration Reference that the PROFILE
> SOMAXCONN value and the socket.h file SOMAXCONN value should
> be matched.
>
> Nobody has responded concerning the algorithm I suspected
> exists for converting the "coded" "backlog" number to the
> "operational" "backlog"
> number. I have had a further possible memory that the
> algorithm exists for any TCP/IP implementation based upon a
> popular BSD which - I think - was 4.3. I'm putting up an
> "Aunt Sally" for contributors to take shots at.
>
> Chris Mason
>
> ----- Original Message -----
> From: "Doug Bulbeck" <***@celero.ca>
> Newsgroups: bit.listserv.ibmtcp-l
> To: <IBMTCP-***@VM.MARIST.EDU>
> Sent: Wednesday, 15 March, 2006 4:15 PM
> Subject: Re: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN
>
>
> Hi Jim,
>
> You can display the SOMAXCONN value by issuing a 'NETSTAT
> ALL' command from tso, or the 'netstat -A' command from USS.
> This will give you stats for all current connections, but you
> can use filters to reduce the amount of output you get. Look
> for the information on the connection for your application's
> listener port -- the 'Local Socket' is generally 0.0.0.0..nn
> in this case. The information included will indicate the
> 'CurrentBacklog' and the 'MaximumBacklog', where the 'MaximumBacklog'
> will be the value of SOMAXCONN that the application is using
> -- either the default from the profile, or whatever value the
> application set when it opened the socket as described by
> Chris Mason. Another interesting piece of information will
> be the 'ConnectionsDropped' field, which indicates the number
> of connections that were dropped because the maximum number
> of connection requests was already in the backlog queue.
>
> Regards,
> Doug Bulbeck
>
>
>
> -----Original Message-----
> From: IBM TCP/IP List [mailto:IBMTCP-***@VM.MARIST.EDU] On
> Behalf Of Jim Labine
> Sent: March 14, 2006 1:08 PM
> To: IBMTCP-***@VM.MARIST.EDU
> Subject: [IBMTCP-L] How do I display TCPIP.PROFILE parm SOMAXCONN
>
>
> We need to change SOMAXCONN - but I do not know how to
> display the current settings.
>
> I know it is defaulted to SOMAXCONN 10.
>
> I have been looking at NETSTAT and other TCPIP display commands.
>
> Thank You
>
> Jim LaBine
> TCF Bank Tech Support
> MPLS, MN
>
> ----------------------------------------------------------------------
> For IBMTCP-L subscribe / signoff / archive access
> instructions, send email to ***@VM.MARIST.EDU with the
> message: INFO IBMTCP-L

----------------------------------------------------------------------
For IBMTCP-L subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO IBMTCP-L
Loading...