geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v2.2 > Monitoring thread pools
Date Fri, 24 Jul 2009 08:26:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=GMOxDOC22&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Monitoring+thread+pools">Monitoring
thread pools</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~chirunhua@gmail.com">Runhua
Chi</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
class='ScrollbarPrevIcon'><a href="/confluence/display/GMOxDOC22/Monitoring+components+on+Geronimo+Server"><img
border='0' align='middle' src='/confluence/images/icons/back_16.gif' width='16' height='16'></a></td><td
width='33%' class='ScrollbarPrevName'><a href="/confluence/display/GMOxDOC22/Monitoring+components+on+Geronimo+Server">Monitoring
components on Geronimo Server</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/GMOxDOC22/Monitoring+the+health+of+the+Apache+Geronimo+server"><img
border='0' align='middle' src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/GMOxDOC22/Monitoring+the+health+of+the+Apache+Geronimo+server">Monitoring
the health of the Apache Geronimo server</a></td><td width='33%' class='ScrollbarNextName'>&nbsp;<a
href="/confluence/display/GMOxDOC22/Server+uptime+and+resource+utilization">Server uptime
and resource utilization</a></td><td class='ScrollbarNextIcon'><a href="/confluence/display/GMOxDOC22/Server+uptime+and+resource+utilization"><img
border='0' align='middle' src='/confluence/images/icons/forwd_16.gif' width='16' height='16'></a></td></tr></table></div>
<p>The <b>Thread Pools</b> portlet provides information about threads being
used by the Geronimo server. <br/>
<img src="/confluence/download/attachments/113547/threads.png" align="absmiddle" border="0"
/><br/>
You can click <b>Monitor</b> to see statistics about maximum threads in the pool,
lowest number recorded, highest number recorded, and threads in use for <b>ConnectorThreadPool</b>
and <b>DefaultThreadPool</b>.</p>

<ul>
	<li><b>DefaultThreadPool</b> size denotes the maximum number of threads
possible in the server.</li>
	<li><b>ConnectorThreadPool</b> size denotes the pool size of the connector
threads and is a subset of DefaultThreadPool size.</li>
</ul>


<p><b>Note:</b> Currently not all threads used by the server come from one
of these thread pools. Future enhancements will enable additional server components to use
these pools.</p>

<p>Applications which have requirements for a larger pool size may require you to increase
the default values of 30 for ConnectorThreadPool and 500 for DefaultThreadPool. For example,
assume that your application has two HTTP connectors that demand 100 simultaneous connections
each. The ConnectorThreadPool size needs to be increased to 200 and the DefaultThreadPool
size to 700.</p>

<p>The console allows you to monitor the utilization of the thread pools, but it does
not yet allow you to configure the maximum pool size.  Use the following procedure to modify
the configuration.</p>

<p>You must always stop the server before changing config.xml. Any changes made to config.xml
while the server is running will be lost. When the server stops, it writes a new copy of config.xml
so it contains any configuration changes made while the server was running.</p>

<ol>
	<li>Stop the server.</li>
	<li>Backup the server's <tt>&lt;Geronimo_HOME&gt;/var/config/config.xml</tt>
file (where <em>&lt;Geronimo_HOME&gt;</em> is the installation directory)
and then open the file in an editor.</li>
	<li>Find the <tt>&lt;module&gt;</tt> tag for the <tt>org.apache.geronimo.configs/rmi-naming</tt>
module and insert the following <tt>&lt;gbean&gt;</tt> element  inside
the <tt>&lt;module&gt;</tt> element.  Remember, if the <tt>&lt;module&gt;</tt>
element you find is currently a singleton tag, you must change the trailing <tt>/&gt;</tt>
to <tt>&gt;</tt> and add a <tt>&lt;/module&gt;</tt> tag
after your changes.
<style type="text/css">
@import url(/confluence/download/resources/confluence.ext.code:code/shStyles.css);
</style>
<!--[if IE]>
<style type="text/css">
    .code textarea, .code input { padding: 0 !important; }
</style>
<![endif]-->
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shCore.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushCSharp.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushPhp.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushJScript.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushVb.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushSql.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushXml.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushShell.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushDelphi.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushPython.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushJava.js"></script>
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;gbean
name="DefaultThreadPool"&gt;
  &lt;attribute name="keepAliveTime"&gt;5000&lt;/attribute&gt;
  &lt;attribute name="poolSize"&gt;500&lt;/attribute&gt;
&lt;/gbean&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>where <em>500</em> is replaced with the new pool size.</p></li>
	<li>Find the <tt>&lt;module&gt;</tt> tag for the <tt>org.apache.geronimo.configs/transaction</tt>
module and insert the following <tt>&lt;gbean&gt;</tt> element inside
the <tt>&lt;module&gt;</tt> element.  Remember, if the <tt>&lt;module&gt;</tt>
element you find is currently a singleton tag, you must change the trailing <tt>/&gt;</tt>
to <tt>&gt;</tt> and add a <tt>&lt;/module&gt;</tt> tag
after your changes.
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;gbean
name="ConnectorThreadPool"&gt;
  &lt;attribute name="keepAliveTime"&gt;5000&lt;/attribute&gt;
  &lt;attribute name="poolSize"&gt;30&lt;/attribute&gt;
&lt;/gbean&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>where <em>30</em> is replaced with the new pool size.</p></li>
	<li>Save the updated <tt>config.xml</tt>.</li>
	<li>Start the server.</li>
</ol>


<p><b>Note</b>: <em>ConnectorThreadPool</em> is used in J2EE
Connector Architecture (JCA), and <em>DefaultThreadPool</em> is used by Web container
and System database. </p>
     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Monitoring+thread+pools">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=113547&revisedVersion=8&originalVersion=7">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Monitoring+thread+pools?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message