...
- DefaultThreadPool size denotes the maximum number of threads possible in the server.
- ConnectorThreadPool size denotes the pool size of the connector threads and is a subset of DefaultThreadPool size.
Note: 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.
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.
...
- Stop the server.
- Backup the server's
<Geronimo_HOME>/var/config/config.xml
file (where <Geronimo_HOME> is the installation directory) and then open the file in an editor. - Find the
<module>
tag for theorg.apache.geronimo.configsframework/rmi-naming
module and insert update the following<gbean>
element inside the<module>
element. Remember, if the<module>
element you find is currently a singleton tag, you must change the trailing/>
to>
and add a</module>
tag after your changes.
where 500 is replaced with the new pool size Note that ${\MinThreadPoolSize}\ and _${\MaxThreadPoolSize}_ are defined inCode Block XML XML borderStyle solid <gbean name="DefaultThreadPool"> <attribute name="keepAliveTime">5000<">30000</attribute> <attribute name="minPoolSize">${MinThreadPoolSize}</attribute> <attribute name="poolSize">500<maxPoolSize">${MaxThreadPoolSize}</attribute> </gbean>
<Geronimo_HOME>/var/config/config-sbustitions.properties
already, you can either change them in that file or replace them with new values inconfig.xml
directly.
- Find the
<module>
tag for theorg.apache.geronimo.configs/transaction
module and insert the following<gbean>
element inside the<module>
element. Remember, if the<module>
element you find is currently a singleton tag, you must change the trailing/>
to>
and add a</module>
tag after your changes.
where 30 is replaced with the new pool size Note that 30 and 50 are system defaults. You can change these 2 values to meet your need.Code Block XML XML borderStyle solid <gbean name="ConnectorThreadPool"> <attribute name="keepAliveTime">5000</attribute> <attribute name="poolSizeminPoolSize">30</attribute> <attribute name="maxPoolSize">50</attribute> </gbean>
- Save the updated
config.xml
. - Start the server.
...