580 byte By
Jinia at 2007-11-26 12:59:18
Hi All,Is there a ways to monitor/change JVM parameters at runtime?ExampleIf I pass a custom jvm parameter in the following way:java -Dmy.custom.argument=myvalue -jar Stylepad.jarIs there a way to monitor this argument (-Dmy.custom.argument=myvalue) at runtime with both read and write ...
1152 byte By
honey26a at 2007-11-26 12:59:52
hi,Im facing mysql Communication link failure problem, am using Linux OS(2.4.21-4) with MySQL V. 4.1.7 , Mysql driver 3.1.6 exception . im using LInux server with mysql driver , when i execute my program its running fine .after 1 day mysql inactivity happens disconnect from server and ...
Hi,I have the following problem. I'm using MX4J (3.0.2) implementation of JMX. The MBean server is running on Java 1.4. I exposed a JSR-160 JMXConnectorServer correctly bounded to "service:jmx:rmi://localhost/jndi/rmi://localhost:9099/jmxrmi" using Spring JMX support.I have a java client (to ...
204 byte By
RobinMa at 2007-11-26 13:01:14
Hi everyone,in front of an MBean there is a little pictogram. What is the meaning for this. Some of the MBeans have a green pictogram while other have a orange one.RegardsRobin
I am looking at an OperatingSystem MBean through JConsole. It is giving me the attribute "TotalPhysicalMemorySize" as being 2048MB. However, the actual server has closer to 3000MB. This is the same for many other processes I connect to - if the actual drops below 2048, the display is correct. ...
HI! Everyone,I am new to this mailing list ..I am looking for the jmx SNMP Manager API implementations. I am not sure if they are available in th examples that come with the binaryinstallations. I am looking to build an SNMP Manager which can do thefunctionalities like sending of SNMP Requests, ...
243 byte By
rajyma at 2007-11-26 13:21:52
i have jdk1.4 installed on my system with global variables defined for it.now i am planning to install netbeans 5.5 with jdk6 integrated on my system without removing the previous installation...how to achieve this?....any suggestions..
I am facing an issue while compiling a java codeThe code was earlier compiling with a lower version of jdk i.e. 1.4.1.02 but now when I am compiling the same code with any higher versions, like 1.4.2, it is throwing an error.-bash-2.03$ /export/home/jdk/1.4.1_02/bin/javac -d ...
532 byte By
K_Palema at 2007-11-26 13:37:07
Before the JDK 1.4.2 source taken out from the downloads link, I had downloaded the JDK 1.4.2, JdK 1.4.2 Update 13 and other dependencies. Now JDK 1.4.2.0 is no more accessible to download in Download link.I have built the source code using "gnumake scsl". But I did not see latest time zone ...
when i run javac with the command prompt it says that the file is not found when i had just saved it to my hard drive and when i check the file is indeed there so i cant seem to figure out what the problem is. any help would be appreciated.
I have an existing JAVA application that I need to monitor using JMX. What are the options that I can use? The ideal scenario would be that the application bieng monitored does not know that it is bieng monitered.
3019 byte By
jimboda at 2007-11-26 14:01:04
Hi,I am trying to establish a JMXConnectorServer that only binds to a single IP address on a machine with multiple IP addresses. I have used the following program as a test. The address and port on which to listen are read as system properties specified at run-time, jmxconnectorserver.address ...
Hello Everyone,I am new to this forum. I know there is lot around regarding OutofMemoryException but I wanted to start this new thread. I am a newbie to Java and need help. My application runs of of Memory at times. I have not been able to see a fixed pattern sometimes its gradual in 1-2 hours ...
2630 byte By
sshalabia at 2007-11-26 14:13:58
I need to debug a problem in production and jstack is not helping.. Please help!Thanks,SamiLinux version:Linux 2.6.15-1.2054_FC5 #1 SMP Tue Mar 14 15:48:20 EST 2006 x86_64 x86_64 x86_64 GNU/LinuxJava version:java version "1.5.0_10"Java(TM) 2 Runtime Environment, Standard Edition (build ...
Hi,i try to do a simple example of a JMX server with JRE 1.4I've download jmxremote-1_0_1-ri-bin-b58.zip and jmx-1_2_1-ri.zipWhen i use rmiregistry from JRE 1.4, i've this exception :java.io.IOException: Cannot bind to URL [rmi://localhost:8888/server]: javax.naming.CommunicationException ...
650 byte By
drorwea at 2007-11-26 14:20:25
Hello,I need a profiler to analyze heap memory usage. I have tried quite a few including JProbe, jhat+jmap, JProfiler but they all fail to give an aggregative view of how much memory does each of my objects consume. For example, I see that 30% of the memoey is allocated by HashMap$Entry. Well, ...
Hi,Can anyone suggest different type of JMX connectors or adaptors? I found that RMI is being used extnesively. But what are pros n cons of that and of others? Which one is best suitable for web based application?Thank You.Jahnvi
606 byte By
uday.dva at 2007-11-26 14:23:27
I hae installed 2 versions of java 1.4.2_04-b05 and jdk1.5.0_08. Can I make current JRE to be 1.5.0_08 without uninstalling the previous version ?Can anybody please help me out?I tried changing the JAVA_HOME to the version jdk1.5.0_08 but it's still showing the version 1.4.2_04-b05 of JRE in ...
I've been running through the tutorial to learn the Java Language... have been trying to get started and cannot get the javac command to work in command promt. I recieve this error: http://i131.photobucket.com/albums/p307/liioadin/xgfxfgjettre.jpgany clues? i posted on the New to java forum but ...
Hi I have a short question:In JRockit you can use -XXgcTrigger to force the garbage collectionto work when the free heap size reaches a special parameter.Per exampleif the free heep size reaches 10% of the total heap size.Is there someting similar in the sun vm you can set?Nice ...
Why it is often suggested to have -Xms and -Xmx of same value?
Hi,Is it possible that MBeans reside in different JVM and MBeanServer reside on different JVM? If so, then how to get instance of MBean into MBeanServer, as it is needed to register that MBean into server.or how its to be done.Thanks in advance.Please Help.
Hey,I set Xmx to 110M, but if i look on the java process via task manager i see that the memory start arout 30M and is growing to more than 500M.Does any one has an idea why the Xmx dosnt limit the heap size?thank you
Hi, Just have a fundamental query. How to deploy a non-web application on JBOSS App server ? Ours is a basic java application with just class files and we make it run by invoking a main method. My question is how do I wrap up my code and do I have to package it as WAR file to deploy it ? Please ...
413 byte By
preaneya at 2007-11-26 14:44:17
From what I can tell, the gc timestamps only output the number of seconds since the start of the program. IMHO, this is not very useful, especially if you're trying to find the exact time of some event.For example, this: Wed Jan 10 09:10:56 CST 2007seems a lot more useful than :2533.925Is ...
ebook or articles for java performance tuning?Thank you
282 byte By
radianta at 2007-11-26 14:47:46
Hi All,I frequently get this Out Of Memory error during building my code[which is quite huge]. After through brwsing, i understand that the jvm memory should be increased using the Xms & Xmx . But, where do i make this settings permanently?Thanks In Advance
Hello,I have 4Gb of ram on server but the max Xmx value jvm accept is 1574M and _only_ 1G with -server option.is it possible to increase the size of heap jvm accepts?System details: JDK1.5_10 on Windows 2000Thanks in advance.
Hello,Does it make sense to use Xmn and -XX:+UseParallelGC options together?Regards.
1126 byte By
RGibsona at 2007-11-26 15:01:37
Let's say I runjava com.mybiz.SimpleTestHow can I find out from within my Java program the name of the class on the command line? That is, how can I write a methodpublic static String getMainClassName() {// What goes here?}that will returncom.mybiz.SimpleTestin my example?I tried:1) Looking in ...
Hi All,I am a decent java programmer(or at least I presume to be).Recently I had to work with a application where I connect to Oracle database and fetch huge number of records(in terms of say 0.2 million).application was painfully slow.I started working on the optimizing the PL-SQL query but to ...
960 byte By
_dnoyeBa at 2007-11-26 15:15:20
I am trying to use jconsole to monitor a JVM running on a remote machine. I am doing this over ssh. So I told the remote JVM to start with-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.port=8010also I happen to have ...
1588 byte By
POMvRa at 2007-11-26 15:18:34
Hey folks. I apologize if this is old hat for many of you. I'm new to JMX and have been coding a very basic remote Client->Agent prototype using JMX. I have a simple Client application that is instantiating an MBean using a remote JMX Agent. This works fine if I run the Agent MBeanServer ...
Hi,IM tryin to build a network management system in java. can anyone tell me how can i call operating system(Windows) functionalities i.e. like Windows task manager, etc in java?
We use Websphere Application Server 4, and set -Xmx256m and -Xms256m to our application.After 1 day, we found that the value returned by Runtime.getRuntime().totalMemory() is 900MB.I just wonder why the heapSize will be 3 times more than we set at -Xmx ?Is it possible the bugs of JVM or WAS4 ? ...
Is there any way for a client application to be aware if it is being debugged?Is there any way of asking the JVM if JVMTI clients are attached?How about finding out what arguments were passed in to the JVM when it was launched?I see that this question was asked a few months ago with no ...
Accroding to two previous threads: http://forum.java.sun.com/thread.jspa?threadID=5123284 http://forum.java.sun.com/thread.jspa?threadID=790563A cascading situation is like:JVM-1 + MBeanServer-1 + MBean-1JVM-2 + MBeanServer-2 + MBean-2So MBeanServer-1, as master, can see proxied MBean-2 when ...
Hello. Sorry if this is in the wrong place.I'm trying to install Java, but windows (SP2) says that it is already installed. What's up with this?I did a full system scan for "java" and "jdk" and deleted every file, but I still have the same error. HELP!!
1235 byte By
rugvedaa at 2007-11-26 15:35:48
HI,I am running an application "A" which is a Client (or an Agent) registered to the notification service fo JMX and monitoring an attribute "DocumentCount.". The MBean which emits the NOtification is the ABCMBean. The notification is sent in a method which is listed under the MBean interface ...
462 byte By
lattea at 2007-11-26 15:52:09
Hello, We have our own objects in our MBeans, and they can't be displayed properly in the JConsole MBean tab, instead, the values are shown as "Unavailable". How to solve this? Is there anyway we can do from our code base to display the details of the objects (through toString())? Is it ...
259 byte By
Ni_Mina at 2007-11-26 15:58:02
I have an executable jar file in my dist directory, it used to run when I double click it, but after I tried the Profiler 5.5, it can't run any more, it says "Can't find main class", can someone tell me what happened ? And how to fix it ?Frank
hello folks!on my new PC, jconsole doesnt show the local processes (ill try to connect to remote processes soon), even with -Dcom.sun.management.jmxremote - tough, im running jdk6 so it shouldnt make any diff do any of you have any clue?
328 byte By
DKumara at 2007-11-26 16:12:34
Hello,Could somebody tell me how "ObjectName.getInstance(arg)" methods are different from "new ObjectName(arg)" , since I found internally each time you call "getInstance", it creates a new object itself. Is it added just to merely providea factory method. That's all..Thanks in advance.Deepak ...
how can i keep a watch on working of garbage collecion as it take place....any command is avalilable
220 byte By
wiedklaa at 2007-11-26 16:18:58
The open-source project Model MBean Instrumentordeals with instrumenting arbitrary POJOs as JMX Model MBeans on the fly. And it works.jsesoft-mmbi@sourceforge.netHave fun,wiedkla
505 byte By
aakturea at 2007-11-26 16:20:39
Does anyone have any recommendations for unit testing JMX classes? Say for example you want to test some method you wrote that has to query an MBeanServer and return some ObjectNames (I realize this is an over-simplification, but maybe suitable for discussion purposes). What's a good way to do ...
1106 byte By
will608a at 2007-11-26 16:22:29
Hi,Scenario:A 1.5.0_xx JVM is running locally on a Windows box. This JVM wasn't started with the "com.sun.management.jmxremote.port" property, and the JVM also can't (shouldn't) be restarted so that rules-out restaring the JVM with the needed property.Problem:Given the above scenario, how ...
477 byte By
Joannea at 2007-11-26 16:31:31
Is it okay for multiple threads to share a single MBeanServerConnection object to invoke a method in an mbean? I have a thread pool with a number of threads in there, and each of them will run a job that invokes a method in an mbean. For better efficiency, I'm thinking if I could construct a ...
1751 byte By
honey26a at 2007-11-26 16:33:31
hi all, Can anybody help me.. Im using jakarta-tomcat-4.0.4 and O.S is linux.when im trying to stop the tomcat.im facing the this problem.. [root@sample bin]# ./shutdown.shUsing CATALINA_BASE:/usr/local/jakarta-tomcat-4.0.4Using CATALINA_HOME:/usr/local/jakarta-tomcat-4.0.4Using ...
296 byte By
SamOttoa at 2007-11-26 16:37:04
I have a tomcat application (running on JDK 1.4.2) that is producing a heapdump file. It's probably an OutOfMemory Error but...What tool can I use to analyze a 1.4.2 heapdump file? I would really like to know how many objects of class X are currenly in the system etc.Thanks