简体   繁体   English

如何配置JMeter在本地ActiveMQ服务器上命中特定队列?

[英]How to configure JMeter to hit a specific queue on my local ActiveMQ server?

I have a specific XML-based messaged format: 我有一个特定的基于XML的消息格式:

<myMessage>
    <!-- A whole bunch of stuff -->
</myMessage>

How do I configure JMeter: 如何配置JMeter:

在此处输入图片说明

...to send, say, 10K <myMessage> s to an all-messages queue on an ActiveMQ server running locally? ...发送例如10K <myMessage>到本地运行的ActiveMQ服务器上的all-messages队列?

You can read this: 您可以阅读以下内容:

You have different options for message sources: 对于消息源,您有不同的选择:

  • Use Random file from files located in a folder 使用文件夹中文件中的随机文件

  • Use textarea to put message, this message will contain some variable loaded from CSV 使用textarea放置消息,此消息将包含一些从CSV加载的变量

Note: 注意:

  • Proxy feature only exists from HTTP protocole 代理功能仅存在于HTTP协议中

  • Your screenhot is strange, I don't have these option in JMeter. 您的屏幕截图很奇怪,JMeter中没有这些选项。 Furthermore, you should upgrade to last versions (2.7 or 2.8) of JMeter as it contains many fixes regarding JMS. 此外,您应该升级到JMeter的最新版本(2.7或2.8),因为它包含有关JMS的许多修复程序。

There should be an option to "record" traffic being as an proxy in JMeter. 在JMeter中应该有一个选项可以“记录”流量作为代理。 After setting up your proxy (which will redirect your traffic to your server and record your XML payloads), you can replay your macros with the changes you desire and can even read from files for different inputs... good luck. 设置代理(将流量重定向到服务器并记录XML有效载荷)后,您可以根据需要的更改重播宏,甚至可以从文件中读取不同的输入...祝您好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM