Community » Forums » JBoss - Application Server > Twiddle syntax vs listMemoryPools()?
February 25, 2009 6:17:46 PM PST (one year ago). Seen 1,562 times.
Photo Keath Lewin
Specialist
Primavera Systems, Inc
Member since Sep 30, 2008
Posts: 2
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).
February 25, 2009 9:52:02 PM PST (one year ago)
Photo Aleksandar Gargenta
Partner
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 78
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


February 26, 2009 2:03:22 PM PST (one year ago)
Photo Keath Lewin
Specialist
Primavera Systems, Inc
Member since Sep 30, 2008
Posts: 2
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!