在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. Springmvc跳转路径

    forward转发地址栏不发生变化,redirect跳转地址栏变化,forward能把request域中的参数带给下一个,而redirect不会带过去,但是Springmvc的model虽然是基于re ...

  2. 简学Python第五章__模块介绍,常用内置模块

    Python第五章__模块介绍,常用内置模块 欢迎加入Linux_Python学习群  群号:478616847 目录: 模块与导入介绍 包的介绍 time &datetime模块 rando ...

  3. OpenStack日志搜集分析之ELK

    ELK 安装配置简单,用于管理 OpenStack 日志时需注意两点: Logstash 配置文件的编写 Elasticsearch 日志存储空间的容量规划 另外推荐 ELKstack 中文指南. E ...

  4. Java JDK、Tomcat、Eclipse环境配置

    Java 下载地址:http://www.oracle.com/ 根据提示一步一步进行安装,通常安装到C:\Program Files\Java,包含: 环境变量配置: JAVA_HOME:C:\Pr ...

  5. myeclipse2017复制项目后如何改web context root

    点中项目,然后alt+enter,或者 然后

  6. [thinkphp使用phpspreadsheet时出现]Cannot redeclare xxxxxx() (previously declared in C:\WWW\xxx.xxx:xxx)

    [thinkphp使用phpspreadsheet时出现]Cannot redeclare xxxxxx() (previously declared in C:\WWW\xxx.xxx:xxx) 一 ...

  7. 用createinstallmedia创建可恢复的OSX安装DMG

    准备 从App Store下载OS X安装程序,下载完成,会在应用程序目录 /Applications 下找到类似 Install OS X 10.xxxxxx.app(中文名如:安装 OS X 10 ...

  8. I.MX6 dts 在哪里、怎么编译

    /************************************************************************ * I.MX6 DTS 在哪里.怎么编译 * 说明: ...

  9. Jenkins之构建触发器配置(转载)

    构建触发器配置,当你在文本框中输入配置的时间后,文本框下方会有时间解释,这样可以很好的看到自己配置的时间对不对. 可以清晰看到我的配置第一个运行时间是周五上午10点执行,第二次是星期六上午10点.   ...

  10. CentOS X64上64位Oracle 11gR2 静默安装

    CentOS 6.2 X64上64位Oracle 11gR2 静默安装 www.linuxidc.com/Linux/2012-03/56606p4.htm HP-UX静默安装oracle11g过程 ...