Java Management Extensions

Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices (such as printers) and service-oriented networks. Those resources are represented by objects called MBeans (for Managed Bean). In the API, classes can be dynamically loaded and instantiated. Managing and monitoring applications can be designed and developed using the Java Dynamic Management Kit.[1]

JSR 003[2] of the Java Community Process defined JMX 1.0, 1.1 and 1.2. JMX 2.0 was being developed under JSR 255, but this JSR was subsequently withdrawn.[3] The JMX Remote API 1.0 for remote management and monitoring is specified by JSR 160.[4] An extension of the JMX Remote API for Web Services was being developed under JSR 262.[5]

Adopted early on by the J2EE community, JMX has been a part of J2SE since version 5.0. "JMX" is a trademark of Oracle Corporation.

Architecture

JMX architecture

JMX uses a three-level architecture:

  1. The Probe level – also called the Instrumentation level – contains the probes (called MBeans) instrumenting the resources
  2. The Agent level, or MBeanServer – the core of JMX. It acts as an intermediary between the MBean and the applications.
  3. The Remote Management level enables remote applications to access the MBeanServer through connectors and adaptors. A connector provides full remote access to the MBeanServer API using various communication (RMI, IIOP, JMS, WS-* …), while an adaptor adapts the API to another protocol (SNMP, …) or to Web-based GUI (HTML/HTTP, WML/HTTP, …).

Applications can be generic consoles (such as JConsole[6] and MC4J[7]) or domain-specific (monitoring) applications. External applications can interact with the MBeans through the use of JMX connectors and protocol adapters. Connectors serve to connect an agent with a remote JMX-enabled management application. This form of communication involves a connector in the JMX agent and a connector client in the management application.

The Java Platform, Standard Edition ships with one connector, the RMI connector, which uses the Java Remote Method Protocol that is part of the Java remote method invocation API. This is the connector which most management applications use.

Protocol adapters provide a management view of the JMX agent through a given protocol. Management applications that connect to a protocol adapter are usually specific to the given protocol.

Managed beans

A managed bean – sometimes simply referred to as an MBean – is a type of JavaBean, created with dependency injection. Managed Beans are particularly used in the Java Management Extensions technology – but with Java EE 6 the specification provides for a more detailed meaning of a managed bean.

The MBean represents a resource running in the Java virtual machine, such as an application or a Java EE technical service (transactional monitor, JDBC driver, etc.). They can be used for collecting statistics on concerns like performance, resources usage, or problems (pull); for getting and setting application configurations or properties (push/pull); and notifying events like faults or state changes (push).

Java EE 6 provides that a managed bean is a bean that is implemented by a Java class, which is called its bean class. A top-level Java class is a managed bean if it is defined to be a managed bean by any other Java EE technology specification (for example, the JavaServer Faces technology specification), or if it meets all of the following conditions:

  1. It is not a non-static inner class.
  2. It is a concrete class, or is annotated @Decorator.
  3. It is not annotated with an EJB component-defining annotation or declared as an EJB bean class in ejb-jar.xml.

No special declaration, such as an annotation, is required to define a managed bean.

A MBean can notify the MBeanServer of its internal changes (for the attributes) by implementing the javax.management.NotificationEmitter. The application interested in the MBean's changes registers a listener (javax.management.NotificationListener) to the MBeanServer. Note that JMX does not guarantee that the listeners will receive all notifications.[8]

Types

There are two basic types of MBean:

  • Standard MBeans implement a business interface containing setters and getters for the attributes and the operations (i.e., methods).
  • Dynamic MBeans implement the javax.management.DynamicMBean interface that provides a way to list the attributes and operations, and to get and set the attribute values.

Additional types are Open MBeans, Model MBeans and Monitor MBeans. Open MBeans are dynamic MBeans that rely on the basic data types. They are self-explanatory and more user-friendly. Model MBeans are dynamic MBeans that can be configured during runtime. A generic MBean class is also provided for dynamically configuring the resources during program runtime.

A MXBean (Platform MBean) is a special type of MBean that reifies Java virtual machine subsystems such as garbage collection, JIT compilation, memory pools, multi-threading, etc.

A MLet (Management applet) is a utility MBean to load, instantiate and register MBeans in a MBeanServer from an XML description. The format of the XML descriptor is:[9]

 <MLET CODE = ''class'' | OBJECT = ''serfile''
   ARCHIVE = ''archiveList''
   [CODEBASE = ''codebaseURL'']
   [NAME = ''objectName'']
   [VERSION = ''version'']
 >
   [arglist]
 </MLET>

Support

JMX is supported at various levels by different vendors:

See also

References

  1. ^ "Overview of the Java Dynamic Management Kit". docs.oracle.com. Retrieved January 12, 2021.
  2. ^ JSR 003: JavaTM Management Extensions (JMXTM) Specification
  3. ^ JSR 255: JavaTM Management Extensions (JMXTM) Specification, version 2.0
  4. ^ JSR 160: JavaTM Management Extensions (JMX) Remote API
  5. ^ JSR 262: Web Services Connector for Java Management Extensions (JMX) Agents
  6. ^ Using JConsole to Monitor Applications
  7. ^ "The MC4J project creates management software for J2EE application servers and other Java applications". Archived from the original on 2007-03-23. Retrieved 2006-08-27.
  8. ^ Java Management Extensions (JMX) – Best Practices
  9. ^ "MLet (Java 2 Platform SE 5.0)". Sun Microsystems. Retrieved 2008-06-22.
  10. ^ UnboundID Corp. Archived 2012-03-06 at the Wayback Machine
  11. ^ "Home".
  12. ^ "JMX Data Collection". www.logicmonitor.com. Retrieved 2020-11-20.
  13. ^ Apache Tomcat 6.0: Monitoring and Managing Tomcat (Tomcat manual)
  14. ^ "JMX Exporter". GitHub. 14 February 2022.

Further reading

Articles

Books

Read other articles:

Johann dari SachsenJohann dari Sachsen oleh Lucas Cranach (1509).Elektor SachsenBerkuasa5 Mei 1525 – 16 Agustus 1532PendahuluFriedrich IIIPenerusJohann Friedrich I dari SachsenInformasi pribadiKelahiran(1468-06-30)30 Juni 1468Meißen, Elektorat Sachsen, Kekaisaran Romawi SuciKematian16 Agustus 1532(1532-08-16) (umur 64)Schweinitz, Elektorat Sachsen, Kekaisaran Romawi SuciPemakamanSchlosskirche, WittenbergWangsaWangsa WettinAyahErnst dari SachsenIbuElisabeth dari BayernPasanganSophie da...

 

Tommaso IIISignore del PiemonteStemma In carica1259 –1282 PredecessoreTommaso II SuccessoreFilippo I Altri titoliconte di Moriana NascitaSavoia, 1250 circa MorteSaint-Genix-sur-Guiers, 16 maggio 1282 SepolturaAbbazia di Altacomba Casa realeSavoia PadreTommaso II di Savoia MadreBeatrice Fieschi ConsorteGuya di Borgogna FigliFilippoPietroTommasoAmedeo eGuglielmo ReligioneCattolico Contea di SavoiaBranca comitale dei Savoia Umberto I Biancamano (1000-1047) Figli Giovanni Amedeo I Co...

 

Un dantzari bailando un aurresku, con los chistularis al fondo, ante la parroquia de San Pío. El aurresku es una danza vasca que se baila a modo de reverencia. Es interpretada por un chistulari(es una flauta de 3 agujeros) (músico que toca el chistu y tamboril) y un dantzari (en español bailarín). Este baile es muy popular en bodas, homenajes y actos públicos en tierras vascas. Algunos pasos del aurresku. En Guipúzcoa, Vizcaya, Alava y en gran parte de Navarra es el baile solemne y el...

سفر حبقوقمعلومات عامةجزء من أسفار الأنبياء الصغار الاسم المختصر Hab (بالألمانية) العنوان חֲבַקּוּק (بالhbo) النوع الفني prophetic books (en) له طبعات أو ترجمات في Abakuk (en) المُؤَلِّف حبقوق entry in abbreviations table Habakkuk[1] لديه جزء أو أجزاء Habakkuk 1 (en) Habakkuk 3 (en) حبقوق 2 سفر ناحوم تعديل - تعديل مصدري -

 

Опис Головний копер шахти Інгульська Джерело http://rudana.in.ua/userfiles/uranovorudnie_5.jpg Час створення 15.01.10 Автор зображення Ліцензія Власник авторських прав на цей файл дозволяє будь-кому використовувати його з будь-якою метою, за умови збереження інформації про власника авторських пр

 

العلاقات الإيرانية التنزانية إيران تنزانيا   إيران   تنزانيا تعديل مصدري - تعديل   العلاقات الإيرانية التنزانية هي العلاقات الثنائية التي تجمع بين إيران وتنزانيا.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه المقارنة إ

Museum Nasional Monumen Prancis Museum Nasional Monumen Prancis sekarang menjadi museum gips monumen Prancis yang terletak di Palais de Chaillot, 1, place du Trocadéro et du 11 Novembre, Paris, Prancis. Nama museum mengingatkan pada Musée des Monuments français sebelumnya yang dibuka pada tahun 1795 oleh Alexandre Lenoir, yang memajang monumen sebenarnya dari seni Abad Pertengahan dan Renaisans Prancis, dipindahkan dari gereja dan châteaux setelah Revolusi Prancis. Museum Lenoir tetap buk...

 

أدابالين أدابالين الاسم النظامي 6-[3-(1-adamantyl)-4-methoxy-phenyl] naphthalene-2-carboxylic acid يعالج حب الشباب[1]  اعتبارات علاجية اسم تجاري Differin, Teva, Pimpal, Gallet, Adelene, Adeferin ASHPDrugs.com أفرودة مدلاين بلس a604001 فئة السلامة أثناء الحمل C طرق إعطاء الدواء دواء موضعي بيانات دوائية توافر حيوي Very low إخراج (فسل...

 

Not to be confused with Alec Chamberlain. Oxlade-Chamberlain redirects here. For his younger brother, see Christian Oxlade-Chamberlain. English footballer (born 1993) Alex Oxlade-Chamberlain Oxlade-Chamberlain playing for Beşiktaş in 2023Personal informationFull name Alexander Mark David Oxlade-ChamberlainDate of birth (1993-08-15) 15 August 1993 (age 30)Place of birth Portsmouth, EnglandHeight 5 ft 11 in (1.80 m)[1]Position(s) MidfielderTeam informationCurrent t...

Roberto MateosMateos at the Premier of Muy Padres, 2017Born (1963-04-28) April 28, 1963 (age 60)Mexico City, Distrito Federal, MexicoOccupationActorYears active1989-presentSpouseArancha SolisChildrenMirek Smeke (b. 1996)[1] Roberto Mateos (born April 28, 1963, in Mexico City, Distrito Federal, Mexico), is a Mexican actor of telenovelas. He is best known for his performance in most successful telenovelas productions such as Televisa, Venevision and Telemundo. He lives in Mexi...

 

Charles M. Eaton Jr.Judge of the Georgia Superior Courts in the Atlanta Judicial CircuitIncumbentAssumed office August 12, 2021Appointed byBrian KempPreceded byShawn Ellen LaGruaMember of the Georgia Public Service Commission for District 3In officeJanuary 2007 – August 12, 2021Preceded byDavid Burgess Personal detailsBorn (1969-04-01) April 1, 1969 (age 54)EducationUniversity of Alabama (BS)Georgia State University (JD) Charles Chuck Eaton Jr. (born April 1, 1969) is a Ju...

 

Group of 19th-century architectural revival styles Neo-Renaissance redirects here. For the style of jewellery, see Holbeinesque jewellery. Schwerin Palace in Mecklenburg (Germany), completed in 1857 Waddesdon Manor in Buckinghamshire (England), seat of the Rothschild family, 1874 Renaissance Revival architecture (sometimes referred to as Neo-Renaissance) is a group of 19th-century architectural revival styles which were neither Greek Revival nor Gothic Revival but which instead drew inspirati...

Device for producing coherent EM waves in the sub-visible spectrum For other uses, see Maser (disambiguation). First prototype ammonia maser in front of its inventor Charles H. Townes. The ammonia nozzle is at left in the box, the four brass rods at center are the quadrupole state selector, and the resonant cavity is at right. The 24 GHz microwaves exit through the vertical waveguide Townes is adjusting. At bottom are the vacuum pumps. A hydrogen radio frequency discharge, the first elem...

 

Pupuk buatan biasanya banyak dijadikan para petani sebagai salah satu bahan untuk penyuburan tanaman Pupuk buatan merupakan pupuk mineral yang diproduksi oleh pabrik pupuk.[1] Pupuk buatan memiliki berbagai macam jenis tergantung dari kandungan unsur pupuknya.[1] Pupuk buatan dapat juga dikatakan sebagai pupuk yang dibuat oleh pabrik dengan cara meramu berbagai bahan kimia sehingga dapat menjadi nilai jual yang tinggi.[1][2] Pupuk buatan salah satunya terdiri d...

 

ウィロビー・ハミルトン Willoughby Hamilton ウィロビー・ハミルトン基本情報フルネーム Willoughby James Hamilton国籍 アイルランド出身地 同・キルデア県モナスタヴァン生年月日 (1864-12-09) 1864年12月9日没年月日 (1943-09-27) 1943年9月27日(78歳没)死没地 同・ダブリン身長 175 センチメートル4大大会最高成績・シングルス全英 優勝(1888・90)優勝回数 2(英2)■テンプレート ...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article reads like a press release or a news article and may be largely based on routine coverage. Please help improve this article and add independent sources. (December 2015) This article contains content that is written like an advertisement. Please help improve it by removing promotional content and inappropriate external links, and...

 

Radio broadcasting company in the Philippines Bandera News PhilippinesTypePrivateIndustryMass mediaFoundedJune 1, 2015 (2015-06-01)HeadquartersMacasaet Business Complex, Roxas St., Puerto PrincesaKey peopleElgin Robert DamascoPresident Bandera News Philippines is a regional broadcast company in the Philippines.[1][2] Its main headquarters is located in Macasaet Business Complex, Roxas St., Puerto Princesa. Bandera News operates a number of stations across the co...

 

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Setembro de 2021) Experiências ou experimentos dos testes de Bell ou das inequações de Bell, ou ainda desigualdades de Bell são projetados para demonstrar o mundo de real existência de certas consequências teóricas do fenômeno de e...

Species of rodent Mexican woodrat Conservation status Least Concern (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Rodentia Family: Cricetidae Subfamily: Neotominae Genus: Neotoma Species: N. mexicana Binomial name Neotoma mexicanaBaird, 1855 The Mexican woodrat (Neotoma mexicana) is a medium-sized pack rat. Distribution and habitat It ranges from the United States (Utah, Colorado, New Mexico and parts of A...

 

Thousand Islands Border CrossingUS Border Inspection Station at the Thousand Islands Border CrossingLocationCountryUnited States; CanadaLocation I-81 / Highway 137 / Thousand Islands Bridge US Port: 46735 Interstate Route 81, Alexandria Bay, New York 13607 Canadian Port: 860 Highway 137, Lansdowne, Ontario K0E 1L0 Coordinates44°20′50″N 75°59′00″W / 44.347318°N 75.983396°W / 44.347318; -75.983396DetailsOpened1938HoursOpen 24 hoursWebsitewww.cbp.gov...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!