Skip to content
Julien Viet edited this page Jan 13, 2014 · 10 revisions

Hackergarten MarsJUG

Commande JMX

La commande JMX existante offre deux fonctionnalités de bases (recherche de MBean et recupération d'attributs JMX de MBean). La commande peut être améliorée de plusieurs façons:

  • Invocation d'opérations sur un MBean: jmx invoke java.lang:type=Memory gc
  • Affichage des informations d'un MBean: jmx info java.lang:type=Memory
  • Affectation des attributes d'un MBean: jmx set foo:bar=juu attribute_name attribute value
  • Effectuer une requête auprès du MBeanServer pour trouver des MBean

La commande JMX existante se trouve dans $CRASH_HOME/cmd/base/jmx.groovy.

Commande pipe de traitement de flux

  • implémentation de sed
  • améliorer l'implementation existante de egrep.

Plugin pour le framework Metrics

Metrics is a Java library which gives you unparalleled insight into what your code does in production. http://metrics.codahale.com

Clone this wiki locally