[AMQP] QPID安装与测试
来源:互联网 发布:mac截屏快捷键 编辑:程序博客网 时间:2024/05/16 11:03
apache qpidc安装:
必须安装:
* boost <http://www.boost.org> (1.35)(*)
* e2fsprogs <http://e2fsprogs.sourceforge.net/> (1.39)
* pkgconfig <http://pkgconfig.freedesktop.org/wiki/> (0.21)
可选:
集群特性依赖:
* openais <http://openais.org/> (0.80.3)
XML依赖:
* xqilla <http://xqilla.sourceforge.net/HomePage> (2.0.0)
* xerces-c <http://xerces.apache.org/xerces-c/> (2.7.0)
SSL 支持依赖:
* nss <http://www.mozilla.org/projects/security/pki/nss/>
* nspr <http://www.mozilla.org/projects/nspr/>
基础依赖:
* gcc <http://gcc.gnu.org/> (3.4.6)
* GNU make <http://www.gnu.org/software/make/> (3.8.0)
* autoconf <http://www.gnu.org/software/autoconf/> (2.61)
* automake <http://www.gnu.org/software/automake/> (1.9.6)
* help2man <http://www.gnu.org/software/help2man/> (1.36.4)
* libtool <http://www.gnu.org/software/libtool/> (1.5.22)
* doxygen <ftp://ftp.stack.nl/pub/users/dimitri/> (1.5.1)
* graphviz <http://www.graphviz.org/> (2.12)
* ruby 1.8 <http://www.ruby-lang.org> (1.8.4)
安装中遇到的问题:
checking boost/shared_ptr.hpp usability... nochecking boost/shared_ptr.hpp presence... nochecking for boost/shared_ptr.hpp... noconfigure: error: Missing required header files.:hfqaqpidsvr02:root > rpm -qa|grep boost
4 Install boost
然后把uuid目录拷过去 cp -r lib/uuid/ /usr/includechecking boost/shared_ptr.hpp usability... yeschecking boost/shared_ptr.hpp presence... yeschecking for boost/shared_ptr.hpp... yesIssue2 for UUID/uuid.h--reference http://www.cnblogs.com/jiamei/checking uuid/uuid.h usability... nochecking uuid/uuid.h presence... nochecking for uuid/uuid.h... noconfigure: error: Missing required header files.tar xvzf e2fsprogs-1.41.14.tar.gz进入e2fsprogs-1.41.14目录后执行/configure --prefix=/usr/local/e2fsprogsmake make install
qpid/log/Logger.cpp:26:43: error: boost/pool/detail/singleton.hpp: No such file or directoryqpid/log/Logger.cpp: In static member function 'static qpid::log::Logger& qpid::log::Logger::instance()':qpid/log/Logger.cpp:48: error: 'boost::details::pool' has not been declaredqpid/log/Logger.cpp:48: error: expected primary-expression before '>' tokenqpid/log/Logger.cpp:48: error: '::instance' has not been declaredmake[3]: *** [qpid/log/Logger.lo] Error 1make[3]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[1]: *** [all] Error 2make[1]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make: *** [all-recursive] Error 1
Fix-method:hfqaqpidsvr01:root > cp /usr/local/xuguang/software/qpid-0.14/cpp/boost/pool/detail/singleton.hpp /usr/include/boost/pool/detail/ -r/usr/include/boost/lexical_cast.hpp:1184: warning: ISO C++ does not support the '%lg' printf formatmake[3]: *** [qpid/types/Variant.lo] Error 1make[3]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[1]: *** [all] Error 2make[1]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make: *** [all-recursive] Error 1Fix-method-rootcause boost库没有完全安装好重新安装依赖项http://hi.baidu.com/%CC%D8%B0%AE%C0%B6%C1%AB%BB%A8/blog/item/74303121fc436782033bf6de.htmlyum install boost-devel e2fsprogs-devel pkgconfig gcc-c++ make autoconf automake ruby libtool help2man doxygen graphviz -y
或者 yum install boost-devel e2fsprogs-devel pkgconfig gcc-c++ autoconf automake ruby libtool help2man doxygen graphviz -y(可以fix yum安装的问题)
yum install openais-devel cman-devel cyrus-sasl-devel nss-devel nspr-devel xqilla-devel xerces-c-devel ruby-devel swig -y
启动:
1.qpidd -p 5673 -d
Cluster 配置与安装
Run command
/usr/local/xuguang/software/qpid-0.14/cpp/src/.libs/lt-qpidd --data-dir /usr/local/qpid/data_2/ --log-enable info+ --log-to-file /usr/local/qpid/qpidd_2.log -d --auth 0 -p 5673 --enable-timestamp yes --cluster-name='HFQA_one
性能测试
Testenv:
Broker:Number 1 run on VM 2 cpu 8G memory
Sender../map_sender -T 100 -N 100 -U 10.224.57.128:5673 (100 thread eachthread send 100 timesTo the broker)
Receive./map_receiver 10.224.57.128:5673 > receive.result(each message I have addthe timestamp)
TestResult
1.Sender 10000 message cost Time cost is5598.691895 ms so we can define the Send Request1785 request/s2. Receivereceive 10000 messages cost Time.will be nearly 500request/s
3 Broker CPU/Memory
CPU:We can get the CPU high level when allthread send the message on the Broker ,when the message send done ,it will down
Memory.All message will be keep on Queue ,after the receive have receive done
- [AMQP] QPID安装与测试
- AMQP与QPID简介
- AMQP与QPID简介
- AMQP与QPID简介
- [AMQP] RabbitMQ 安装与测试
- AMQP之QPID和RabbitMQ
- Starting Qpid AMQP daemon: Daemon startup failed
- linux下 php安装AMQP扩展 与AMQP收发消息
- ubuntu下安装qpid
- QPID集群安装部署
- AMQP之RabbitMQ安装与配置
- Python通过amqp消息队列协议中的Qpid实现数据通信
- Apache Qpid:一个AMQP的开源实现
- [2]AMQP(高级消息队列协议) ----QPID不得不说的事
- Qpid
- 如何安装执行 qpid tools
- 安装 qpid 缺少uuid.h
- JBOSS与QPID端口冲突
- Linux批量重命名
- wamp环境下安装memcache
- 数学系学生要看的十部影视
- 用CSS滤镜实现颜色渐变效果
- xcode工程设置个人和公司名称的版权信息
- [AMQP] QPID安装与测试
- makefile 文法小结
- XML Publisher RTF模版开发技巧
- 对txt文件进行加密的小程序
- JQuery限制文本显示长度,多余部分显示省略号...
- The five dysfunction of a Team
- C++运算符重载
- 用命令往指定设备中安装android应用程序
- 凡客诚品 商品详情中 图片循环