1 2 3 4 5 6 7 8

How-to determine objects in the PS Old Generation space

911 byte By garnettka at 2007-10-3 5:53:26
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 ...

ObjectName conventions for multi-classloader, clustered environments

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 ...

How to enable deploed EARs using jmx console

143 byte By kalyani_For_Javaa at 2007-10-3 5:58:27
On sun one application server i have deployed EAR applications.Can we enable or disable these EARs programatically using the jmx?

JConsole: Meaning of TOTAL WAITED and TOTAL BLOCKED in Thread View

267 byte By juan_veleza at 2007-10-3 6:01:19
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

JMX & Sun Java System 8.1

1574 byte By ravi_sachdeva at 2007-10-3 6:03:16
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 ...

Tool for viewing the loaded classes, defining and initiating ClassLoaders

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 ...

How to use Hashtable in Rules Engine. And objects within objects in rules

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 ...

Objects Resident in JVM

246 byte By albertthea at 2007-10-3 6:45:03
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!

jconsole problem

125 byte By ParasVanjania at 2007-10-3 6:48:16
hi,<pid> is not a managed VM.........what could be the possible reasons for thatthanksparas

j console doesnot detect MBeans

634 byte By ParasVanjania at 2007-10-3 6:48:18
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 ...

Does jconsole support monitoring of MBeans registered to New MBean Server?

418 byte By keerthi5678a at 2007-10-3 6:55:54
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 ...

JMX and websphere

1582 byte By dominicadatiaa at 2007-10-3 6:59:32
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 ...

java.lang:type=threading mbean

877 byte By jeffBoringLakelanda at 2007-10-3 7:07:33
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, ...

Problem with JConsole

345 byte By sherinpearla at 2007-10-3 7:11:51
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 ...

Object Size

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

NoClassDefFoundError for HtmlAdaptorServer on Weblogic

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 ...

Access control

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.

Invoke built-in dumper via Attach API

277 byte By Pakka-Pakkaa at 2007-10-3 7:37:46
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)

Accesing Memory utilization in remote jvm

381 byte By FabianTomea at 2007-10-3 7:48:11
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 ...

How to access local adapter

438 byte By roman.k.va at 2007-10-3 7:52:38
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 ...

How to use Weblogic SNMP Agent ?

316 byte By RameshKumarBiradara at 2007-10-3 8:01:18
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 ...

Attach API implementations on Solaris/Linux/Win32

334 byte By Pakka-Pakkaa at 2007-10-3 8:03:32
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 ...

Testing single core / processor in Java

326 byte By mgawineckia at 2007-10-3 8:24:16
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 ...

Better jmap/jsadebugd/etc support on WinNT post-Mustang?

957 byte By Pakka-Pakkaa at 2007-10-3 8:28:29
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 ...

Starting an application? (newbie question)

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...

x64 jdk HELP ANYONE

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- ...

Getting lvmid programmatically

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 ...

DynamicMBean implementation

712 byte By JavaSufferera at 2007-10-3 8:57:06
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 ...

If no jconsole.....?

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

How to use MBeanServer invoke method of MemoryPoolMXBean&GCBeans

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 = ...

How to monitor GC activity of already running Java process?

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. ...

Watch free memory of other VM

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

JMXConnectorServer.start() causes java.rmi.AccessException

23438 byte By michele81a at 2007-10-3 9:13:49
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 = ...

Notification not received

1055 byte By michele81a at 2007-10-3 9:15:11
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, ...

load properties file in a dynamic Mbean

374 byte By CoolestAtha at 2007-10-3 9:16:31
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 ...

How to add a new user to a realm programmatically?

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 ...

ClassCastException & MBeanServerInvocationHandler

1494 byte By michele81a at 2007-10-3 9:20:37
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 { // ...

Tools for parsing verbose:gc log?

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 ...

Can we fire JCONSOLE from an applet with out crashing the application

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 ...

Embed JConsole within our own application

2028 byte By oxbow_lakesa at 2007-10-3 9:33:08
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 ...

How to expose methods of a class dynamically.. using Model Mbean?

523 byte By CoolestAtha at 2007-10-3 9:51:07
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 ...

System resources monitoring: is it possible?

339 byte By michele81a at 2007-10-3 9:54:44
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 ...

Garbage collection statistics

628 byte By serkandemira at 2007-10-3 9:54:55
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 ...

HtmlAdaptorServer - Compilation Error

385 byte By java_bluesa at 2007-10-3 9:59:59
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 ...

com.sun.jdmk.comm.*;

237 byte By java_bluesa at 2007-10-3 10:00:17
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

A simple JMX application- Help !!!

498 byte By java_bluesa at 2007-10-3 10:00:53
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 ...

Various jmap questions

564 byte By Pakka-Pakkaa at 2007-10-3 10:01:34
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 ...

demande de renseigement

139 byte By megacoola at 2007-10-3 10:02:42
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

Invalid initial heap size in JVM 1.4.2_04 on solaris 9

380 byte By Vasanthana at 2007-10-3 10:05:04
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 ...

Jmx in J2EE

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