<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div id="yiv735438491"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Thanks&nbsp;</span><a rel="nofollow" target="_blank" href="https://community.jboss.org/people/erasmomarciano" style="color: rgb(35, 71, 134); outline: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">erasmo2</a>&nbsp;for your prompt reply</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I have already defined<span style="font-weight:bold;"> JAVA_HOME</span> variable( using JDK 1.6.21) , is there any particular "jar" which i need to include to CLASSPATH variable for fixing the below TWIDDLE exception.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">In my environment there are 5 jboss instances which are running on <span style="font-weight:bold;">same machine &amp; having same JNP port number.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0,
 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I want to know that using TWIDDLE command how can we uniquely connect to each of the instance.</div><div style="font-family:'times new roman', 'new
 york', times, serif;font-size:16px;color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><br></div><div style="background-color:transparent;">Please suggest i&nbsp;don't&nbsp;know much about it</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Thanks</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Vicky</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new
 york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> erasmo2 marciano2 &lt;do-not-reply@jboss.com&gt;<br> <b><span style="font-weight:bold;">To:</span></b> vicky sedfre &lt;vicky007aggarwal@yahoo.co.in&gt; <br> <b><span style="font-weight:bold;">Sent:</span></b> Monday, 10 December 2012 12:01 AM<br> <b><span style="font-weight:bold;">Subject:</span></b> [Beginner's Corner] - Re: Twiddle queries<br> </font> </div> <br><div id="yiv735438491">

<div>

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border:1px solid #dadada;margin-bottom:30px;width:100%;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border:solid 2px #ccc;background:#dadada;width:100%;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom:1px solid #ccc;padding:20px;">
                                                                        <h1 style="color: rgb(51, 51, 51); font-weight: bold; font-style: normal; font-variant: normal; font-size: 22px; line-height: normal; font-family: Arial, Helvetica, sans-serif; margin: 0px; display: block;">
                                                                        
                                                                        
                                                                        
                                                                        <a rel="nofollow" target="_blank" href="https://community.jboss.org/index.jspa" style="text-decoration:none;color:#E1E1E1;">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); padding: 20px;"><h3 style="margin:10px 0 5px;font-size:17px;font-weight:normal;">
    Re: Twiddle queries
</h3>
<span style="margin-bottom:10px;">
    created by <a rel="nofollow" target="_blank" href="https://community.jboss.org/people/erasmomarciano">erasmo2 marciano2</a> in <i>Beginner's Corner</i> - <a rel="nofollow" target="_blank" href="https://community.jboss.org/message/782230#782230">View the full discussion</a>
</span>
<hr style="margin:20px 0;border:none;background-color:#dadada;height:1px;">

<div class="yiv735438491jive-rendered-content"><div>Hi</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>1) I think that you <span style="color: rgb(85, 85, 85); font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"> need to install either the OpenJVM or the Sun/Oracle JVM, and then set JAVA_HOME to that JVM.</span></div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div
 style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>2) and 3) question</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>Example that you can use with twiddle</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>To get the active session count for your own app.</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.web:type=Manager,path=/jmx-console,host=localhost activeSessions</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>To retrieve the thread queue size</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:service=ThreadPool QueueSize</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>To retrieve active thread counts</div><div>./twiddle.sh --user=admin
 --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo ActiveThreadCount</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>To retrieve the amount of free memory</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo FreeMemory</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>To get all processing stats from the HTTP acceptor on JBoss</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.web:type=GlobalRequestProcessor,name=http-127.0.0.1-8080</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>Invoke a thread dump</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 invoke
 jboss.system:type=ServerInfo listThreadDump</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>Invoke a listing of CPU utilization</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 invoke jboss.system:type=ServerInfo listThreadCpuUtilization</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>Total System memory</div><div>./twiddle.sh --user=admin --password=admin --server=127.0.0.1 get jboss.system:type=ServerInfo TotalMemory</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div style="min-height:8pt;height:8pt;padding:0px;">&nbsp;</div><div>Active Thread Count</div><div>./twiddle.sh --user=admin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&nbsp; </div><div>~&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div></div>

<div style="background-color:#f4f4f4;padding:10px;margin-top:20px;">
    <div style="margin:0;">Reply to this message by <a rel="nofollow" target="_blank" href="https://community.jboss.org/message/782230#782230">going to Community</a></div>
        <div style="margin:0;">Start a new discussion in Beginner's Corner at <a rel="nofollow" target="_blank" href="https://community.jboss.org/choose-container!input.jspa?contentType=1&amp;containerType=14&amp;container=2075">Community</a></div>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</div>
</div><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></body></html>