Binay payload uses lots of resource ?
Hello,
I’m facing an issue with the following setup. I have 100s of client from JMeter, all of them are connected via Stomp over Websocket to an Middleware. (ActiveMQ or ActiveMQ Artemis)
-
Case 1:
- all my clients are connected to ActiveMQ (via Stomp over Websocket) and subscribed to the same topic.
- I send 10 messages to the topic of 20Kb payload size
- Each client gets its message which is seen as Text message because of how ActiveMQ handles websocket
- Everything is fine, not much CPU or heap usage by JMeter
-
Case 2:
- all my clients are connected to ActiveMQ Artemis (via Stomp over Websocket) and subscribed to the same topic.
- I send 10 messages to the topic of 20Kb payload size
- Each client gets its message which is seen as Binary message because of how ActiveMQ Artemis handles websocket
- The CPU and heap usage of JMeter is huge, like 5 sec of 100% CPU, it almost freezes, sometime I get an out of memory error
My question is the following: does the plugin handles differently binary message and text message ? It seems that handling binary (and not that big) messages uses lots of resource compared to text message.
Thanks in advance for your response!
Regards,
Nicolas
Comments (10)
-
repo owner -
reporter Interesting! Thanks for the investigation.
Regards,
Nicolas
-
repo owner - changed status to resolved
fix: do not build large debug message when debug logging is disabled. This fixes issue 119 https://bitbucket.org/pjtr/jmeter-websocket-samplers/issues/67/change-request-accept-string-jmeter
→ <<cset 63f3fc1080c2>>
-
repo owner Can you try 1.2.2 and let me know if it is better?
-
reporter Hi Peter,
I should be able to test this on monday, I’ll let you know!
-
reporter Hello Peter,
The issue seems to be solved. Thanks a lot for your reactivity and this new version!
Regads, Nicolas
-
repo owner - changed status to closed
Ok, nice. Thanks for reporting!
What name should i include in the acknowledgements?
-
reporter You mean you need a username ? you can set ncasaux if that’s what you meant
-
repo owner Whatever you like. Most people are referred with their real name (see readme), but it’s up to you…
-
reporter Ok I got it! You can put my real name then: Nicolas Casaux. Thanks!
- Log in to comment
Hi Nicolas,
Not that i was aware of
. I think i found the cause (creating debug log messages even when debug logging is not enabled). The fix is trivial, but i need a little time for testing and creating a release.
Thanks for your feedback.
Regards,
Peter