Gatling JMS scenario doesn't end

493 views
Skip to first unread message

Rubenski

unread,
Aug 25, 2015, 9:28:31 AM8/25/15
to Gatling User Group
Hi,

I am running a JMS test scenario.

val steps =
exec(jms("Send JMS test message")
.reqreply
.queue("QUEUE.NAME.HERE")
.textMessage("my soap request here"))

I can see the message ending up on the queue and ultimately in the listening application, but the scenario doesn't end. It keeps running indefinitely.

Any ideas? Log output:


5:20:07.429 [INFO ] i.g.j.c.SimpleJmsClient - Got InitialContext javax.naming.InitialContext@23020bf9
15:20:07.432 [INFO ] i.g.j.c.SimpleJmsClient - Got ConnectionFactory com.ibm.mq.jms.MQQueueConnectionFactory@764a2c86
15:20:07.436 [INFO ] i.g.c.r.w.ConsoleDataWriter - Initializing
15:20:07.436 [INFO ] i.g.c.r.w.FileDataWriter - Initializing
15:20:07.436 [INFO ] i.g.m.GraphiteDataWriter - Initializing
15:20:07.439 [INFO ] i.g.c.r.w.ConsoleDataWriter - Initialized
15:20:07.445 [INFO ] i.g.m.GraphiteDataWriter - Initialized
15:20:07.455 [INFO ] i.g.c.r.w.FileDataWriter - Initialized
15:20:07.457 [DEBUG] i.g.c.c.Controller - Launching All Scenarios
15:20:07.462 [DEBUG] i.g.c.c.Controller - Finished Launching scenarios executions
15:20:07.463 [DEBUG] i.g.c.c.Controller - Setting up max duration
15:20:07.464 [INFO ] i.g.c.c.Controller - Start user #7226016095045467320-0

================================================================================
2015-08-25 15:20:07 0s elapsed
---- APP debug scenario ------------------------------------------------------
[ ] 0%
waiting: 1 / active: 0 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=0 KO=0 )

================================================================================

15:20:07.539 [INFO ] i.g.j.c.SimpleJmsClient - Got Connection com.ibm.mq.jms.MQQueueConnection@1fd4eeea
15:20:07.593 [DEBUG] i.g.j.JmsReqReplyAction - Message sent ID:414d51204b4c414c3031202020202020ed59d15550c55a24

================================================================================
2015-08-25 15:20:12 5s elapsed
---- APP debug scenario ------------------------------------------------------
[--------------------------------------------------------------------------] 0%
waiting: 0 / active: 1 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=0 KO=0 )

================================================================================

[...]

Rubenski

unread,
Aug 25, 2015, 10:25:00 AM8/25/15
to Gatling User Group
Extra info: I am using version 2.1.4, but also tried 2.1.7. For both versions the scenario keeps running. I am not expecting a response from the application. It seems there is a thread waiting for a reply, but I'd like Gatling to just fire and forget about it.

Stéphane LANDELLE

unread,
Aug 25, 2015, 11:15:49 AM8/25/15
to gat...@googlegroups.com
The JMS support was contributed by the community, and the contributors and users so far only used a request-reply model, so only this mode is currently supported.

Stéphane Landelle
Lead developer


On Tue, Aug 25, 2015 at 4:25 PM, Rubenski <rube...@gmail.com> wrote:
Extra info: I am using version 2.1.4, but also tried 2.1.7. For both versions the scenario keeps running. I am not expecting a response from the application. It seems there is a thread waiting for a reply, but I'd like Gatling to just fire and forget about it.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Moll

unread,
Nov 29, 2016, 11:46:09 AM11/29/16
to Gatling User Group
Hi Ruben,

From your logs it looks like you are using IBM MQ client to send your JMS messages. Would you be so kind to share your jmsConfig setup? I have tried but didn't manage to get it up and running ;-( Any help will be much appreciated!

Cheers

Daniel

Ruben van Loen

unread,
Nov 29, 2016, 12:03:36 PM11/29/16
to gat...@googlegroups.com
Hi Daniel, unfortunately I don't have access to the code anymore. At the time I think I got the setup from here: http://gatling.io/docs/2.1.1/jms.html, but I guess you already found that page.




--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/SHUOZNtOsDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+unsubscribe@googlegroups.com.

Daniel Moll

unread,
Nov 29, 2016, 2:59:20 PM11/29/16
to Gatling User Group
Hi Ruben,

Thanks for your reply. Do you happen to remember if you were indeed using IBM MQ jars? And if so, if you were connecting in in client mode or bindings mode?

cheers

Daniel

Daniel Moll

unread,
Nov 29, 2016, 4:38:55 PM11/29/16
to Gatling User Group
Hi,

I managed to get the setup working with the IBM MQ jars in using bindings mode. This is my config:

val jmsConfig = jms
.connectionFactoryName("[connectionFactoryName in .bindings file]")
.url("file://C:/temp/gatling-test/src/test/resources") //path to directory containing .bindingsfile
.contextFactory("com.sun.jndi.fscontext.RefFSContextFactory")
.listenerCount(1)
.usePersistentDeliveryMode

exec(
jms("F&F testing")
.send
.queue("QUEUE")
.textMessage(ElFileBody("some.xml")
)

The following jars need to be in the classpath:

com.ibm.mq.headers.jar
com.ibm.mq.jmqi.jar
com.ibm.mqjms.jar
dhbcore.jar
fscontext.jar
jms.jar
jndi.jar
providerutil.jar



cheers

Daniel
Reply all
Reply to author
Forward
0 new messages