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 » General IBM MQ Support » SVRCONN channel instances per thread

Post new topic  Reply to topic
 SVRCONN channel instances per thread « View previous topic :: View next topic » 
Author Message
mq__quest
PostPosted: Mon Sep 11, 2017 1:15 pm    Post subject: SVRCONN channel instances per thread Reply with quote

Apprentice

Joined: 21 Aug 2017
Posts: 47

Hello,
I'm using perfharness tool and sending messages to MQ(V9) in 1 thread, and when I check the SYSTEM.DEF.SVRCONN status, I'm seeing 2 instances. I"ve tested this multiple times and noticed n*2 SYSTEM.DEF.SVRCONN instances running per n threads. I thought only 1 instance would start per thread. could someone explain this, please?



dis chs(SYSTEM.DEF.SVRCONN) ALL
4 : dis chs(SYSTEM.DEF.SVRCONN) ALL
AMQ8417: Display Channel Status details.
CHANNEL(SYSTEM.DEF.SVRCONN) CHLTYPE(SVRCONN)
BUFSRCVD(4176) BUFSSENT(4174)
BYTSRCVD(3612652) BYTSSENT(1185784)
CHSTADA(2017-09-11) CHSTATI(16.48.04)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(1.3.2.293) CURRENT
EXITTIME(0,0) HBINT(300)
JOBNAME(0000442D000001D4) LOCLADDR(::ffff:11.3.2.299(1419))
LSTMSGDA(2017-09-11) LSTMSGTI(16.48.15)
MCASTAT(RUNNING) MCAUSER(rbmp)
MONCHL(OFF) MSGS(4173)
RAPPLTAG(JMSPerfHarness) SECPROT(NONE)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(MQICALL)
CURSHCNV(1) MAXSHCNV(1)
RVERSION(08000005) RPRODUCT(MQJM)


AMQ8417: Display Channel Status details.
CHANNEL(SYSTEM.DEF.SVRCONN) CHLTYPE(SVRCONN)
BUFSRCVD(7) BUFSSENT(6)
BYTSRCVD(1448) BYTSSENT(1416)
CHSTADA(2017-09-11) CHSTATI(16.48.03)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(1.3.2.293) CURRENT
EXITTIME(0,0) HBINT(300)
JOBNAME(0000442D000001D3) LOCLADDR(::ffff:11.3.2.299(1419))
LSTMSGDA(2017-09-11) LSTMSGTI(16.48.03)
MCASTAT(RUNNING) MCAUSER(rbmp)
MONCHL(OFF) MSGS(4)
RAPPLTAG(JMSPerfHarness) SECPROT(NONE)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(1)
RVERSION(08000005) RPRODUCT(MQJM)
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Sep 12, 2017 2:25 pm    Post subject: Re: server-conn channel instances per thread Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
Location: London, ON Canada

mq__quest wrote:
check the SYSTEM.DEF.SVRCONN status

First off, NOBODY or more correctly NO application should be using the SYSTEM.DEF.SVRCONN channel. Create a unique channel for your application or have your MQAdmin do it.

mq__quest wrote:
noticed n*2 SYSTEM.DEF.SVRCONN instances running per n threads

So, check the code - it sounds like the application is opening 2 connections per thread.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mq__quest
PostPosted: Wed Sep 13, 2017 7:27 am    Post subject: Re: server-conn channel instances per thread Reply with quote

Apprentice

Joined: 21 Aug 2017
Posts: 47

RogerLacroix wrote:

mq__quest wrote:
noticed n*2 SYSTEM.DEF.SVRCONN instances running per n threads

So, check the code - it sounds like the application is opening 2 connections per thread.


But I'm seeing the same issue with another testing tool(JMeter), wondering if I need to check any configurations on MQ side. The tools are using binding file to connect to mq to put to clustered alias queue.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 13, 2017 8:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you're using bindings, then you're not using any svrconns.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 13, 2017 11:06 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

For clarity, there are two choices for 'bindings,' namely: Server-bindings and Client-bindings. Server-bindings send MQI calls cross-memory (within an LPAR), while Client-bindings send MQI calls cross-network.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mq__quest
PostPosted: Wed Sep 13, 2017 11:18 am    Post subject: Reply with quote

Apprentice

Joined: 21 Aug 2017
Posts: 47

bruce2359 wrote:
For clarity, there are two choices for 'bindings,' namely: Server-bindings and Client-bindings. Server-bindings send MQI calls cross-memory (within an LPAR), while Client-bindings send MQI calls cross-network.


sorry, I wasn't clear earlier. I meant .binding file with TRANSPORT(CLIENT).
I have this in the file
DEFINE QCF(myCF) QMANAGER() CHANNEL(SYSTEM.DEF.SVRCONN) HOSTNAME(11.3.2.299) PORT(1419) TRANSPORT(CLIENT)
DEFINE Q(myQueue) QUEUE(TEST.ALIAS) QMANAGER() TARGCLIENT(JMS)
Back to top
View user's profile Send private message
vinay.gollapalli
PostPosted: Thu Sep 14, 2017 2:27 am    Post subject: Reply with quote

Novice

Joined: 22 Aug 2017
Posts: 22

They are 2 difference calls one MQICALL and another one is RECEIVE call ,it getting created by your app where it tries to make multiple calls and also see MSGS there is a difference in both the calls.
Back to top
View user's profile Send private message
hughson
PostPosted: Fri Sep 15, 2017 3:08 pm    Post subject: Re: SVRCONN channel instances per thread Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

mq__quest wrote:
Hello,
I'm using perfharness tool and sending messages to MQ(V9) in 1 thread, and when I check the SYSTEM.DEF.SVRCONN status, I'm seeing 2 instances. I"ve tested this multiple times and noticed n*2 SYSTEM.DEF.SVRCONN instances running per n threads. I thought only 1 instance would start per thread. could someone explain this, please?

From your channel status output I can see that this is a JMS applcation:-

mq__quest wrote:
RAPPLTAG(JMSPerfHarness) RPRODUCT(MQJM)

Quite often, you will see that JMS applications make two MQ Connections, one for the JMS Connection, and one for the JMS Session. This is quite normal.

You will be able to see these two connections if you use the following command while your application is running.

Code:
DISPLAY CONN(*) TYPE(ALL) ALL WHERE(CHANNEL EQ SYSTEM.DEF.SVRCONN)

or if you have lots of other things also using that channel then try

Code:
DISPLAY CONN(*) TYPE(ALL) ALL WHERE(APPLTAG EQ 'JMSPerfHarness')

If you want to know what your application is doing, why not run an Application Activity Trace on it. You'll be able to see how many connections it makes and what each of those connections do.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
mq__quest
PostPosted: Mon Sep 18, 2017 6:18 am    Post subject: Re: SVRCONN channel instances per thread Reply with quote

Apprentice

Joined: 21 Aug 2017
Posts: 47

[quote="hughson"]
mq__quest wrote:


mq__quest wrote:
RAPPLTAG(JMSPerfHarness) RPRODUCT(MQJM)

Quite often, you will see that JMS applications make two MQ Connections, one for the JMS Connection, and one for the JMS Session. This is quite normal.

You will be able to see these two connections if you use the following command while your application is running.



Thanks very much, Morag. It makes sense now. And yes, I do see 2 conns with the channel.
Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » SVRCONN channel instances per thread
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.