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, ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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
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' ...
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 ...
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 ...
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 ...
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 ...
uh hello, im wondering what a api is? please help me hahah.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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
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 ...
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 ...
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 ...
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, ...
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
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 ...
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: ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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. ...
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.
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 ...