Twiddle Tool - JBoss

Twiddle Tool - JBoss

Command Line access to a [remote] JMX server (similar to web-based JMX Console)

Its capabilities include:

Getting/setting attributes on MBeans

Invoking operations on MBeans

Looking up MBeans

Getting server information

Called twiddle (for twiddling bits)

bin/twiddle.sh (UNIX)

bin/twiddle.bat (Windows)

Great for automation

List all deployed web applications:

./twiddle.sh query "jboss.web.deployment:*"

jboss.web.deployment:war=web-console.war,id=115013145

jboss.web.deployment:war=jbossmq-httpil.war,id=753610482

jboss.web.deployment:war=ROOT.war,id=-1586513555

jboss.web.deployment:war=jboss-ws4ee.war,id=1143514564

jboss.web.deployment:war=jmx-console.war,id=-1884883379

jboss.web.deployment:war=fortune.war,id=2147076203

jboss.web.deployment:war=invoker.war,id=-1536256770

Inclined to build a profession as JBOSS Developer?

Then here is the blog post on JBOSS Training Program.

Control the life-cycle an application

./twiddle.sh invoke jboss.web.deployment:war=fortune.war,id=2147076203 stop

'null'

./twiddle.sh invoke jboss.web.deployment:war=fortune.war,id=2147076203 start

'null'

Get a state on an application

./twiddle.sh get jboss.web.deployment:war=fortune.war,id=2147076203 StateString

StateString=Started

Get the current memory usage of our JBoss Application Server instance

./twiddle.sh get jboss.system:type=ServerInfo TotalMemory

TotalMemory=56184832

Ask JBoss AS to run the garbage collector:

./twiddle.sh invoke jboss.system:type=Server runGarbageCollector

'null'

Shutdown JBoss Application Server instance

./twiddle.sh invoke jboss.system:type=Server shutdown

For indepth understanding on JBoss click on: