1 2 3 4 5 6 7 8

Is it okay to keep an MBeanServerConnection alive

438 byte By Joannea at 2007-11-26 16:38:34
I'm writing a monitoring application which constantly monitors the performance of a certain application. I get the performance numbers by invoking some methods through JMX every 5 min. Should I open up a MBeanServerConnection and use that connection object all the time for invoking the method, ...

JMX-RMI problem

4080 byte By Steve__Ta at 2007-11-26 16:59:22
This question is a bit long, but I hope you'll hang in there with me, because I've Googled around a bit and I'm not sure where to go next. It looks like we're having a problem with the RMI server in conjunction with JMX. Here's what happened:One of our QA folks was using my Spring and ...

Accessing a JMX agent from a remote .NET client?

818 byte By rgp_us@yahoo.coma at 2007-11-26 17:10:22
I'm looking for a way to remotely manage and monitor a service that is written in C++. I'm writing a remote client UI in C# and I'm looking for the best technology to use for an agent to install on the machine hosting the service. In the beginning we will be mostly just writing to the ...

Single MBeanServer for multiple JVMs

1093 byte By elliottna at 2007-11-26 17:21:59
Hi - wonder if you can helpWe are presently implementing JMX within our application. Our application runs in standalone mode, ie runs in it's own JVM, but there can be multiple instances of the application running on the same server. Presently each app creates it's own MBeanServer, which ...

Cannot see local process list in JConsole of JDK6

184 byte By Michael-Feldmana at 2007-11-26 17:26:58
When I run JConsole (JDK6)without parameters I cannot see list of local proceseses. JConsole with PID as a parameter works well. JConsole of JDK5 works ok. Does anybody help me?

JMX and performance

397 byte By nichelea at 2007-11-26 17:27:18
Hi All,I would like to know if enabling jmx (setting -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false) can have impacts on the application performance.Thanks a lot in ...

Tool to analyse a big dump file

330 byte By lbaudeta at 2007-11-26 17:30:06
Hello,I look for a tool for analyse an 1Go hprof file dump.whith hat -J-Xmx3g <OnGoFile.dump> : an outOfMemory is generate.(wiht a 64 bits jvm)After examine the source code of hat, i realize, that the max array size is Integer.MAX. Maybe hat can never run with my dump ...

Jmap -heap (Tomcat ID) issues

581 byte By gotjavaa at 2007-11-26 17:30:31
Hello,I have created a script based off the information jmap -heap (tomcat ID)of OLD gen and Permspace. This scripts runs every minute. Developers at my company believe that Jmap is a cause of recent tomcat hangs. Tomcat is not running out of memory just non responsive. I was wondering how ...

Custom memory pool.

2111 byte By drekepa at 2007-11-26 17:40:21
Hi!I have been studying different ways to implement object cache for server application(s). At the server there are XML files which have to be parsed and validated before delivering to clients. Clients are also sending XML data back to be validated and stored by the server. It would be nice to ...

Simple authentication.

643 byte By donaldwa at 2007-11-26 17:46:35
I want to do something which seems like it should be simple. I want to setup -Dcom.sun.management.jmxremote.port=51017 and have it so that either 1) No password is required but access is readonlyor 2) A password is required, which I shall configure in jxmremote.password but I don't have to ...

One JVM, Many MBeans

190 byte By chihiroa at 2007-11-26 17:52:14
Is it suitable to create one MBeanServer per MBean ? I need to remotely manage a custom app container & want to know if this is ok. What is the normal practise ? Thanks.Gav

Out of memory in java application

678 byte By jannyguya at 2007-11-26 17:52:34
Hi,I am continously getting out of memory in my java application. I collected the java heap dump and found major memory chunk ( >90%) of total java heap is taken by some "class [I", which is array of 'Inetger' objects and sometimes by "class [S", which is array of 'Short' ...

Flaw in the way Model MBeans expose attributes.

1022 byte By sashamanstera at 2007-11-26 17:59:41
I have been searching the web for a while now trying to figure out a way to expose attributes using a model mbean withOUT also exposing the getters and/or setters of these attributes as operations. First off, it seems to me to be a bug in the JMX spec that when creating a ModelMBeanInfo object ...

(Best Practice) Declaring IOExceptions in MBean interface

537 byte By chihiroa at 2007-11-26 18:08:12
Hi,It is good practice for every method in a Standard MBean interface to be declared to throw java.io.IOException as shown here. This forces the code using the proxy to handle this exception explicitly. Otherwise, a communication problem while using the proxy will show up as the unchecked ...

Unable to connect to remote JMX

594 byte By jinchurikia at 2007-11-26 18:08:28
Hi guys, In our development environment in linux, we are using resin + jdk1.5.i started my resin server with these options: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=falseIt ...

Foo and FooMBean must be in the same package ?

358 byte By chihiroa at 2007-11-26 18:08:45
When I register my MBean into the server, I got this exception:server.container.Container does not implement the server.container.ContainerMBeanNote that the interface ContainerMBean actually resides in a different package, namely server.api.ContainerMBean.Is this a real JMX Specification ...

What is an api

66 byte By orangesTASTYa at 2007-11-26 18:12:06
uh hello, im wondering what a api is? please help me hahah.

StandardEmitterMBean only in JDK1.6

934 byte By chihiroa at 2007-11-26 18:14:41
Since I am using JDK1.5, there doesn't seem to be a way to mimic StandardEmitterMBean. Based on http://blogs.sun.com/jmxetc/entry/javax_management_standardmbean_when_andI am currently doing the following:/** * where {@code IFoo} is my MBean interface */Foo implements IFoo extends ...

sendNotification could be synchronous

632 byte By chihiroa at 2007-11-26 18:15:57
For JDK1.5, it is mentioned in the javadoc for NotificationBroadcasterSupport that the delivery of notifications is not guaranteed to be async.So should I create a separate thread to call each sendNotification() ?Mustang has improved the class to support passing in of an Executor (which could ...

JMX Remote and MBeans in separate Processes

1080 byte By Peter212a at 2007-11-26 18:16:13
Hi,I found on Sun blogs - http://blogs.sun.com/jmxetc/entry/what_is_jmx following: "An EJB lives in an Application Server container. It usually implements business logic. An MBean lives in an MBeanServer, and usually implements management logic"That means, when an MBeanServer is killed, an ...

Discovery for the endpoints of JMXConnectors

977 byte By chihiroa at 2007-11-26 18:17:14
Hello,I am currently using the RMI connector & I specify custom JMXServiceURLs. Each of my own custom containers will have a different JMXServiceURLs, at different ports. Since I cannot predict how many containers will be running on a single machine, it is quite infeasible for me to know up ...

Periodical JVM memory monitoring

526 byte By BalaSubrahmanyama at 2007-11-26 18:24:04
Dear all,We are using JDK 1.5 in production and does Java 5 has a facility to dump heap periodically say once in 2 hours. We are facing OOM problems in our game servers(say once in 2 days) and our motto here is to check the heap memory usage & GC periodically by retaining a core file ...

Can JConsole connect to a remote JMX agent using JMXMP and TLS?

539 byte By j.w.sa at 2007-11-26 18:35:48
Hi,I have a JMX Agent using the JMXMP connector running over TLS with client authentication. Is it possible to use JConsole to connect to this agent? I have tried setting the javax.net.ssl.trustStore, javax.net.ssl.trustStorePassword, javax.net.ssl.keyStore, and javax.net.ssl.keyStorePassword ...

Error while Debugging

1420 byte By Sandesha at 2007-11-26 18:38:07
public static void main(String[] args) throws java.io.FileNotFoundException,java.io.IOException,java.lang.InterruptedException {fileName = new String(args[args.length-1]);// set up the parser and scanner with the appropriate file// nameFileReader aslFile = new FileReader(fileName);NolifeScanner ...

JMX newbie questions

365 byte By kollareddya at 2007-11-26 18:50:58
Hi all,I am new to JMX and thus few basic questions:1) Is monitoring different from profiling? Does JMX suppot both?2) Does eclipse TPTP (which provides monitoring, tracing and profiling options) internally use java's JMX? If so, I hope it is sufficent to use eclipse TPTP?Any input is higly ...

JMX Remote

1614 byte By bspindlera at 2007-11-26 18:51:37
I'm trying to compile and test the tuturiol found here: http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutorial/connectors.html#wp997327however, when I try and run the Server.java class I get this:>>> Create the SimpleStandard MBean within the MBeanServerObjectName = ...

A couple of class loading questions

1912 byte By POMvRa at 2007-11-26 18:52:12
Hello all. I've gotten past most of the class loading issues thanks to help received in this forum, so I thought I'd see if I could get some help with a couple of roadblocks that I'm currently trying to move through.1) We have created a jar file that contains our application to be managed, ...

JMX and MBean serialVersionUID problem

16561 byte By AUTOMATONa at 2007-11-26 18:59:47
Hi.I have instrumented a web based application with MBeans and also written its own JMX connector server that will allow external clients to connect to it. I am deploying the application on Websphere Application Server version 5.x. Now the problem is that when I connect using MC4J console, it ...

drawing the activity of the application's threads.........what do you use?

577 byte By mtarjoianua at 2007-11-26 19:02:31
Hello everyone,We have an application with many threads wich do their own activities. Some of the threads have to give their data to another threads.Now the application grew up and it is hard to debug now that new code made by others was added,.. threads initialise different.....I want to ask ...

Search inside the API

472 byte By eMerooa at 2007-11-26 19:06:03
How can I search inside the API about a specific class or method?For example I know that there a class called Scanner in the package of the java.util , but I can't find it Also if I want to search about any method, can't I search about the method or the class inside the API by typing its name ...

Problem with jmap -dump

715 byte By Mork0075a at 2007-11-26 19:10:26
Hello,we try to fix a performance bug in our webapp. There for we use the Java 6 Monitoring capabilities. On the test-mashine the dumping is fine. On the live server, the created dumps are not readable by YourKit Profiler.Here's the output[weblog@www weblog]$ /usr/java/latest/bin/jmap ...

Java spawn multiple child processes

16572 byte By htran_888@stvincents.com.aua at 2007-11-26 19:22:50
Hi,I have written a simple core Java process to reformat some text to migrate our past company data to a new application. This program works fine except that it appears to be running slowly but more importantly, it spawned another 8 equivalent child Java processors at the same time. Here is the ...

jdk 6

203 byte By k345a at 2007-11-26 19:25:50
I have downloaded jdk 6, but I am unable to install it, ithe installer does not come up automatically and I do not know where to go to install it within the file. Could someone please help, thanks

Getting to know used memory without garbage collectable objects

227 byte By kad_taa at 2007-11-26 19:28:08
Hi all,I would like to know what is the currently used memory without garbage, so only the objects that are still referenced.Is there a way to do that? Preferably using JConsole?Thanks,Kristof

Very stange Behavior with JMX remote

652 byte By richiegra at 2007-11-26 19:35:26
HiI've an application written with Spring. JMX support works good locally bu I'm unable to connect from remote computer.I'm starting with :-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=4099 -Dcom.sun.management.jmxremote.authenticate=false ...

JMX Console- clicking buttons

300 byte By sreedhargattua at 2007-11-26 19:50:00
Hi,I have exposed a method using jmx managed bean operations. It works fine when i click the button from jconsole. Is there any way that i can stop multiple clicks, when the method is already running(eg:-disabling the button or by some implementation ...

Permanent Memory Garbage Collected?

551 byte By tmccor01a at 2007-11-26 19:52:35
I am debugging an issue where the permanent generation is expanding larger than the default size of 64 MB. I have increased the size of the permanent generation using -XX:MaxPermSize, but I am concerned that the size has grown so large to begin with. I have monitored the logs using -Xloggc, and ...

Diagnosing out of memory errors

930 byte By nathan.michael.rosea at 2007-11-26 19:59:09
I'm working on a project that uses a number of applets on different HTML pages. I'm seeing "OutOfMemroy" errors after long periods of use on a Linux Mozilla Firefox client using Java 1.6.0. I have attempted to analyze the jmap heap dump, and it seems like many character arrays, byte arrays, ...

Print chosen JVM options

203 byte By d_ra at 2007-11-26 20:05:02
Hi,is there a way to dump (default) options chosen by the JVM? For example, I would like to see the chosen value of the thread stack size (which may be set using -Xss).Thanks, Daniel

How Secure are security policies?

357 byte By AUTOMATONa at 2007-11-26 20:08:00
Suppose I have an application instrumented using MBeans, and those Mbeans contain sensitive information. I know that you can write policy files to grant permissions to grant/deny access to MBean attributes and operations, but just writing policy files does not seem to be too secure. How can I ...

jdk 1.4.2_13 Where is it?

302 byte By Team-GO_Doca at 2007-11-26 20:09:18
I need to install JDK 1.4.2_13 on some Solaris 9 64 bit systems and I can't seem to find the software. Is there a site I can download what I am looking for? Will this be in pkgadd format?thanks,DaveI found it. Never mind. :-)Message was edited by: ...

JMXServiceUrls

359 byte By chihiroa at 2007-11-26 20:11:52
what is the difference betweenservice:jmx:rmi://localhost:50000/osgiandservice:jmx:rmi:///jndi/rmi://localhost:50000/osgiIf I want to manage remote hosts, which one should my Connector server use ?I remember also seeing another url which has 2 host:port combinations. what is that all about ...

Can I use JConsole to find out which class eats up all the memory?

622 byte By Eric.Zhanga at 2007-11-26 20:11:56
I am developing a JAVA web application now(using Tomcat 4.1.31), the problem is my web application will crash after running for several days -- The http request cannot be handled and the exception is "out of memory". It seems that some classes in my application eats up all the memory. I have ...

jmap / jhat -baseline problem

678 byte By pmscreena at 2007-11-26 20:12:18
hi,i'm trying to use jmap to generate two heap dumps and then use jhat with option -baseline to compare them to see what objects were added (ie. track a memory leak). however, the instance/object ids seem to change from dump to dump. i tried logging the creation/finalization of some objects, ...

Indianapolis timeZone not working with jdk1.5.0_06

1275 byte By suruguptaa at 2007-11-26 20:34:09
Hi,I am working on below environment:Solaris 5.10: This has OS and timeZone patch updated for 2007 effects.Jdk1.5.0_06Indianapolis is *not* working on above setup. I checked the system and confirmed that below files are ...

JVMPI/JVMDI vs JVMTI

642 byte By philipp.busschea at 2007-11-26 20:38:20
Hi,I was looking at JVMTI and what your capabilities are to create an own agent. Additionally it would be very interesting for me to know, what changed from JVMPI/JVMDI ? I know that the former APIs are deprecated in JDK 1.5 and will be completely removed but I would like to know more facts ...

Custom MBean Problem

456 byte By Noaa at 2007-11-26 20:38:33
Hello,I'm adjusting a program that worked on websphere 6 to websphere 6.1I have a custom MBean that I register, the registration works fine and i have a program that lists all the mbeans on my server and i can see my MBean there, but then when I call getAttribute with the same object name and ...

MBean classloading in Sun Java Application Server 9.0

517 byte By bkatnicha at 2007-11-26 20:38:58
Hi,I am having a classloading issue when attempting to register my custom MBeans within the Sun Java Application Server 9.0 environment.The instructions say I can put either my classes or a Jar archive in domain_dir/applications/mbeans. When I put just the class files there it works fine. ...

How to specifiy argument names to HtmlAdaptorServer ?

285 byte By forestera at 2007-11-26 20:46:46
Hi.When exposing a method of an instance as an MBean operation, is it possible to specify the names of the arguments of the method so they will be more meaningful than p1, p2, p3... which is what HtmlAdaptorServer currently showing ?Thank you.

Determining the JMXServiceURL for your own JVM

686 byte By katzna at 2007-11-26 20:47:02
Hello.I'd like to know how to find the JMXServiceURL of the built-in MBeanServer. In Java 5, I'm using sun.management.ConnectorAddressLink.importFrom(int pid) to determine this, but that means I'm using a non-public, Sun-specific API. In Java 6, we have the new interface ...