Twiddle is a command line tool that interact with JMX server instance. For linux systems twiddle.sh is under $JBOSS_HOME\bin directory. Usage can be learned typing ./twiddle.sh -h from command line.
./twiddle.sh -h
A JMX client to 'twiddle' with a remote JBoss server.
./twiddle.sh -h
A JMX client to 'twiddle' with a remote JBoss server.
usage: twiddle.sh [options] <command> [command_arguments]
options:
-h, --help Show this help message
--help-commands Show a list of commands
-H=<command> Show command specific help
-c=command.properties Specify the command.properties file to use
-D<name>[=<value>] Set a system property
-- Stop processing options
-s, --server=<url> The JNDI URL of the remote server
-a, --adapter=<name> The JNDI name of the RMI adapter to use
-u, --user=<name> Specify the username for authentication
-p, --password=<name> Specify the password for authentication
-q, --quiet Be somewhat more quiet
options:
-h, --help Show this help message
--help-commands Show a list of commands
-H=<command> Show command specific help
-c=command.properties Specify the command.properties file to use
-D<name>[=<value>] Set a system property
-- Stop processing options
-s, --server=<url> The JNDI URL of the remote server
-a, --adapter=<name> The JNDI name of the RMI adapter to use
-u, --user=<name> Specify the username for authentication
-p, --password=<name> Specify the password for authentication
-q, --quiet Be somewhat more quiet
Some simple usage is here:
List of MBeans published:
./twiddle.sh -s localhost serverinfo -l
Active Sessions for a web application:
./twiddle.sh -s localhost get "jboss.web:host=localhost,path=<application context name>,type=Manager" activeSessions
Comments
Post a Comment