jmx

Exposing application specific counters via JMX/SNMP

Certain real-time features of the server application I'm working on would benefit from exposing counters to a Network Management System. I am thinking about a solution where I am using the JMX API from a Java application and via some configuration/magic/libraries can expose this information as SNMP data. Back in the old days, JDMK di...

Is it possible to integrate JMX with SLAMD to monitor attributes during load testing

I'm about to undertake load testing of a web application that is suffering from intermittent failures in a production environment. I have enabled some JMX monitoring on certain components, e.g. an OSCache implementation, with the goal of gathering its statistics around the time of failure to determine how/if it contributes. I've been c...

How to create performance counters that are exposed by jmx and accessed via jconsole?

How to create performance counters that are exposed by jmx and accessed via jconsole? Say whenever I instantiate a particular object, I increment a counter. I want to expose the counter value so I can view the value in jconsole. How would I go about doing this? ...

Web enabling Java console application's JMX beans

I have built a Java console-based application and exposed key methods via Spring/JMX declarations. Using JConsole, I can invoke these methods but more ideally, I would like to build a management-style web application to provide browser-based access to these methods. Thanks. Ashwin ...

Federated Nodeagent doesn't look as running in managment console

Hi, I'm using websphere 7.0.0.9 over windows with a topology like this: physical-server-1 Cell01 DMgr Node01 w/Server01 physical-server-2 Node02 w/Server02 The Node02 is federated to Cell01 and works fine for a few weeks (i'm testing a clustered application over server01 and server02, nothing special) But now in administrative cons...

Does enabling JMX agent have a performance overhead?

I would like to have a possibility to use jconsole in production, but am a bit concerned about performance. Is it ok to leave JMX agent running (via -Dcom.sun.management.jmxremote) or will it have a noticeable performance footprint? ...

JMX/RMI issues when starting broker

Hello fellow stackoverflowers. I have been getting a quite nasty error while trying to start up my brokers with ActiveMQ. It seems that, for some reason, the management context tries to start up something that is already registered. The top of the stack trace reads: [SpringOsgiExtenderThread-127] DEBUG org.apache.activemq.broker.jmx.Ma...

JMX Event Notifer - Re-register after connection is lost and back up.

Hi, I have a client that registers with JMX for notifications. Whenever that JMX Notifications Emitting application is restarted I get an exception 01/08/2010 16:28:04 com.sun.jmx.remote.ws.client.JMXWSManStub fetchNotifications WARNING: Exception java.io.IOException: java.net.ConnectException: Connection refused: connectoccured during...

Can one MBean link to another?

I'm somewhat familiar with displaying simple data via a JMX MBean using older JDKs. What I'd like to do is have one MBean link to a couple related MBeans, making it nicer for users to access related info. Is there a good, standard way to do that? I'd like it to work in both the HTML adapter and richer clients like JConsole (i.e. I don't...

JBoss - java.rmi.ConnectIOException: error during JRMP connection establishment;

I'm new in windows environment and I wonder why my JBoss AS didn't start. I use following command to start my server : run.bat -b 0.0.0.0 -c default The Exception is: 2010-08-04 00:14:18,109 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.remoting:protocol=rmi,service=...

Spring JMX - exporting a map of key value pairs

Is it possible, ideally using the spring JMX annotations, to export a map of key value pairs where the key is used as the exported attribute name? If so, how? Thx. ...

Tomcat 5.5 Monitoring with JDK 1.4 on Windows

According to this documentation http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html#Enabling_JMX_Remote it should be possible to remotely Monitor a Tomcat 5.5 Server running on a JDK 1.4 but after searching all over the web and trying multiple OSs I still am no further than on day one. My results thus far are. Settign up Tomcat with...

Prevent jbossws/services from listing deployed services

Is there a way to prevent jbossws/services from listing services currently deployed? I thought of securing it the way jmx-console is secured, i.e. password protected, but would that mean that web service consumers would have to authenticate too? Or is it just going to password-protect the web interface? Thanks! ...

JMS and JMX tutorials?

Hello friends, i am preparing for an interview which requires a bit hands on JMS and JMX, but i didnt work on these. so need any video tutorial links which can make me understand quickly. thanks. ...

How to connect to JMX agent using python

Dears I am working on custom monitoring system to my server. the application is developed using python and Django. The server is running java web applications and I need to monitor the JVM under which the application server is running, so I start the applications with enable the JMX. Now I need to connect my python application to the...

Logging OSGi via JMX or other way

Hello everybody, I’m a beginner with the technologies OSGi and JMX, so I have some questions and I hope to have answers. I want to recover the OSGi Log object for display logs on my console eclipse and then display them on a jsp page. Haw can I access to Log OSGi bundle via the JMX’ Object MBeanServerConnection? Haw can I have LogEn...

JMX attribute naming conventions

I've noticed that the convention for JMX MBeans appears to deviate from the standard Java Bean property model in that the names for attributes will traditionally start with a capital letter, i.e. PascalCase. To explain this a bit more clearly, I'll take an example from the JDK (chopped down a bit for clarity) : public interface Memory...

Calling/monitoring JVM via JMX from a non java client

I am using Nagios for monitoring - and looking at NPRE for various monitoring on a given box. I have some java processes - would be nice to "peek into them" via JMX etc.. I can't see a way to do this without starting up a JVM and connecting remotely? Any ideas? ...

Spring MBeanExporter: Log an exception's stacktrace

In Spring MVC, an exception's stack trace is logged if it makes it all the way back up to the framework (for example, if there is a NullPointerException). Is there a simple way to do this using Spring's MBeanExporter? I know that I could have try-catches in the method to do this, but that would lead to clutter. I checked the Spring doc...

In Scala or Java, how to get how much RAM does application currently occupy?

NetBeans IDE has a taskbar indicaror, showing how much RAM is currently allocated and used by the running instance. How can I get this data in my own application written in Scala? If there's no special function for this in Scala, I could use Java one. ...