JMX 的 Perl 接口 jmx4perl

码农软件 · 软件分类 · 其他开发相关 · 2019-11-01 10:59:33

软件介绍

Jmx4Perl 为 Perl 语言提供了用来访问 Java 企业版基于 JMX 的管理接口的方法。它需要在 Java 应用中安装一个大约 30k 的代理接口,提供基于 HTTP/JSON 的访问 JMX MBeans 的方法。

示例代码:

   my $jmx = new JMX::Jmx4Perl(url => "http://localhost:8080/j4p-agent");
my $request = new JMX::Jmx4Perl::Request(type => READ_ATTRIBUTE,
mbean => "java.lang:type=Memory",
attribute => "HeapMemoryUsage",
path => "used");
my $response = $jmx->request($request);
print "Memory used: ",$response->value(),"\n";

本文地址:https://www.codercto.com/soft/d/18024.html

Looking For a Challenge

Looking For a Challenge

the University of Warsaw / the University of Warsaw / 2012-11 / 0

LOOKING FOR PROGRAMMING CHALLENGES? Then this book is for you! Whether it's the feeling of great satisfaction from solving a complex problem set, or the frustration of being unable to solve a task,......一起来看看 《Looking For a Challenge》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

html转js在线工具
html转js在线工具

html转js在线工具