jmx

Analyze Tomcat Heap in detail on a production System

Having analyzed a light-load web application running in tomcat, using JMX Console, it turns out the "PS Old Gen" is growing slowly but constant. It starts with 200MB and grows around 80MB/Hour. CPU is not an issue, it runs at 0-1% on average, but somewhere it leaks memory, so it will become unstable some days after deployment. How do i...

Is it necessary to unregister an MBean from the Platform MBean Server?

I've begun playing with MBeans for exposing some information about an app. Pretty much the totality of HOWTOs / Tutorials / Blog posts / Samples online teach you how to implement an MBean and register it with an MBean Server, but never mention (or only cursorily) unregistering the MBean from the server. I'm concerned about an MBean that...

What is the meaning of the "xmbean-dd" attribute in an mbean in jboss-service.xml?

For example, <mbean code="org.jnp.server.NamingBeanImpl" name="jboss:service=NamingBeanImpl" xmbean-dd="resource:xmdesc/NamingBean-xmbean.xml"> </mbean> ...

Is it possible to manage C++ application via JMX ?

We have a distributed application containing C++ and Java modules, interacting via CORBA. Are there any C++ libraries/tools for exposing "variables" and "methods" to JMX tools (to create unigfied management) ? ...

What are some optimization techniques for MySQL table with 300+ million records?

I am looking at storing some JMX data from JVMs on many servers for about 90 days. This data would be statistics like heap size and thread count. This will mean that one of the tables will have around 388 million records. From this data I am building some graphs so you can compare the stats retrieved from the Mbeans. This means I w...

Programatically get heap info using jmx with java 5

I am aware of using jconsole to attach to a java process to get memory information. Specifically I'm after getting information on the various memory pools programatically so I can tie it to a monitoring application. Thanks! ...

JMX htmladapter user security

Is it possible to have user based security permissions for JMX on a JMX generated webpage? If so, how? We're currently using a HtmlAdaptorServer class to provide a web front end. The problem comes where this JMX site is becoming very big and we want to allow some mbeans on a server for everyone and restrict more risky mbeans to certain ...

Setting up per-user or per-group security in JMX

We are big fans of JMX in my company. We have instrumented pretty much everything. This is great for developers and a hardcore of support people. But it has been too successful: we are now getting requests from other people to be able to view JMX and we don't want to let them have access to everything. Is it possible to setup JMX with ...

Unable to use JConsole with Tomcat running as windows service

I am running tomcat 6.0.18 as a windows service. In the service applet the jvm is configured default, i.e. it is using jvm.dll of the JRE. I am trying to monitor this application with JConsole but cannot connect to it locally. I added the parameter -Dcom.sun.management.jmxremote (which works when starting tomcat with the start.bat scrip...

How do I change the description of input's displayed for an operation defined using a MXBean

I'm using a MXBean to instrument a certain feature, and I have a method that takes in 3 input arguments. By default, on the jconsole, the arguments are displayed as p1, p2, p3 etc. I have @params describing each parameter. How do I make jConsole use those? public class Sample implements SampleMXBean { /** * method 1 * ...

Does Java 6 open a default port for JMX remote connections?

My specific question has to do with JMX as used in JDK 1.6: if I am running a Java process using JRE 1.6 with com.sun.management.jmxremote in the command line, does Java pick a default port for remote JMX connections? Backstory: I am currently trying to develop a procedure to give to a customer that will enable them to connect to on...

what is cool in jboss's jmx-console ?

I like JNDIView that shows me all JNDI's, is there anything usefull beside that in jmx-console? P.S. I know i could make my own MBeans, but i want to know what default cool actions are available. ...

Are there any tools that can monitor SNMP, JMX & TIBCO Hawk in one place?

Our Operations department is getting twitchy about too many monitoring tools so are there any tools that can handle SNMP, JMX and TIBCO Hawk all in one application? ...

dynamic proxies with jmx can cause thread leaks?

I have a problem in Java where I set up a dynamic proxy with a JMX interface, pass this on to another component which then makes calls to the proxy object. When I do this, the application leaks two threads for each call, threads which never seem to time out and keep building up until the application runs out of memory. The threads appe...

JMX Thread stuck on ClientNotifForwarder

Our application connects to several jmx agents (about 50) to poll jmx data in frequent interval. After some time (about a day) application becomes irresponsive. We looked at thread dump and seeing large number of threads stuck on ClientNotifForwarder.. Eg: "ClientNotifForwarder-50" daemon prio=3 tid=0x09aa3800 nid=0x330 runnable [0xd3...

Java real-time service monitoring framework

Got to create some kind of "counters" for online service monitoring - i.e. Foo_Request_Total, Foo_Request_DB_error, Foo_Request_Timedout, Bar_Request_Total,... Also, some kind of alarm has to be generated when counter passes a pre-defined limit (for example SNMP trap if more than 5 requests per hour were timed out). Could you suggest ...

Can my requirements be met with JMX?

I am completely new to JMX. I have a specific requirement and wanted to know if it is possible to accomplish within the scope of JMX. Requirements: I have a set of resources which include many weblogic instances, jBoss instances and Tomcat instances running across many servers. Now I need a one stop solution, UI to monitor these resou...

How to expose HTTP return (error) codes with JMX?

We would like to monitor HTTP error codes (e.g. per minute) for later graphing. How can we expose HTTP return (error) codes with JMX? Are there code samples or have you done something like that? Is this contained in Tomcat per default? About the implementation: Should the code increase a JMX counter and set it to 0 every minute? Th...

understand tomcat HTTP connector port from JMX MBeans

Hello All, I am connecting to tomcat over JMX. I wrote a simple JMX client to connect to tomcat and read different JMX MBean attributes to monitor tomcat. My problem is, I would like to know which port tomcat's HTTP connector is listenting. Is there a way to get this details over JMX Mbean - without reading the server.xml file of tomcat...

How to create resource ref for a JBoss MBean

A have application deployed to JBoss. It contains Inside it I register Quartz MBean wich trigger scheduled task. How can I create reouce ref for that MBean to access resource by java:/comp/env/* and not java:/* in my task code. ...