Hi,I am having issues with my PS Old Generation filling up and never gc'ing its objects. Obviously, I have some references to objects that shouldn't be. I would like to be able to look into the Old Generation heap space and find out what objects are in there to give me a clue as to what ...
1047 byte By
nbeyera at 2007-10-3 5:55:25
I've been reading a number JMX documents, including these best practice articles [1] [2], but I've run into a question about the practical application of the ObjectName conventions within a multi-classloader and/or clustered environment.The general suggestion is to use a singleton name ...
On sun one application server i have deployed EAR applications.Can we enable or disable these EARs programatically using the jmx?
I'd like to know the meaning of the TOTAL WAITED and TOTAL BLOCKED values shown on the right pane when clicking on a thread in the THREAD tab. I have reviewed the JConsole Documentation but it fails to indicate their meaning.Thank you,Juan Velez
Hi,I'm using Sun java System Server 8.1 Q1 with JDK 1.5I've implemented a Lifecycle Listener for the READY_EVENT and within it, I've created a MBean (not registered it, since regsitration does not support remote monitoring) using the MBeanServer instance that I obtained ...
565 byte By
chitalea at 2007-10-3 6:11:57
Many modern Java based servers and tools such as IDEs employ a complex/hierarchical class loader architecture for modularity and isolation. Many Java debuggers have ability to display loaded classes. However sometimes it is neccesary to view defining and initiating class loaders to debug class ...
3360 byte By
Vivona at 2007-10-3 6:39:32
This is something to do with the JBoss Rules Engine. I have an object called 'Employee' containing variables name(string), age(int), sex(string), an object Skill and other fields not relevant.Now the Skill object contains name and desc as variables.And now i have another seperate object ...
Hi all! I wonder how can I see which objects are still alive in the JVM memory...I want to understand if the memory leak I have sometimes is due to too many objects not deleted correctly or not.I sthere a command to do this? Thanks!
hi,<pid> is not a managed VM.........what could be the possible reasons for thatthanksparas
hi,i am a newbie o this JMX technology...i am running examples from the tutorial given on his site....well my first attempt towards running jconsole was succesful....however when i tried to run the notification example, the jconsole didnt show any MBeans to which i can connect...i tried running ...
I see that jconsole is displaying the MBeans registered to Platform MBean Server (obtained through java.lang.ManagementFactory.getPlatformMBeanServer()) but not the MBeans that are registered to a newly created MBean Server (created using ...
This problem has been posted before: http://archives.java.sun.com/cgi-bin/wa?A2=ind0604&L=jmx-forum&P=1531 But I am still having problems with it. Basically, I have an mbean server set up running on java 1.5. I have a client that can connect to it that is also running java 1.5.However, I ...
There is a very useful mbean under java.lang called, java.lang:type=threading (as viewed from jConsole). I wish to invoke it's getThreadInfo operation. As I understand it, the easy way to do this is via a proxy as in:newProxyInstance(MBeanServerConnection connection, ObjectName objectName, ...
I have a java program which i'm running using eclipse. To monitor the performance, I am running Jconsole on a Windows XP system: jconsole <pid>, where pid is a process id I got running jps.exe. I get the following error message: "<pid> is not a managed VM." What can I do to run ...
105 byte By
akza at 2007-10-3 7:11:57
What is the best way to find out the size of an object in memory/heap?Many thanksAkz
398 byte By
mikemila at 2007-10-3 7:19:13
I am encountering a NoClassDefFoundError when I attempt to instantiate an instance of the HtmlAdaptorServer class from the JMX 1.2 RI from within my Weblogic server application.The weblogic ear, and staging directory contain both the jxmri.jar and the jmxtools.jar.Any ideas of what I am ...
134 byte By
iwonga at 2007-10-3 7:19:58
How to restrict a user to access a particular operation. If set readonly in access.properties file all operations are disabled.
A set of Java 6 processes runs on localhost.Using a shell script, I could jmap -dump them all hourly.Can I do the same from Java code?How does jmap -dump actually work? Does it use the Attach API?(for those of us without the Research license)
Hi!I tried to make a java program that communicate to a remote JVM via JMX and get some properties.I don't have problems getting OS properties, or Threads, but i can't get memory utilization.Anyone have an example to read the memory utilization in a remote jvm?I make a program that take this ...
Hi,I'm running a JMX application using local adapter (-Dcom.sun.management.jmxremote placed on the command line). Is there any way to connect to the application programmatically, like jconsole does? It seems there is no information on issue in tutorial. If this is not possible and I need to ...
Hi all,My application will be running in Weblogic App server. Here I have send the alarms which will be noticed by Weblogic SNMP Agent. Here I would like to now is weblogic provides SNMP Manager? or can anyone recommand me the SNMP Manager tool or API thanksRegards,Ramesh ...
It would be interesting to read a little bit about the current implementations of the Attach API on the platforms that Sun ships Java6 on.I realise that such information is subject-to-change, internal, unsupported, etc. But still a very interesting technical read (for some of us).Perhaps an ...
Hi all,I delevoped multi-threaded application and I would like to test it on:- machine with 2-cored processor- machine with 2 processorsIs there possibility to push JVM to use only one core / one processor of hosting machine ? Just for comparision of efficiency ...
Jdk6 has basic WinNT support for the command-line diagnostic tools. While a nice improvement over Jdk5, these's still a lot of nice stuff missing that *is* available to the other platforms.While I realize that most of these utilities are 'unsupported', I'm curious about the reasons from ...
148 byte By
gstar42a at 2007-10-3 8:43:09
Is there something built in to JMX that allows me to start applications or must I write my own agent that spawns the process.Thanks...
2106 byte By
Requiema at 2007-10-3 8:52:31
hello everyone,first, i am running over windows xp x64 bit platform.2 gb ram, gfeorce 7 256 mb, 3.2 pentium D dual core processor.i don't know if the OS i have is a problem by itself concerning running java aplications!i downloaded a package from the sun, that contains:- jdk1.5.0_09- ...
478 byte By
EmboMana at 2007-10-3 8:56:30
Hi all,I want to monitor an application using jstat, and I need to start jstat from another Java app. Forking a jstat process would work for this purpose. But for that, I need the local VM identifier, or lvmid, of the java processes I want to monitor.I know I can get this by running jps, but is ...
Hi,I'm trying to use Jboss JMX console to configure my application. Some of the properties I need, I know in advance. Some of them though(like connections I need to be able to add/delete/modify on the fly ) are not. I don't know how many of them I'll need, I don't know what their names will ...
219 byte By
arra at 2007-10-3 9:05:47
Hi,I want to acess the java MBeans and perform the operations ( like changing an attribute or calling a function etc..), without using jconsole.How do I do it?Thanks in advance,Regards
858 byte By
Luc_Shia at 2007-10-3 9:06:47
I use MBeanServer.queryMBeans(null,null) to get all MBean registered to PlatformMBeanServer. then I use following statement to try to invoke method on each MBean:Set beans = mbs.queryMBeans(null,null);Iterator iter = beans.iterator();while (iter.hasNext()){ ObjectInstance objInstance = ...
307 byte By
zenonfa at 2007-10-3 9:10:54
I would like to monitor the GC activity of a process which is already runningbut I don't want to restart it with "-Xloggc:file" option. Ideally it would beuseful to have a possibility to turn the "GC monitoring" on and off.Thanks for any hints and/or code samples. ...
241 byte By
gewalda at 2007-10-3 9:13:25
Hi,I have a Java-Application A and a Java-Application B. Is it possible to connect from application A to application B in order to get the free memory of B磗 vm?Does anybody know how it works?GreetingsGregor
Hi all,I've already posted this message to the tomcat mailing list as well as to the jmx forum, but without any result.I've a web service running inside tomcat whichcreates the jmx stuff needed to manage resources:LocateRegistry.createRegistry(port);String localhost = ...
Hi all,I have a class implementing the NotificationEmitter interface which delegates notification management to a NotificationBroadcasterSupport object.My addNotificationListener method looks like:public void addNotificationListener(NotificationListener listener, NotificationFilter filter, ...
hey, how to load properties file in a dynamic Mbean?i could get an enumeration of values and names, and need to set that in the setAttribute function, but in set attribute function i shouldn use the setter and getter method of the individual values of proprty file.Ex: i shouldn use setName n ...
1479 byte By
nirgala at 2007-10-3 9:17:17
I'm running my web application on Sun Java Application Server 8. Using Admin Console or asadmin doesn't solve the problem. I need to add a new user to a realm called "file" and I need to do that using method. I named this method "addNewUser(user,password)" and it looks as follows:public void ...
Hi all,I have an MBean which implementation fooSub subclasses a class fooSuper which is not an MBean: public interface fooSubMBean { // some methods}public class fooSuper implements fooInterface { // some methods}public class fooSub extends fooSuper implements fooSubMBean { // ...
383 byte By
preaneya at 2007-10-3 9:20:44
Is anyone aware of any freeware tools for parsing the information contained in a verbose gc log? These logs have lots of info, but the format is very hard to read.I have seen some flashy tools for sale with graphs, etc, but all I really need is something that would reorganize the information ...
579 byte By
mir13a at 2007-10-3 9:26:14
Hi,I am trying to pop up a jconsole on clicking a process name in the browser.For this i used applets. Based on the process name clicked i decide the jmxUrl to which the jconsole has to connect to.I was able to do this using a signed jconsole.jar and then by invoking the main method of ...
Has anyone out there embedded a JConsole within their own application? Why might I want to do this? Well, we have a large number of Java applications running and we want to monitor them! Rather than have to run a hundred separate JConsoles, it would be nice to run one tool where we could ...
Hi,Would like to expose methods of my POJO's dynamically.for ex : my POJO wil have few getter and setter methods like getName(), setName()Another POJO wil have methods like getAccntDetails(), setAccntDetails().so how do i write a common Mbean implementation to expose both of these by ...
Hi all,I know it's possible to monitor the system memory usage, bu I was wondering if it's possible to monitor other low level system resources like cpu usage and i/o without using external libraries (I've found http://support.hyperic.com/confluence/display/SIGAR/Home, for example).Thanks in ...
Hi guys,I have an urgent question. We have a process which is already up in our production environment. I need GC statistics since we have some doubts on stop-the-world case (application threads are stopped and waiting something very long). I mean by GC statistics, Full GC times and its ...
Hi I m very new to JMX. I m trying to run a simple JMX example in JBoss. I m getting compilation error at HtmlAdaptorServer adapter = new HtmlAdaptorServer();The problem of course is at import com.sun.jdmk.comm.HtmlAdaptorServer;Can someone plz tell me what files I need to add to my classpath ...
Hi Where would I get com.sun.jdmk.comm.*;Can someone plz help me out with it. I m stuck up coz my application is throwing a comiplation error since the import com.sun.jdmk.comm.*; is not present in my classpath.Jenny
Plz help me out.I need to run a simple JMX application in JBoss. I would also be using JManage. Kindly can anyone help me out to run an agent for it. All the examples that I have got from the internet is using HTMLAdaptorServer. But I m using open source tools so I cannt download the stuff from ...
1) Does the (default?) -all mode include unreachable (but not yet collected) objects?2) Do both the all and live mode include weakly referenced objects?3) HotSpotVirtualMachine#dumpHeap() returns an InputStread (that is dumped to stdout in drain()). I assume the reason for this is to display ...
i have a problem whith source code i can't execute this code can u help me please this code is project for voice over ip thank uuuu
Hi,While running this command.# java -Xms8096m -Xmx8096m newserver.shI am getting the following error:Invalid initial heap size: -Xms5000mCould not create the Java virtual machineI tried with - server option also. But same error. Can any one tell me what is the limit of heap size allowed in ...
243 byte By
arra at 2007-10-3 10:07:47
Hi,Can you please tell me as to how to adopt the principles of JMX (like acessing the Beans remotely, changing the attributes,viewing the notifications) into J2EE ,(ie EJBs).Thanks a lot in advance!RegardsArr