📄 poolmanxml.html
字号:
<nativeResults>false</nativeResults></code></p> <p> <code> <!-- ======================== --><br> <!-- Pool Behavior Attributes --><br> <!-- ======================== --></code></p> <p> <code> <!-- Connections created when the pool is instantiated --><br> <!-- DEFAULT: 1 --><br> <initialConnections>2</initialConnections></code></p> <p> <code> <!-- The pool will never shrink below this number --><br> <!-- DEFAULT: 0 --><br> <minimumSize>0</minimumSize></code></p> <p> <code> <!-- The pool will never grow larger than this value --><br> <maximumSize>10</maximumSize></code></p> <p> <font face="Courier New, Courier, mono" size="2"> <!-- If the maximum size of a pool is reached but requests --><br> <!-- are still waiting on objects, PoolMan will create new --><br> <!-- emergency objects if this value is set to true. This --><br> <!-- will temporarily increase the size of the pool, but --><br> <!-- the pool will shrink back down to acceptable size --><br> <!-- automatically when the skimmer activates. If this --><br> <!-- value is set to false, the requests will sit and wait --><br> <!-- until an object is available. --><br> <!-- DEFAULT: true --><br> <maximumSoft>true</maximumSoft></font></p> <p> <code> <!-- The connection will be destroyed after living for a --><br> <!-- duration of this value. IN SECONDS. --><br> <!-- DEFAULT: 1200 (20 minutes) --><br> <connectionTimeout>1800</connectionTimeout></code></p> <p> <code> <!-- A user will lose a Connection and it will automatically --><br> <!-- return to its pool after the duration greater than or --><br> <!-- equal to this value. IN SECONDS. --><br> <!-- DEFAULT: 20 --> <br> <userTimeout>12</userTimeout></code></p> <p> <code> <!-- How frequently each object's connection timeout and --><br> <!-- user timeout values will be examined for collection.--><br> <!-- IN SECONDS. --><br> <!-- DEFAULT: 660 (11 minutes) --><br> <skimmerFrequency>300</skimmerFrequency></code></p> <p> <code> <!-- Each time the pool is sized down, how many connections --><br> <!-- should be removed from it? This value prevents backing --><br> <!-- off the pool too quickly. --><br> <shrinkBy>10</shrinkBy></code></p> <p> <font face="Courier New, Courier, mono" size="2"> <!-- Each time a connection is requested, it is validated by --><br> <!-- the pool to ensure that it is active. If this element --><br> <!-- exists, then it is treated as a SQL query that is --><br> <!-- executed on the raw Connection (bypassing the cache) --><br> <!-- in order to ensure the Connection is valid. If this --><br> <!-- element does NOT exist, then the Connection.isClosed() --><br> <!-- method is used to validate it instead. The --><br> <!-- Connection.isClosed() method is unreliable on some drivers. --><br> <!-- DEFAULT: null --><br> <validationQuery>SELECT id FROM users</validationQuery></font></p> <p> <code> <!-- Where should log and debug information be printed? --><br> <!-- DEFAULT: System.out --><br> <logFile>c:\code\src\poolman\lib\log.txt</logFile></code></p> <p> <code> <!-- If set to true, the logger will display verbose information. --><br> <!-- DEFAULT: false --><br> <debugging>true</debugging></code></p> <p> <code> <!-- XA Connection Attributes --><br> <!-- IN SECONDS. --><br> <transactionTimeout>100</transactionTimeout></code></p> <p> <code> <!-- Query Cache Attributes--></code></p> <p> <code> <!-- If enabled, queries will be cached. The cache is --><br> <!-- asynchronously updated in the background. --><br> <!-- DEFAULT: false --><br> <cacheEnabled>true</cacheEnabled></code></p> <p> <code> <!-- The maximum number of query/ResultSet pairs the --><br> <!-- cache can contain. --><br> <!-- DEFAULT: 5 --><br> <cacheSize>10</cacheSize></code></p> <p> <code> <!-- How long the cache waits before re-loading its --><br> <!-- ResultSets from the underlying database. --><br> <!-- IN SECONDS. --><br> <!-- DEFAULT: 30 --><br> <cacheRefreshInterval>120</cacheRefreshInterval></code></p> <code> <!-- A SQL statement to be executed when the pool is created.--><br> <!-- DEFAULT: none --><br> <!--<br> <initialPoolSQL><br> insert into users values(32, 'xml')<br> </initialPoolSQL> <br> --> <br> <br> <!-- A SQL statement to be excuted every time a Connection --><br> <!-- is accessed. --><br> <!-- DEFAULT: none --><br> <!--<br> <initialConnectionSQL><br> insert into users values(1010, 'con')<br> </initialConnectionSQL><br> --><br> </code> <p> <code> <!-- Whether a SQLException should cause the Connection to --> <br> <!-- be removed from the pool and destroyed. --><br> <!-- DEFAULT: false --><br> <removeOnExceptions>false</removeOnExceptions></code></p> <p> <code> </datasource></code></p> <p> <code> <!-- ==================================================== --><br> <!-- Another generic object pool, this one is used by --><br> <!-- the PoolManServlet application --><br> <!-- ==================================================== --><br> <objectPool><br> <name>beanpool</name><br> <objectType>com.codestudio.util.PoolManBean</objectType><br> <initialObjects>6</initialObjects><br> <minimumSize>0</minimumSize><br> <maximumSize>50</maximumSize><br> <objectTimeout>1200</objectTimeout><br> <userTimeout>1200</userTimeout><br> <skimmerFrequency>300</skimmerFrequency><br> <shrinkBy>2</shrinkBy><br> <logFile>c:\code\src\poolman\lib\pool.log</logFile><br> <debugging>true</debugging><br> </objectPool></code></p> <p> <code><!-- ========================================= --><br> <!-- Admin via JMX HTML Adapter. Disable this --><br> <!-- (at least comment it out) for production --><br> <!-- environments. When enabled, point your --><br> <!-- web browser to the localhost:[port] to --><br> <!-- view the JMX html admin agent. --><br> <!-- ========================================= --><br> <admin-agent><br> <class>com.sun.jdmk.comm.HtmlAdaptorServer</class><br> <name>Adaptor:name=html</name><br> <maxClients>10</maxClients><br> <port>8082</port><br> </admin-agent></code></p> <p><code></poolman></code></p> </td> </tr> </table> </td> </tr></table></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -