Tuesday July 29, 2008 ![]() |
JMX, SNMP, Java, etc...Daniel Fuchs blogs on JMX, SNMP, Java, etc... |
... 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: firewall java jconsole jmx management monitoring rmi sslPosted by dfuchs ( Jul 29 2008, 12:38:36 PM CEST ) Permalink Comments [15] |
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: firewall java jmx management monitoring rmi sslPosted by dfuchs ( Jan 09 2008, 03:15:39 PM CET ) Permalink Comments [3] |
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: firewall java jconsole jmx jvm management monitoring rmi ssl sysadminPosted by dfuchs ( Oct 22 2007, 07:38:51 PM CEST ) Permalink Comments [9] |
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: firewall java jmx jvm management monitoring rmiPosted by dfuchs ( Sep 12 2007, 03:11:40 PM CEST ) Permalink Comments [10] |
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: firewall java jconsole jmx jvm management monitoring rmiPosted by dfuchs ( Jul 25 2007, 04:21:36 PM CEST ) Permalink Comments [37] |
... I've seen a few posts in the Java and JMX forums from developers who were wondering how to find out why JConsole wouldn't connect to their application. So I have decided to write this short blog entry in order to outline a few diagnosing tips ... [Read More] Tags: firewall java jconsole jmx management monitoring rmiPosted by dfuchs ( Jun 01 2006, 03:57:54 PM CEST ) Permalink Comments [13] |