ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTPConnector maxThreads - How many in use?

Post new topic  Reply to topic
 HTTPConnector maxThreads - How many in use? « View previous topic :: View next topic » 
Author Message
PeterPotkay
PostPosted: Mon Aug 08, 2016 6:18 am    Post subject: HTTPConnector maxThreads - How many in use? Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

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
View user's profile Send private message
ruimadaleno
PostPosted: Tue Aug 09, 2016 1:40 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 09, 2016 1:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Aug 09, 2016 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Tue Aug 09, 2016 5:22 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 09, 2016 5:23 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Tue Aug 09, 2016 12:59 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

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
View user's profile Send private message
PeterPotkay
PostPosted: Fri Aug 12, 2016 4:09 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

PMR confirms no official way to do it in WMB / IIB and to go the RFE route.

Link to my RFE is here.
http://www.mqseries.net/phpBB2/viewtopic.php?p=409869#409869
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Aug 12, 2016 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message
ghoshly
PostPosted: Fri Aug 12, 2016 9:18 am    Post subject: Max permitted value? Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

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
View user's profile Send private message
harish_td
PostPosted: Sat Aug 13, 2016 10:55 pm    Post subject: Re: HTTPConnector maxThreads - How many in use? Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTPConnector maxThreads - How many in use?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.