Author |
Message
|
PeterPotkay |
Posted: Mon Aug 08, 2016 6:18 am Post subject: HTTPConnector maxThreads - How many in use? |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I use this command to allow my Execution Group to have up to 500 HTTP connections:
Code: |
mqsichangeproperties $MyBrokerName -o HTTPConnector -e $MyExecutionGroup -n maxThreads -v 500 |
I use this command to confirm what the max is:
Code: |
mqsireportproperties $MyBrokerName -e $MyExecutionGroup -o HTTPConnector -r |
But how do I check at any given point in time how many connections I have, to determine how close I am to my maxThreads number? Is there a mqsi command that shows this? Or some SYSTEM.BROKER.* queue that I can count the # of handles on?
If the Execution Group only has HTTP based flows, would looking at the Execution Group's "Number of Threads In Pool Aggregated" tell me indirectly how many inbound HTTP connections this EG has? My monitoring tool shows this number, which I think is it adding up all the flows NumberOfThreadsInPool. Maybe? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
ruimadaleno |
Posted: Tue Aug 09, 2016 1:40 am Post subject: |
|
|
Master
Joined: 08 May 2014 Posts: 274
|
This is a very good question, i'm working in a broker 8.0.0.6 environment with a lot of http/soap nodes based message flows and this kind of monitoring is important
hoping to see the community sharing knowledge in this subject _________________ Best regards
Rui Madaleno |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 09, 2016 1:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Well as you are probably using the embedded connector there will be no queue to show anything about that.
Your best bet is in fact to use the aggregated number.
As a test verify what the aggregated number represents by looking at the sum of the flows for a given period (20 seconds) and adding the number of instances? However if there is a queue (meaning more traffic than the flow instances can handle) would there be spill over to those additional HTTP threads?
Hope it helps  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 09, 2016 3:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You could always use netstat or etc to count the number of connections to the http listener port...
A monitoring event on the SOAP/HTTP node wouldn't really help, I *think*- it would only tell you the number of connections that have been started. It wouldn't show you how many connections were still in the pool for reuse...
You *might* also be able to dig around /var/mqsi and find the log filies for the biphttplistener. Whether the EG level listener actually logs to a file anywhere, I don't know.
I'd suggest opening a PMR to get a better answer... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Aug 09, 2016 5:22 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
You could always use netstat or etc to count the number of connections to the http listener port...
|
Don't the ports get handed off once the connections are made? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 09, 2016 5:23 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
mqjeff wrote: |
You could always use netstat or etc to count the number of connections to the http listener port...
|
Don't the ports get handed off once the connections are made? |
Yes. but netstat should still be able to show something.
I think. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Aug 09, 2016 12:59 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Thanks guys, glad we are not missing anything obvious within the WMB/IIB product to get this info.
I will open a PMR to confirm and report back. Sounds like I will also be trolling for votes on a new Request For Enhancement as well
If that's what it ends up being, yeah, a little script to netstat and record and parse and email. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Aug 12, 2016 4:09 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 12, 2016 4:21 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
don't for get to login to Developerworks before using the link Peter has provided. Otherwise, it won't work. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
ghoshly |
Posted: Fri Aug 12, 2016 9:18 am Post subject: Max permitted value? |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
I see the initial value to be 200 ( default I believe) is there any highest value which we should use before considering other option for scaling like new e.g. or so?
I am assuming HTTPConnector and HTTPSConnector being different, for the same execution group, by default 200 HTTP thread + 200 HTTPS thread will be allowed until we change the max value.
Please rectify me if my understanding is wrong.
Thanks. |
|
Back to top |
|
 |
harish_td |
Posted: Sat Aug 13, 2016 10:55 pm Post subject: Re: HTTPConnector maxThreads - How many in use? |
|
|
Master
Joined: 13 Feb 2006 Posts: 236
|
PeterPotkay wrote: |
But how do I check at any given point in time how many connections I have, to determine how close I am to my maxThreads number? |
I have used the following command in the past to determine how many pending requests are there waiting to be served.
Code: |
C:\IBM\MQSI\8.0.0.0>mqsireportproperties MB8BROKER -e HTTPRouter -o HTTPConnector -r | grep Requests
maxKeepAliveRequests='200'
autoRespondHTTPHEADRequests=''
outstandingRequests='101'
|
This is usually not reported by netstat, since the connection is not yet established, but waiting for a thread to be freed up by the HTTPListener of the EG |
|
Back to top |
|
 |
|