0
# Management and Monitoring
1
2
ActiveMQ provides comprehensive JMX-based management interfaces for monitoring broker health, performance, and configuration in production environments.
3
4
## Capabilities
5
6
### Broker Management
7
8
```java { .api }
9
public interface BrokerViewMBean {
10
String getBrokerId();
11
String getBrokerName();
12
long getTotalEnqueueCount();
13
long getTotalDequeueCount();
14
long getTotalConsumerCount();
15
void gc() throws Exception;
16
void resetStatistics();
17
}
18
19
public class BrokerView implements BrokerViewMBean {
20
public String getBrokerVersion();
21
public boolean isStatisticsEnabled();
22
public void setStatisticsEnabled(boolean statisticsEnabled);
23
}
24
```
25
26
### Destination Management
27
28
```java { .api }
29
public interface QueueViewMBean extends DestinationViewMBean {
30
long getQueueSize();
31
void purge() throws Exception;
32
boolean removeMessage(String messageId) throws Exception;
33
CompositeData[] browse() throws OpenDataException;
34
}
35
36
public interface TopicViewMBean extends DestinationViewMBean {
37
int getConsumerCount();
38
long getEnqueueCount();
39
long getDequeueCount();
40
}
41
```
42
43
### Connection Management
44
45
```java { .api }
46
public interface ConnectionViewMBean {
47
String getConnectionId();
48
String getRemoteAddress();
49
String getUserName();
50
void stop() throws Exception;
51
long getEnqueueCount();
52
long getDequeueCount();
53
}
54
```