Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ActiveMQ rest消息服务的性能不佳?_Java_Jms_Activemq - Fatal编程技术网

Java ActiveMQ rest消息服务的性能不佳?

Java ActiveMQ rest消息服务的性能不佳?,java,jms,activemq,Java,Jms,Activemq,我尝试使用restful post请求发布消息,但无法发布超过200 msg/秒的消息 我的CPU利用率超过90%,我使用jmeter进行负载测试。 amazon EC2上我的ActiveMQ M1.large实例类型, 我还配置了线程大小等性能变化 我跟在后面 http://stackoverflow.com/questions/5487851/activemq-via-rest-high-throughput-jetty-configuration http://www.pepperdust

我尝试使用restful post请求发布消息,但无法发布超过200 msg/秒的消息 我的CPU利用率超过90%,我使用jmeter进行负载测试。 amazon EC2上我的ActiveMQ M1.large实例类型, 我还配置了线程大小等性能变化 我跟在后面

http://stackoverflow.com/questions/5487851/activemq-via-rest-high-throughput-jetty-configuration
http://www.pepperdust.org/?p=150

export JAVA_OPTS="-Xms5G" 

export ACTIVEMQ_OPTS_MEMORY ="-Xms5G"

ulimit -n 65000

然后也不能以超过200 msg/秒的速度发布。好吧,这里有很多变量。 刚刚在我的笔记本电脑上本地安装的vanilla activemq上做了一个简单的jmeter测试

Jmeter: 10条线, ~5K文本文件/消息

=~370持续味精/秒


您在jmeter中的设置是什么?您是否正在考虑改用JMS?

我正在使用url在ActiveMQ上使用rest post请求。您能给我一些指导吗-