---
title: "activemq"
author: "navyu"
date: "2017-01-20T13:13:41Z"
tags: []
categories: ["开源软件"]
slug: "activemq"
draft: false
lastmod: "2017-01-20T13:13:41Z"
id: 2354208
url: "https://navyu.iteye.com/blog/2354208"
---

activemq 

官网
http://activemq.apache.org/

下载
http://activemq.apache.org/activemq-5143-release.html

文档
http://activemq.apache.org/getting-started.html

启动
./activemq start


监控
http://blog.sina.com.cn/s/blog_6795e13e0102whos.html
ActiveMQ默认启动时，启动了内置的jetty服务器，提供一个用于监控ActiveMQ的admin应用。 
admin：http://127.0.0.1:8161/admin/

用户名和密码都是admin

ActiveMQ默认使用的TCP连接端口是61616, 通过查看该端口的信息可以测试ActiveMQ是否成功启动 netstat -an|find “61616”


 ./activemq query>yu.txt
 ./activemq query --view Name,EnqueueCount,DequeueCount
./activemq query -QQueue=* --view Name,QueueSize,EnqueueCount,DequeueCount,Subscriptions
./activemq query --help
./activemq query -QTopic=* --view Name,QueueSize,EnqueueCount,DequeueCount,Subscriptions

-xQTopic 排除那些topic
./activemq query -QTopic=* -xQTopic=ActiveMQ.Advisory.* --view Name,QueueSize,EnqueueCount,DequeueCount,Subscriptions