使用Active MQ提高性能 [英] Increasing the performance with Active MQ

查看:105
本文介绍了使用Active MQ提高性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用java编写的生产者程序,它将一些监听的数据包放在Apache Active MQ中,它有6个Q.一个有6个线程的消费者程序正在使用来自这个6 Q的数据包并插入到mysql db中,然后使用s webservice调用进行其他一些处理。该表包含17千万的数据。现在我无法快速处理数据。一个线程处理一个数据包所花费的平均时间是180毫秒。此时间早于将近100毫秒,现在增加到180毫秒。现在消费很慢,而且会影响业务连续性。



请推荐你的想法以提高性能。增加线程数量会不会有帮助?

感谢您的时间

I have a producer program written in java which puts some listened packets in Apache Active MQ which is having 6 Qs. One consumer program with 6 threads is consuming the packets from this 6 Q and inserts into mysql db and then does some other processed using s webservice call. The table contains 17 crores of data. Now I am not able to fastly process the data. The average time taken by one thread in processing one packet is 180 ms. Earlier this time was nearly 100 ms., Now it increased up to 180 ms. Now the consumption is very slow and it affects business continuity.

Please recommend your Ideas for increasing the performance.Will increasing the no of threads help ?
Thanks for your time

推荐答案

首先找出您花在大部分时间的电话链中的哪个位置,然后开始优化。



很少有人可以帮助您提供您提供的少量信息,而无需亲自查看您的系统。
Start by finding out where in your call chain you are spending most time in, and start optimizing there.

There is very little anyone can help you with the little information you have provided and without seeing your system firsthand.


这篇关于使用Active MQ提高性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆