Technical Stuff

Start from basics

CHEATSHEET FOR JBOSS CLI MODE

CHEATSHEET FOR JBOSS CLI MODE
CHEATSHEET FOR JBOSS CLI MODE
5 (100%) 1 vote

Today lets go with some unusual way of finding information in jboss cli mode. Sometimes, Organization expect to do some task using CLI.

 

Lets have some insight on CLI mode in JBoss EAP 5.1, In version 5.1 it is called as twiddle. It is located in /bin directory.

  1. How to count the number of Connections available in a Datasource:

twiddle.sh get “jboss.jca:name=DefaultDS,service=ManagedConnectionPool” AvailableConnectionCount

  1. How to check the amount of free memory available:

twiddle.sh -s localhost:1099 get “jboss.system:type=ServerInfo” FreeMemory

  1. Take ThreadDump :

twiddle.sh -s localhost:1099 invoke ‘jboss.system:type=ServerInfo’ listThreadDump

  1. How to suggest the JVM to run the Garbage collector:

twiddle.sh invoke jboss.system:type

Today lets go with some unusual way of finding information in jboss cli mode. Sometimes, Organization expect to do some task using CLI.

 

Lets have some insight on CLI mode in JBoss EAP 5.1, In version 5.1 it is called as twiddle. It is located in /bin directory.

  1. How to count the number of Connections available in a Datasource:

twiddle.sh get “jboss.jca:name=DefaultDS,service=ManagedConnectionPool” AvailableConnectionCount

  1. How to check the amount of free memory available:

twiddle.sh -s localhost:1099 get “jboss.system:type=ServerInfo” FreeMemory

  1. Take ThreadDump :

twiddle.sh -s localhost:1099 invoke ‘jboss.system:type=ServerInfo’ listThreadDump

  1. How to suggest the JVM to run the Garbage collector:

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

Then you should see from the server log the following message:

13:52:39,281 INFO  [Server] Hinted to the JVM to run garbage collection
13:52:39,281 INFO  [Server] Total/free memory: 170065920/139849848

  1. How to list Thread x CPU Usage:

twiddle.sh -s localhost:1099 invoke jboss.system:type=ServerInfo listThreadCpuUtilization

  1. How to count active Sessions in a Web application:

twiddle -s localhost get “jboss.web:host=localhost,path=/SampleApp,type=Manager” activeSessions

 

  1. To check HEAP.

/core-service=platform-mbean/type=memory:read-attribute(name=heap-memory-usage)

This are the some of the ways of using jboss cli Mode. If you are looking for any specific one, Do comment or can contact us directly via email or chat.

Happy Learning !!!

If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any recommedation for future blog, You can email us on [email protected]

Related Searches :

  1. VAPT – HOW TO REMOVE APACHE COYOTE VERSION FROM JBOSS
  2. DEPLOYMENT ON JBOSS EAP
  3. INSTALLATION OF JBOSS ON LINUX
  4. INTRODUCTION TO JBOSS
  5. VAPT – DISABLING HTTP METHODS
  6. INTRODUCTION AND CONFIGURATION OF LOG4J
  7. INTRODUCTION TO MIDDLEWARE

 

=Server runGarbageCollector

Then you should see from the server log the following message:

13:52:39,281 INFO  [Server] Hinted to the JVM to run garbage collection
13:52:39,281 INFO  [Server] Total/free memory: 170065920/139849848

  1. How to list Thread x CPU Usage:

twiddle.sh -s localhost:1099 invoke jboss.system:type=ServerInfo listThreadCpuUtilization

  1. How to count active Sessions in a Web application:

twiddle -s localhost get “jboss.web:host=localhost,path=/SampleApp,type=Manager” activeSessions

 

  1. To check HEAP.

/core-service=platform-mbean/type=memory:read-attribute(name=heap-memory-usage)

This are the some of the ways of using jboss cli Mode. If you are looking for any specific one, Do comment or can contact us directly via email or chat.

Happy Learning !!!

If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any recommedation for future blog, You can email us on [email protected]

Related Searches :

1. VAPT – HOW TO REMOVE APACHE COYOTE VERSION FROM JBOSS

2. DEPLOYMENT ON JBOSS EAP

3. INSTALLATION OF JBOSS ON LINUX

4. INTRODUCTION TO JBOSS

5. VAPT – DISABLING HTTP METHODS

6. INTRODUCTION AND CONFIGURATION OF LOG4J

7. INTRODUCTION TO MIDDLEWARE

2 thoughts on “CHEATSHEET FOR JBOSS CLI MODE

Leave a Reply

%d bloggers like this: