jmx

Conntecting remote tomcat JMX instance using jConsole

I am trying to connect to a remote tomcat JMX instance using jConsole. But can't connect successfully. Any Idea? I included the following option in remote tomcat catalina.sh: JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9004 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun...

Accessing a remote MBean server

I am running a client/server application using JBoss. How can I connect to the server JVM's MBeanServer? I want to use the MemoryMX MBean to track the memory consumption. I can connect to the JBoss MBeanServer using JNDI lookup but the java.lang.MemoryMX MBean is not registered with the JBoss MBeanServer. EDIT: The requirement is for ...

Monitoring application-specific metrics using JMX and Hyperic

My webapp exposes some application-specific metrics (think "orders placed") via JMX, which I'd like to monitor using Hyperic HQ (open source edition). According to the Hyperic Inventory Model, my Linux server is called a Platform hosting my Tomcat 6 Server, which in turn hosts Services (e.g. "Servlet Monitor"), who finally expose Metric...

What is the .NET equivalent of JMX?

Hi, Is there a .NET equivalent for monitoring and management - similar to JMX? ...

How should I monitor a web application on tomcat using JMX?

Hi, I would like to monitor web applications running under tomcat using JMX. I don't want to just use the built in JMX implementation of Tomcat, I want to implement an mbean for the actual Web Application so I can get information on application-specific settings and monitor it. The problem with web applications and online monitoring i...

Forcing Spring's MBeanExporter to use a particular MBeanServer

I have a web application running on JBoss 4.2.2. In order to monitor performance I have enabled the internal platform JMX server that ships with Java 5. In other words, I added: -Dcom.sun.management.jmxremote to JBoss' launch script. This works as expected. However, as a result of this, all MBeans are now registered on the platform MB...

How to manage a JMX web application.

I've gone through the process on this page to expose the JMX interface of a web application. I've managed to view the exposed interface on the Tomcat JMX proxy but when I load JConsole and look for the exposed mbean interface I can't find anything related to the attributes and operations exposed. Thre is no specific entry on jconsole ...

Unable to see new MBeans in JBoss 5.0

I've been going through several examples on how to add MBeans to JBoss 5.0 so they can be configured though the JMX Console, but none of these examples have ever shown up in the JMX view. I've now tried to get ehCache's JMX integration to work to no avail. I'm trying (as in the ehCache documentation) the following: CacheManager manage...

Directing IntelliJ to sources when debugging an external application

Say you have the source of an application, and you're debugging the jar via JMX. How do you tell IntelliJ where the source is? ...

How do I start VisualVM with the JMXWS WS Connector (JSR-262)?

I have an Java application running in JBoss in which I have enabled JMX remote monitoring. This allows me to connect with tools such as jconsole and visualvm to monitor memory usage, cpu utilization, mbeans, and more. The server on which my application is running has restrictive port access though, which is why I am using the JSR-262 JMX...

Do operations invoked on an object via JMX execute in a separate thread?

I have a Java object which is exposed via JMX and I'm wondering when I invoke an operation on it using JMX (i.e. via JConsole or something similar) if that operation occurs in a separate thread or not. I need to know this so I know whether or not I need to make that operation in my Java code thread-safe (i.e. accessing an ArrayList, etc...

How should I make JBoss temporarily ignore an MBean service?

I am using a single JBoss deploy directory for multiple J2EE projects that I'm working on. (Note, I'm not looking for answers that tell me that I shouldn't be doing this.) I have written a scheduler service mbean that lives in the deploy directory, e.g., an XML file containing <server> ... <mbean code= ... > <attribute ....

Setting CATALINA_OPTS for tomcat6 on windows doesn't work.

Hi, I'm trying to setup Tomcat6 to work with JMX on Windows Vista 64. To do that I need to pass the parameters below to Tomcat6. What I do in command prompt. (that doesn't work) set CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxr...

Working with JMX WS connector remotely.

Hi, I've been running the samples that come with ws-jmx-connector locally and succesfully. The next step is to run them remotely between two PC's. What I don't get is, how do I get the client and server to talk to each other from one PC to another. I'm not sure how this works but I'm assuming I have to configure TOMCAT to allow this so...

What is the best alternative way of monitoring apache Active MQ other than using JMX API

Hi, I have tried and tested the JMX API and it is pretty simple to use and provides a vast number of statistics required for monitoring ActiveMQ. But the problem is, i dont want to monitor my ActiveMQ remotely and also i dont want to use another API.To be more precise, i want to use the JMS API itself to get statistics related to vario...

How to restrict access to JMX API of ActiveMQ to only localhost/intranet?

I have just started using JMX to monitor activemq,i have enabled remote monitoring. Now the question is,How do i allow only localhost have access to JMX API? Or is there a way i can use JMX API without enabling remote monitoring.. ...

Monitoring and logging strategy for a "facade webservice"?

I'm working on a "facade webservice" and I need to rethink part of it. The context - my webservice (let's call it "FacadeWebservice") is an internal webservice developed to hide other webservices complexity from my system: My FacadeWebservice calls ExternalWebserviceA, ExternalWebserviceB and will soon need to call ExternalWebserviceC...

Is there any JMX - REST bridge available?

Hi I would like to monitor a Java application using the browser but at the same time utilise the existing JMX infrastructe. I know that JMX provides a HTTP interface but I think it provides a standard web gui and its not possible to mashup its functionality with an existing system. Are you aware of any REST interface for JMX? My rese...

JBoss MBeans: How to have an array attribute?

Is it possible to define a MBean with an array attribute. I currently have an MBean defined as: <mbean code="corp.app.jmx.DNSServer" name="corp.app:service=DNSServer"> <attribute name="Server"> 192.168.0.1 192.168.0.2 192.168.0.3 </attribute> </mbean> In the MBean code I then split the String. However - for my next MBean I nee...

Is it possible to programmatically close a Java process through JMX

Hi I'm currently writing an app to monitor another Java process and take specific actions when certain targets are hit. For example, if a thread deadlocks for a certain time, kill the thread, if the memory usage goes over a specific amount, send email alerts and kill the process, etc. My app will run as a stand-alone app, monitoring sp...