欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

13.4 性能优化实战 博客分类: ActiveMQ in Action 翻译英文文档翻译 ActiveMQ性能调优实战 

程序员文章站 2024-02-12 14:22:40
...

博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1805.html

 

13.4 Tuning in action

13.4 性能优化实战

 

Let’s demonstrate pulling some of these performance-tuning options together with

an example application. We’ll simulate a real-time data feed, where the producer is

co-located with an embedded broker and a consumer listens for messages remotely.

This is shown in figure 13.7.

 

让我们通过一个例子来看看如何综合使用前面介绍的性能调优方法.我们将用程序模拟一个

实时的数据源,该程序中消息生产者和一个嵌入时代理部署在一起,同时使用消息消费者

监听远程的消息.

 

We’ll demonstrate using an embedded broker to reduce the overhead of publishing

the data  to the  ActiveMQ broker.  We’ll show  some additional  tuning on  the

message producer to reduce message  copying. The embedded broker itself  will be

configured with flow control  disabled and memory limits  set to allow for  fast

streaming of messages through the broker.

 

我们将阐如何述使用一个嵌入式代理来减少将消息发送到ActiveMQ代理的开销.我们还将调整

消息消费者的一些选项来降低消息的拷贝.嵌入式代理将被配制成禁用流控制并且使用内存

限制以允许代理快速处理消息流.

 

Finally the message consumer will be configured for straight-through message

delivery, coupled with a high prefetch limit and optimized message acknowledgment.

最后,消息消费者将会配置成直接通过分发方式,同时配置一个高prefetch limit值以及配置

优化过的消息确认模式.

 

..............................

博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1805.html