在ActiveMQ的API中,内置了Jolokia 。

可以使用jmx4perl来安装:

$ perl -MCPAN -e shell
Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) cpan[]> install JMX::Jmx4Perl
...
...
jmx4perl
======== jmx4perl is a command line utility for accessing Jolokia agents
(www.jolokia.org). It can be used for script based exploration
and easy inspection of the JMX space. Install 'jmx4perl' ? (y/n) [y ]
....

其余的库可以自行安装

root@kali:~# j4psh http://192.168.197.25:8161/api/jolokia -user admin -password admin
[192.168.197.25:] : help
cd -- Enter a domain
connect -- Connect to a server by its URL or symbolic name
error -- Show last error (if any)
help -- Print online help
history -- Command History
ls -- List MBean Domains
quit -- Quit
servers -- Show all configured servers
[192.168.197.25:] : ls
JMImplementation:
type=MBeanServerDelegate jolokia:
type=Config
type=Discovery
type=ServerHandler io.fabric8.insight:
type=LogQuery java.nio:
name=direct,type=BufferPool
name=mapped,type=BufferPool jmx4perl:
type=Config com.sun.management:
type=DiagnosticCommand
type=HotSpotDiagnostic org.apache.activemq:
brokerName=localhost,connector=clientConnectors,connectorName=amqp,type=Broker
brokerName=localhost,connector=clientConnectors,connectorName=mqtt,type=Broker
brokerName=localhost,connector=clientConnectors,connectorName=openwire,type=Broker
brokerName=localhost,connector=clientConnectors,connectorName=stomp,type=Broker
brokerName=localhost,connector=clientConnectors,connectorName=ws,type=Broker
brokerName=localhost,destinationName=121.42..208_1234,destinationType=Topic,type=Broker
brokerName=localhost,destinationName=ActiveMQ.Advisory.MasterBroker,destinationType=Topic,type=Broker
brokerName=localhost,destinationName=ActiveMQ.Advisory.Queue,destinationType=Topic,type=Broker
brokerName=localhost,destinationName=ActiveMQ.Advisory.Topic,destinationType=Topic,type=Broker
brokerName=localhost,destinationName=abc.def,destinationType=Queue,type=Broker
brokerName=localhost,instanceName=KahaDBPersistenceAdapter[/data/apache-activemq-5.15./data/kahadb_Index_/data/apache-activemq-5.15./data/kahadb],service=PersistenceAdapter,type=Broker
brokerName=localhost,service=Health,type=Broker
brokerName=localhost,service=Log4JConfiguration,type=Broker
brokerName=localhost,type=Broker java.lang:
name=Code Cache,type=MemoryPool
name=CodeCacheManager,type=MemoryManager
name=Copy,type=GarbageCollector
name=Eden Space,type=MemoryPool
name=MarkSweepCompact,type=GarbageCollector
name=Metaspace Manager,type=MemoryManager
name=Metaspace,type=MemoryPool
name=Survivor Space,type=MemoryPool
name=Tenured Gen,type=MemoryPool
type=ClassLoading
type=Compilation
type=Memory
type=OperatingSystem
type=Runtime
type=Threading java.util.logging:
type=Logging [192.168.197.25:] : cd java.lang
[192.168.197.25: java.lang] : ls
java.lang:
name=Code Cache,type=MemoryPool
name=CodeCacheManager,type=MemoryManager
name=Copy,type=GarbageCollector
name=Eden Space,type=MemoryPool
name=MarkSweepCompact,type=GarbageCollector
name=Metaspace Manager,type=MemoryManager
name=Metaspace,type=MemoryPool
name=Survivor Space,type=MemoryPool
name=Tenured Gen,type=MemoryPool
type=ClassLoading
type=Compilation
type=Memory
type=OperatingSystem
type=Runtime
type=Threading [192.168.197.25: java.lang] : cd type=ClassLoading
[192.168.197.25: java.lang:type=ClassLoading] : ls
java.lang:type=ClassLoading Attributes:
TotalLoadedClassCount long TotalLoadedClassCount
LoadedClassCount int LoadedClassCount
ObjectName ObjectName ObjectName
UnloadedClassCount long UnloadedClassCount
Verbose boolean Verbose [192.168.197.25: java.lang:type=ClassLoading] : cat ObjectName
{
objectName => 'java.lang:type=ClassLoading'
}
[192.168.197.25: java.lang:type=ClassLoading] :

使用jmx4perl和j4psh接管Jolokia的更多相关文章

  1. 让Chrome 接管邮件连接,收发邮件更方便了

    页面中除了传统的超链接外,还可以将邮箱地址写入<a>标签,意思不表自明,当然是用户点击后就会打开相应的邮件客户端向这个连接指向的邮件地址发邮件. <a href="mail ...

  2. Activemq Jolokia

    打开JMX <broker … useJmx="true"> … <managementContext> <managementContext cre ...

  3. MVC之前的那点事儿系列(9):MVC如何在Pipeline中接管请求的?

    文章内容 上个章节我们讲到了,可以在HttpModules初始化之前动态添加Route的方式来自定义自己的HttpHandler,最终接管请求的,那MVC是这么实现的么?本章节我们就来分析一下相关的M ...

  4. 010 使用netmap API接管网卡,接收数据包,回应ARP请求

    一.本文目的: 上一节中,我们已经在CentOS 6.7 上安装好了netmap,也能接收和发送包了,这节我们来调用netmap中的API,接管网卡,对网卡上收到的数据包做分析,并回应ARP请求. 二 ...

  5. Windows Server 2008 R2 创建辅助DNS服务器并接管主要DNS服务器

    公司需求: Zhuyu公司局域网有一台主要DNS服务器,经领导讨论需要规划安装一台辅助DNS服务器备用. 功能需求: 当主要DNS服务器宕机或系统崩溃,辅助DNS服务器能接管主要DNS服务器工作,并且 ...

  6. php session session_set_save_handler 接管所有的session管理工作

    一个已知管用的方法是,使用session_set_save_handler,接管所有的session管理工作,一般是把session信息存储到数 据库,这样可以通过SQL语句来删除所有过期的sessi ...

  7. C#- 基于Lumisoft.NET组件的POP3邮件接管和删除操纵

    Lumisoft.NET组件是一个很是强大的邮件发送.邮件接管等功能的开源组件,一般用它来处理惩罚邮件的相干操纵,是很是合适的.之前也写过一些该组件的漫笔文章,不过主如果哄骗来发送邮件居多,比来因为项 ...

  8. 传京东副总裁蒉莺春或将接管POP业务-搜狐IT

    传京东副总裁蒉莺春或将接管POP业务-搜狐IT 传京东副总裁蒉莺春或将接管POP业务

  9. MVC如何在Pipeline中接管请求的?

    MVC如何在Pipeline中接管请求的? 文章内容 上个章节我们讲到了,可以在HttpModules初始化之前动态添加Route的方式来自定义自己的HttpHandler,最终接管请求的,那MVC是 ...

随机推荐

  1. 【P3522】TEM(单调队列+DP)

    这个题,题目很长,然而亲爱的翻译已经帮你读完题了,一句话题意. 要求不下降的最长,那么这一段肯定满足队首的左区间不大于队尾的右区间,单调队列容易求解. #include<iostream> ...

  2. HBase-存储-文件

    文件 HBase使用一个HDFS中可配置的根目录,默认设为“/hbase”.可使用hadoop fs -lsr /hbase查看目录结构,文件可以被分为两类,一类位于HBase根目录下,另一类位于根目 ...

  3. Codeforces Round #367 (Div. 2) D. Vasiliy's Multiset trie树

    D. Vasiliy's Multiset time limit per test 4 seconds memory limit per test 256 megabytes input standa ...

  4. Windows 安装Mysql8.0 绿色包

    〇.准备: MySQL8.0 Windows zip包下载地址:https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.11-winx64.zip 环 ...

  5. 英语发音规则---U字母-[复习中]

    英语发音规则---U字母 一.总结 一句话总结:(注:本文所有//的音标为英音音标,[]的音标为美音音标) 1.U在开音节中发[ju ]/ ju: /? duty /'djuːtɪ/ ['dʊti] ...

  6. c++primer 第五章编程练习答案

    5.9.1 #include<iostream> int main() { using namespace std; ; cout << "input first i ...

  7. Java匿名对象和匿名类总结

    一.匿名对象 匿名对象是没有名字的实体,也就是该实体没有对应的变量名引用  匿名对象的特征:            创建的匿名类的对象只能够调用一次            匿名对象只在堆内存中开辟空间 ...

  8. mosquitto配置文件说明

    安装完成之后,所有配置文件会被放置于/etc/mosquitto/目录下,其中最重要的就是Mosquitto的配置文件,即mosquitto.conf,以下是详细的配置参数说明. # ======== ...

  9. 我的 Linux 配置

    系统版本 Ubuntu 18.04 一名老年弱智 OI 选手的 Linux 配置 文本编辑器: Sublime Text 中文补丁,关闭自动补全,自动联想,括号匹配,字号 15 编译器: g++ (然 ...

  10. CodeForces - 138C: Mushroom Gnomes - 2 (线段树&概率&排序)

    One day Natalia was walking in the woods when she met a little mushroom gnome. The gnome told her th ...