JMX和RMI之间的区别 [英] Difference between JMX and RMI

查看:908
本文介绍了JMX和RMI之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JMX的目的是什么?它用于什么?我一直在浏览JMX上的一些教程,他们所做的只是注册一些Mbeans并从jconsole调用那些Mbeans。如果这是它的目的,那么JMX和RMI(远程过程调用)之间的区别是什么?

What is the purpose of JMX and what is it used for? I have been scanning through some of the tutorials on JMX and all they do is register some Mbeans and invoke those Mbeans from jconsole. If that is its purpose, then what is the difference between JMX and RMI (remote procedure call)?

提前致谢!

推荐答案

远程过程调用是一种分布式计算概念,其中在一台主机上运行的进程可以调用另一台远程主机上的过程。 Java中的RMI是这一概念的一种实现。

'Remote Procedure Call' is a distributed computing concept where a process running on one host can call a procedure on another remote host. RMI in Java is one implementation of this concept.

MBean是bean类,可以通过JMX总线注册,以侦听到达总线的事件或在总线上发送事件或从中收集各种数据其他参与的Mbeans等最常用于应用服务器等的健康监控。它可以检查分析引擎的活动连接数,可用内存量和许多其他统计数据。是的,可以使用RPC机制远程调用它们。这对于其作为数据收集器的功能至关重要,因为在应用程序服务器集群中,必须从所有收集器中提取数据并在一个地方进行整理以进行分析。

MBeans are bean classes that can be registered with a JMX bus to listen to events arriving on the bus or to send events on the bus or to collect various sorts of data from the other participating Mbeans etc. It is most often used for health monitoring of application servers etc. It can check the number of active connections, amount of free memory and many other statistics to an analysis engine. And yes, they can be invoked remotely using an RPC mechanism. This is vital to its functioning as data collectors since in a cluster of application servers the data has to be fetched from all the collectors and collated at one place for analysis.

这篇关于JMX和RMI之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆