Friday Mar 07, 2008

Don't Do This! But Here Is a Way.

Recently I was asked how to do "registerMBean" in a remote JVM, from a remote JMX client. The MBeanServerConnection doesn't expose any registerMBean method, and for good reasons.

[Read More]

Monday Feb 25, 2008

I Am a Modern Man

After several years of resistance, I have finally surrendered to modernity: last week I bought a mobile phone.

[Read More]

Thursday Feb 14, 2008

Long time no blog...

... so I thought I'd drop a line. I have just uploaded a small set of slides of a high level presentation of project OpenDMK on the project's home page.

[Read More]

Wednesday Jan 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]

Friday Dec 14, 2007

How I installed the Mercurial Forest extension on my windows test machine.

The source code for OpenJDK is now available in Mercurial repositories. These repositories are organized into mercurial forests. If you are eager to work on the OpenJDK code, you will want to install the forest extension for Mercurial. Here is how I did it on my windows test machine.

[Read More]

Monday Dec 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]

Monday Nov 12, 2007

Proxying a JMX Connection: Adapting To Another Protocol

This article exposes a proxying technique that can be used to adapt between two different protocols: one that is used on the server side, and one that we want to use on the client side. More to the point, this technique can be used to work around an annoying interoperation problem that can show up when exposing Model MBeans through an IIOP connector.

[Read More]

Thursday Oct 25, 2007

DZone Widgets on

As some of you may have noticed, I've added DZone widgets to my blog. [Read More]

Monday Oct 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]

Wednesday Oct 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]

Friday Oct 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]

Tuesday Oct 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]

Wednesday Sep 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]

Wednesday Jul 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]

Monday Jun 25, 2007

Java Real Time video (french) from Sun Tech Days Paris is online

As advertised by Alexis Moussine-Pouchkine the video of Bertrand Delsart, presenting Java Real Time is available online, among many others.

[Read More]

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

The views expressed on this blog are those of the author and do not necessarily reflect the views of Oracle.


« August 2016