in discussion projects / jmxterm » jmxterm: Operation requires JDK instead of JRE
thanks for reply. it's clear.
This page is to share your ideas with CyclopsGroup team. Most forum categories allows anonymous post.
RSS: New threads | New posts
thanks for reply. it's clear.
To list running JVMs, Jmxterm needs jars from JDK_HOME/lib that doesn't exist in JRE. Is the java command that you ran from a JDK or JRE? For example, …/jdk1.6.0/bin/java is good, …/jdk1.6.0/jre/bin/java or …/jre1.6.0/bin is bad. If you are not sure, run "which java" and let me know the result. Thank you.
Regards
-Jiaqi
hi all,
i'm trying to start jmxterm (java -jar jmxterm.jar) and listing all running JVM processes (command 'jvms' in jmxterm) … . but jvms commnad throw me exception like this:
#UnsupportedOperationException: Operation requires JDK instead of JRE.
I'm using java:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
could you give me some advice where is problem or what i did wrong??
thanks,
ivan
Hi,
I'm controlling jmxterm from a Python script, and I'd like an automated way to funnel the data returned in Python objects. What is the data format that is used to return the values?
Thanks,
Mark
A freelance writing jobs announcement site and community resource for freelance writers and bloggers.
it's supposed to be the same
echo "get -s -b java.lang:type=Runtime Name" | java -jar …
Does anyone know how to script this within windows using a batch file?
I should document it somewhere. The delimiter is &&, not ;
Hi,
I'd like to execute several commands when using Jmxterm in non-interactive-mode. First I'd like to connect (via "open") and then I'd like to get the value of a mbean. I tried
echo "open 7358; get java.lang:type=Runtime Name" | java -jar jmxterm-1.0-alpha-4-uber.jar -n
Many thanks in advance!
Sven
Thanks for pointing out!
You need the "-n" on the "java -jar" command in the perl example.
Aside from the purpose, ActiveMQ or arbitrary object, MBean is simple conception for remote object with attributes, operations and notifications. What exactly is the object name and operation that you want to call?
"run browse myprop LIKE 'foobar_%'" calls operation browse("myprop", "LIKE", "'foobar_%'") of selected bean, is it the right operation you attempt to call?
Regards
That sounds very helpful. I'd like to add this script that creates RPM to source repository, and start including RPM file as part of release. Is the script available somewhere? Thanks!
Regards
-Jiaqi Guo
I deploy software to RHEL and Fedora systems, and needed an RPM to bundle up this tool. I've written one to publish the .jar file to /usr/share/jmxterm, and dump a shell script called /usr/bin/jmxterm. Does anyone want it?
Did you try escaping dash with \? I never had a name with dashes but \ can escape white space without problem.
So try "bean module\-name=cluster". If you still see an error, please feel free to report a bug in http://wiki.cyclopsgroup.org/jmxterm:support. Thanks.
Actually, the real MBean name has a hypen, e.g:
foo-baa.xyz.cluster:module-name=cluster
Looking at PATTERN_PROPERTIES in the source, it uses the word regex "\w", I don't think this allows for hyphens although I haven't coded in java in a long time.
I'm trying to test jmxterm, unfortunately I can't set the MBean (although I can set the domain). From the below output of "beans" what exactly is the "bean" command to set the MBean to that showed below?
$>domain foo.baa.cluster
#domain is set to foo.baa.cluster
$>beans
#domain = foo.baa.cluster:
foo.baa.cluster:module-name=cluster
$>
No matter what arguments I pass to the "bean" command I always get a Bean name isn't valid error.
I All,
I have an ActiveMQ enviroment. I'd like to use jmxterm for quering my 'FOO.BAR' queue.
I need to retrieve all messages matching a condition on a custom message property (e.g. in my messages the myprop property can assume the values foobar_1,….,foobar_N).
I tried to call:
run browse myprop LIKE 'foobar_%'
but it doesn't work, instead it works perfectly e.g. in jconsole :(
Someone can help me?
I'd like to thank you as well. Tried several alternatives but came to a close on this one. Function, ease of use - excellent!
Best regards,
Michael
I created bug https://bugs.launchpad.net/jmxterm/+bug/319375 to track this issue. Thanks for reporting it.