
Keath Lewin
Specialist
Primavera Systems, Inc
I know I figured this out during class, but I can't translate my notes now that it's come time to use it in real life . . . any help would be appreciated!
I'm trying to poll the memory pools to figure out which pool is filling and emptying more often than desired. I can obviously get this information manually via jmx-console, but I need to poll over time, so CLI is preferred.
I've tried several dozen varieties of this, the least-dumb-looking of which are below. Google's been no help thus far, and this is probably not a challenging question for those more java-savvy than I, so I'm hoping there's an easy answer?
twiddle -s localhost invoke "jboss.system:type=ServerInfo listMemoryPools(1)"
twiddle -s localhost invoke "jboss.system:type=ServerInfo:listMemoryPools(1)"
twiddle -s localhost invoke "jboss.system:type=ServerInfo,listMemoryPools(1)"
twiddle -s localhost invoke "jboss.system:type=ServerInfo" listMemoryPools(1)
etc, etc, etc . . .
Where am I going wrong?
Edited one time. Last edit by Keath Lewin on Jun 15, 2010 at 2:14:50 AM (about 11 weeks ago).

Aleksandar Gargenta
Partner
Marakana, Inc.
Keath,
Try
twiddle invoke "jboss.system:type=ServerInfo" listMemoryPools true
(i.e. twiddle method arguments are simply separated by white-space - non parenthesis).
Note that the output of the listMemoryPools operation is HTML-formatted.
I hope this helps,
Sasa

Keath Lewin
Specialist
Primavera Systems, Inc
That's perfect, Sasa! Thank you! I thought there was an way to get ASCII text only output, but maybe that was a different method's output. HTML formatting is the least of my worries, though. It was the parenthesis vs white-space separated arguments that was tripping me up. Thanks very much!