Open GoogleCodeExporter opened 8 years ago
i have the same problem, but my mbean does not come with 'type' , and even I
start jmxsh with '-d', I dont see any debug log print.
Any idea?
I am testing in SPARC solaris 10, jre 1.6.0.24
regards
Original comment by kwa...@gmail.com
on 1 Dec 2011 at 7:35
forgot to mentioned, mbean name with space in between, eg. "Par Eden Space"
Original comment by kwa...@gmail.com
on 1 Dec 2011 at 7:55
found the solution, should quoted the mbean as a whole string then following by
attrob , like:
jmx_get -m "java.lang:type=MemoryPool,name=Par Eden Space" Name
Original comment by kwa...@gmail.com
on 1 Dec 2011 at 9:13
> and even I start jmxsh with '-d', I dont see any debug log print.
> Any idea?
You also need to specify a logfile (-l <LOGFILE>).
BTW: your problem is different from mine, because in my case the quotes (") are
part of the actual mbean name (e.g.
Catalina:type=ThreadPool,name="ajp-bio-8009").
Original comment by gscha...@gmail.com
on 2 Dec 2011 at 9:30
This seems to be a regression in jolokia.war
I have the same error as you when I use 1.0.1 going back to 0.95 its fine
About to check if there is anything on the jolokia site about it.
Original comment by thepeelo...@gmail.com
on 5 Dec 2011 at 10:03
Fixed it for me by upgrading jmx4perl to 1.04, that works with the 1.0.1 war
agent
Original comment by thepeelo...@gmail.com
on 5 Dec 2011 at 10:36
Same problem with tomcat7 for me.
Version: jmxsh-R5
Not using jmx4perl
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009" connectionCount
Error: Cannot convert result to a string.
Cannot convert result to a string.
%
Was any solution found in the meantime?
Do you need any other detail?
Original comment by robe...@resecco.com
on 27 Nov 2013 at 1:56
Hello,
Same issue here - attempting to monitor the AEM 5.6.1 replication queue with
jmxsh.
I am able to browse and get the correct values using the browse mode but not
when using jmx_get.
The mbean name is com.adobe.granite.replication:type=agent,id="flush".
I've tried various methods of escaping the quotes but haven't managed to find
anything that works so far..
Original comment by soli...@gmail.com
on 3 Dec 2013 at 10:59
Oh wait - I found a workaround. Double your last quote - in my case I changed
the string to contain a double quote at the end:
com.adobe.granite.replication:type=agent,id="flush""
Bit of a hack but I can confirm it works :)
Original comment by soli...@gmail.com
on 3 Dec 2013 at 11:51
not working 4 me... :(
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009"" connectionCount
java0x3
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009"" connectionCount
java0x4
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009"" connectionCount
java0x5
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009"" currentThreadCount
java0x6
%
Not even moving the second quote elsewhere
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009""
currentThreadCount"
Error: Cannot convert result to a string.
Cannot convert result to a string.
% jmx_get -n -m Catalina:type=ThreadPool,name="ajp-apr-8009"
currentThreadCount"
Error: Cannot convert result to a string.
Cannot convert result to a string.
%
Original comment by robe...@resecco.com
on 6 Dec 2013 at 9:15
[deleted comment]
[deleted comment]
% jmx_get -m
\"kafka.controller\":type=\"KafkaController\",name=\"ActiveControllerCount\"
Value
Error: Cannot convert result to a string.
Cannot convert result to a string.
You're in a tcl shell, so this works:
% set MBEAN
\"kafka.controller\":type=\"KafkaController\",name=\"ActiveControllerCount\"
"kafka.controller":type="KafkaController",name="ActiveControllerCount"
% jmx_get Value
0
Original comment by wsanders...@technoratimedia.com
on 26 Jun 2015 at 11:27
Original issue reported on code.google.com by
gscha...@gmail.com
on 14 Sep 2011 at 2:24