---
title: "ActiveMQ WebConsole的一些参数"
author: "三问飞絮"
date: "2013-09-27T21:31:30Z"
tags: []
categories: ["企业架构"]
slug: "activemq-webconsole"
draft: false
lastmod: "2013-09-27T21:36:07Z"
id: 1948434
url: "https://simon-fish.iteye.com/blog/1948434"
---

![](http://dl2.iteye.com/upload/attachment/0089/7452/795d71d8-0999-3812-84bc-5fd9e927d719.png)  
 

     看了这个表格，具体的一列总是看不是很明白。查了一下：

 

```
Pending Queue Size - The number of messages in the queue that have yet to be delivered to any client 
Dispatched Counter - The number of message in the queue that have been delivered to a client, but not yet acknowledged 
Enqueue Counter - The number of messages that have been sent to this queue 
Dequeue Counter - the number of messages that have been consumed from this queue 
```

 

 

     经过实际测试之后：

    Pending Queue Size：是当前还没有被接收的消息数量。

    Dispatched Queue Size：是当前已经被客户端接收，但还没有ack回执同时commit的消息数量。

    Dispatched Counter：计数器；计算被客户端接收的次数，不管有没有收到加热。

    Enqueue Counter：入队列的消息数

    Dequeue Counter：出队列的消息数（既已被客户端以接收并回执）

 

    计算公式为：

           Enqueue Counter = Pending Queue Size + Dispatched Queue Size + Dequeue Counter

 

 

    以下是从官网截取：

- Enqueue Count - the total number of messages sent to the queue since the last restart
- Dequeue Count - the total number of messages removed from the queue (ack'd by consumer) since last restart
- Inflight Count - the number of messages sent to a consumer session and have not received an ack
- Dispatch Count - the total number of messages sent to consumer sessions (Dequeue + Inflight)
- Expired Count - the number of messages that were not delivered because they were expired