[jboss-user] [Beginner's Corner] - Re: Twiddle queries
erasmo2 marciano2
do-not-reply at jboss.com
Sun Dec 9 13:31:34 EST 2012
erasmo2 marciano2 [https://community.jboss.org/people/erasmomarciano] created the discussion
"Re: Twiddle queries"
To view the discussion, visit: https://community.jboss.org/message/782230#782230
--------------------------------------------------------------
Hi
1) I think that you need to install either the OpenJVM or the Sun/Oracle JVM, and then set JAVA_HOME to that JVM.
2) and 3) question
Example that you can use with twiddle
To get the active session count for your own app.
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.web:type=Manager,path=/jmx-console,host=localhost activeSessions
To retrieve the thread queue size
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:service=ThreadPool QueueSize
To retrieve active thread counts
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo ActiveThreadCount
To retrieve the amount of free memory
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo FreeMemory
To get all processing stats from the HTTP acceptor on JBoss
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.web:type=GlobalRequestProcessor,name=http-127.0.0.1-8080
Invoke a thread dump
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 invoke jboss.system:type=ServerInfo listThreadDump
Invoke a listing of CPU utilization
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 invoke jboss.system:type=ServerInfo listThreadCpuUtilization
Total System memory
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo TotalMemory
Active Thread Count
./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo ActiveThreadCount
~
~
~
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/782230#782230]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121209/56dd9166/attachment-0001.html
More information about the jboss-user
mailing list