About Me

JMX, SNMP, Java, etc...

Daniel Fuchs blogs on JMX, SNMP, Java, etc...

All | Personal | Sun
tags: blogging firewall hg java jconsole jmx jvm management mbean mercurial monitoring opendmk openjdk opensource rmi snmp ssl

Table Of Contents (list all entries)

Main | Next page »
20081125 Tuesday November 25, 2008
The Mystery Of Multiple MBeanServers

JConsole and VisualVM have made it very simple to access MBeans in a remote target VM. There's also a lot of blogs and documents that explain how to access remote MBeans programmatically.

But how do you access local MBeans registered in your own JVM?

[Read More] Tags:
Posted by dfuchs ( Nov 25 2008, 12:25:44 PM CET ) Permalink Comments [9]

20080729 Tuesday July 29, 2008
Java 5, premain, RMI Connectors, Single Port, SSL, and Firewall.

... So many words I couldn't even put them all in the title...

I've been asked several times how to make my example of javaagent which starts a firewall friendly JMX RMI Connector work on JDK 5. Well, here is how. However, beware of the catch: if you use SSL and want to connect with JConsole then you need to use Java 6 JConsole on the client side.

[Read More] Tags:
Posted by dfuchs ( Jul 29 2008, 12:38:36 PM CEST ) Permalink Comments [15]

20080711 Friday July 11, 2008
OpenDS 1.0 is Released: A Java Open Source LDAP Server with JMX and SNMP monitoring

The first stable release of OpenDS is out! This LDAP Server written in Java can be monitored both through JMX and SNMP.

[Read More] Tags:
Posted by dfuchs ( Jul 11 2008, 03:43:04 PM CEST ) Permalink Comments [2]

20080506 Tuesday May 06, 2008
Mapping to OpenTypes: MXBean Complex Attribute Types

Although it might not be a very good idea to define your management model based on how it will be displayed by a given GUI, such as that provided by JConsole or VisualVM, I believe it is nonetheless interesting to explore the various ways in which a complex type such as a Map<String,Integer> could be modeled and exposed through an MXBean attribute.

[Read More] Tags:
Posted by dfuchs ( May 06 2008, 05:37:15 PM CEST ) Permalink Comments [3]

20080313 Thursday March 13, 2008
A new contribution to project OpenDMK: Exposing JMX MBeans as RESTful Resources.

Jean-Francois Denise has just contributed a very interesting source add-on contribution to Project OpenDMK. It is composed of two small java classes which provide a generic RESTful access to MBean attributes.

[Read More] Tags:
Posted by dfuchs ( Mar 13 2008, 07:17:57 PM CET ) Permalink Comments [2]

20080109 Wednesday January 09, 2008
Building a Remotely Stoppable Connector Server

JMX is a wonderful tool to monitor and troubleshoot running applications. The new JDK 6 Attach API makes it very easy to attach to a running Java process, and start a JMX agent that will expose monitoring and configuration data to JMX consoles - like JConsole. However, there are some situations where you wish to start a JMX agent on demand, explore the monitoring data or diagnose the probable cause of an observed problem, and then close your JMX agent, leaving the application just how you found it.

In this post, I will discuss a means by which you can upload and start such a remotely stoppable JMX agent. Here is how.

[Read More] Tags:
Posted by dfuchs ( Jan 09 2008, 03:15:39 PM CET ) Permalink Comments [3]

20071210 Monday December 10, 2007
Ingo Rockel's Thread Dump Plugin For JConsole

In his blog, Ingo Rockel posted about a nice Thread Dump plugin for JConsole. Out of curiosity, I decided to give it a try.

[Read More] Tags:
Posted by dfuchs ( Dec 10 2007, 11:49:22 AM CET ) Permalink Comments [1]

20071022 Monday October 22, 2007
JMX: Connecting Through Firewalls Using RMI Over SSL And a Single Port (Part III)

This post explains how you can configure your Java application to export a single port using JMX RMI Connector Server over SSL. This is particularly useful when your application is located behind a firewall, because you will only need to let through a single port. However, using a single port when SSL is enabled requires a little care, because it can only work if the same RMI Socket Factories are used everywhere: indeed the same port cannot be shared by two different RMI Socket Factories. So at the risk of boring you, here is my third post on the subject.

[Read More] Tags:
Posted by dfuchs ( Oct 22 2007, 07:38:51 PM CEST ) Permalink Comments [9]

20071017 Wednesday October 17, 2007
Dmitri Maximovich: Monitoring JVM memory with MRTG

Dmitri Maximovich has written an excellent article about how to monitor JVM memory using MRTG.

[Read More] Tags:
Posted by dfuchs ( Oct 17 2007, 11:18:52 AM CEST ) Permalink Comments [0]

20071005 Friday October 05, 2007
Using Project OpenDMK APIs To Send Traps From Multiple Threads

I recently received a question from a member of the Java community asking for advises on how to implement a trap sending service for a highly multi-threaded application.

Here is an example/test which shows that the SnmpAdaptorServer from Project OpenDMK can be used. The example also allowed me to find a bug.

[Read More] Tags:
Posted by dfuchs ( Oct 05 2007, 06:17:57 PM CEST ) Permalink Comments [0]

20071002 Tuesday October 02, 2007
Project OpenDMK now includes the SNMP Runtime

I am very pleased to announce that we have now a new release of Project OpenDMK which includes the Java DMK SNMP Runtime.

The SNMP Runtime are those API classes in Project OpenDMK that will let you send SNMP requests and implement SNMP agents.

[Read More] Tags:
Posted by dfuchs ( Oct 02 2007, 06:15:27 PM CEST ) Permalink Comments [4]

20070912 Wednesday September 12, 2007
More on premain and JMX Connectors

In my previous blog entry, I have talked about how to take advantage of java agents in order to start a custom JMX Connector in a Java application, without modifying the application. This is particularly useful when you need to monitor Java applications which are located behind a firewall. In that case, it makes it possible to write a java agent that will start a RMI connector configured in a firewall-friendly manner. However, there's a catch. This is what this entry is about.

[Read More] Tags:
Posted by dfuchs ( Sep 12 2007, 03:11:40 PM CEST ) Permalink Comments [10]

20070725 Wednesday July 25, 2007
Connecting Through Firewall Using JMX - Without modifying the server application

In a recent comment on my blog about Troubleshooting Connection Problems in JConsole I was asked the following question:

Can you simply explain how run jconsole on a client machine to connect to an unmodifiable applicaton that run on a server. One and only one port on the server is open though firewall for managing the application.

Here is how.

[Read More] Tags:
Posted by dfuchs ( Jul 25 2007, 04:21:36 PM CEST ) Permalink Comments [37]

20070504 Friday May 04, 2007
A small program that prints the attributes of all JVM MBeans

A few weeks ago I blogged about how to programmatically access the JVM Monitoring information. Here is a small Java application that prints all the attributes of all the JVM Management & Monitoring MBeans.

The sample simply prints the attributes of the JVM MBeans from the JVM in which it runs. It would be very easy to make it print the information of a remote JVM. You would just need to copy the code from the JVMRuntimeClient shown in my previous blog: [More]

[Read More] Tags:
Posted by dfuchs ( May 04 2007, 06:39:28 PM CEST ) Permalink Comments [2]

20070420 Friday April 20, 2007
How to retrieve JVM information using JRuby

A few weeks ago, I posted a small example showing how to programatically retrieve the JVM Management and Monitoring information. Jeff Mesnil also recently wrote a two parts blog article showing how to write a JMX client using JRuby.

Piecing these two articles together I'm going to show how to prototype this using JRuby in jconsole Script Shell plugin.

[Read More] Tags:
Posted by dfuchs ( Apr 20 2007, 05:40:13 PM CEST ) Permalink Comments [0]

[Table Of Contents]

This is a personal Weblog, and I do not speak for my employer.

Calendar

RSS Feeds

DFuchs on DZone

Search

Links

Lookup RFC

Planet JMX

From Grenoble

Navigation

Referers