Skip to main content

Jboss JMX client twiddle

Twiddle is a command line tool that interact with JMX server instance. For linux systems is under $JBOSS_HOME\bin directory. Usage can be learned typing ./ -h from command line.

./ -h
A JMX client to 'twiddle' with a remote JBoss server.

usage: [options] <command> [command_arguments]
-h, --help                             Show this help message
     --help-commands           Show a list of commands
-H=<command>                 Show command specific help      Specify the 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:
./ -s localhost serverinfo -l

Active Sessions for a web application: 
./ -s localhost get "jboss.web:host=localhost,path=<application context name>,type=Manager" activeSessions


Popular posts from this blog

Find and replace with sed command in Linux

Find and replace feature is always handy. It can turn into a torture when it comes to change or delete a simple constant string in a text file. There is a handy tool in linux for doing these kind of tihngs. Actually sed is not a text editor but it is used outside of the text file to make changes.